« JDeveloper Service Update 3 available. | Main | IllegalStateException Displayed in the Log Window »

IllegalStateException when Running a JSF Page in the Embedded OC4J

The Problem

Running or debugging a JSF page from JDeveloper in the embedded OC4J may display an IllegalStateException in the Log window:


06/05/23 17:30:53 java.lang.IllegalStateException: ClassLoader "adf.oracle.domain:10.1.3" (from <shared-library> in <JDev_Home>/jdev/system/oracle.j2ee.10.1.3.36.73/embedded-oc4j/config/server.xml): This loader has been closed and should not be in use.
06/05/23 17:30:53     at oracle.classloader.util.ClassLoadAsserts.fail(ClassLoadAsserts.java:154)
06/05/23 17:30:53     at oracle.classloader.PolicyClassLoader.checkState(PolicyClassLoader.java:1977)
06/05/23 17:30:53     at oracle.classloader.PolicyClassLoader.internalLoadClass(PolicyClassLoader.java:1645)
06/05/23 17:30:53     at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1621)
06/05/23 17:30:53     at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1606)
06/05/23 17:30:53     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
06/05/23 17:30:53     at oracle.jbo.pool.ResourcePoolMonitor.run(ResourcePoolMonitor.java:70)
06/05/23 17:30:53     at java.util.TimerThread.mainLoop(Timer.java:512)
06/05/23 17:30:53     at java.util.TimerThread.run(Timer.java:462)

However, the page works and is displayed in your browser without any the problem.


The Cause

The problem is related to the "warm-restart" of the Embedded OC4J server when redeploying applications.
For more information, see the Oracle JDeveloper 10g Release Notes, topic "Intermittent IllegalStateException Rerunning ADF Web Applications on Embedded OC4J (4758240)"


The Solution


This error can be ignored.
As a rule of thumb, we advise you to close the browser and stop the Embedded OC4J Server after you tested or debugged your application.

In JDeveloper 10.1.3, you can stop the Embedded OC4J easily by clicking the "Terminate" button in the Log window:

TerminateInLogWindow:

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About This Entry

This page contains a single entry from the blog posted on May 23, 2006 12:00 AM.

The previous post in this blog was JDeveloper Service Update 3 available..

The next post in this blog is IllegalStateException Displayed in the Log Window.

Many more can be found on the main index page or by looking through the archives.

Top Tags

Powered by
Movable Type and Oracle