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: