ESB Runtime and/or Design Time Does Not Start With: "java.lang.IllegalStateException: ClassLoader This loader has been closed and should not be in use" (Doc ID 880341.1)

Last updated on NOVEMBER 02, 2016

Applies to:

Oracle ESB - Version 10.1.3.4 and later
Information in this document applies to any platform.
***Checked for relevance on 04-Apr-2011***
***Checked for relevance on 02-April-2014***

Symptoms

In an Oracle Application Server installation of ESB, when the ESB container(s) are started, the esb-rt and/or esb-dt applications do not start. 

Some or all of the following error messages are seen in the $ORACLE_HOME/j2ee/<container name>/log/<container/group name>/oc4j/log.xml:

For a container with esb-rt installed:

<MESSAGE>
  <HEADER>
    <TSTZ_ORIGINATING>2009-08-28T13:20:57.508-04:00</TSTZ_ORIGINATING>
    <COMPONENT_ID>tip</COMPONENT_ID>
    <MSG_TYPE TYPE="ERROR"></MSG_TYPE>
    <MSG_LEVEL>1</MSG_LEVEL>
    <HOST_ID>abc.com</HOST_ID>
    <HOST_NWADDR>abc.abc.abc.abc</HOST_NWADDR>
    <MODULE_ID>esb.server.bootstrap</MODULE_ID>
    <THREAD_ID>10</THREAD_ID>
    <USER_ID>oracle</USER_ID>
  </HEADER>
  <CORRELATION_DATA>
    <EXEC_CONTEXT_ID><UNIQUE_ID>abc.abc.abc.abc:9020:1251480055211:0</UNIQUE_ID><SEQ>7</SEQ></EXEC_CONTEXT_ID>
  </CORRELATION_DATA>
  <PAYLOAD>
    <MSG_TEXT>ESB server shutdown: Failed to shutdown runtime</MSG_TEXT>
    <SUPPL_DETAIL><![CDATA[java.lang.NullPointerException
    at oracle.tip.esb.server.bootstrap.RuntimeResourceAdapter.stop(RuntimeResourceAdapter.java:151)
    at oracle.j2ee.connector.ResourceAdapterWrapper.stop(ResourceAdapterWrapper.java:266)
    at com.evermind.server.connector.deployment.ConnectorArchive.stopResourceAdapter(ConnectorArchive.java:2192)
    at com.evermind.server.connector.deployment.ConnectorArchive.stop(ConnectorArchive.java:2156)
    at oracle.j2ee.connector.DeployedAdapter.stop(DeployedAdapter.java:145)
    at oracle.j2ee.connector.DeployedAdapter.componentStop(DeployedAdapter.java:227)
    at com.evermind.server.Application.doStop(Application.java:2131)
    at com.evermind.server.Application.setConfig(Application.java:491)
    at com.evermind.server.Application.setConfig(Application.java:355)
    at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:1895)
    at com.evermind.server.ApplicationServer.initializeDeployedApplications(ApplicationServer.java:1651)
    at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1034)
    at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:131)
    at java.lang.Thread.run(Thread.java:595)
]]></SUPPL_DETAIL>
  </PAYLOAD>
</MESSAGE>

 

<MESSAGE>
  <HEADER>
    <TSTZ_ORIGINATING>2009-08-28T13:20:57.539-04:00</TSTZ_ORIGINATING>
    <COMPONENT_ID>tip</COMPONENT_ID>
    <MSG_TYPE TYPE="ERROR"></MSG_TYPE>
    <MSG_LEVEL>1</MSG_LEVEL>
    <HOST_ID>abc.com</HOST_ID>
    <HOST_NWADDR>abc.abc.abc.abc</HOST_NWADDR>
    <MODULE_ID>esb.server.bootstrap</MODULE_ID>
    <THREAD_ID>11</THREAD_ID>
    <USER_ID>oracle</USER_ID>
  </HEADER>
  <CORRELATION_DATA>
    <EXEC_CONTEXT_ID><UNIQUE_ID>abc.abc.abc.abc:9020:1251480057383:1</UNIQUE_ID><SEQ>6</SEQ></EXEC_CONTEXT_ID>
  </CORRELATION_DATA>
  <PAYLOAD>
    <MSG_TEXT>ESB bootstrap: Error occured while initializing ESB server from the ping thread</MSG_TEXT>
    <SUPPL_DETAIL><![CDATA[java.lang.IllegalStateException: ClassLoader "esb-rt.root:0.0.0" (from <application> in /C:/orasoa/soasuite/product/10.1.3.1/OracleAS_1/j2ee/home/applications/esb-rt/): This loader has been closed and should not be in use.
    at oracle.classloader.util.ClassLoadAsserts.fail(ClassLoadAsserts.java:154)
    at oracle.classloader.PolicyClassLoader.checkState(PolicyClassLoader.java:1994)
    at oracle.classloader.PolicyClassLoader.internalLoadClass(PolicyClassLoader.java:1659)
    at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1635)
    at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1620)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at oracle.tip.esb.server.bootstrap.ESBBaseResourceAdapter$PingTester.run(ESBBaseResourceAdapter.java:918)
    at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
    at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
    at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:830)
    at java.lang.Thread.run(Thread.java:595)
]]></SUPPL_DETAIL>
  </PAYLOAD>
</MESSAGE>



For a container with esb-dt installed:

<MESSAGE>
  <HEADER>
    <TSTZ_ORIGINATING>2009-08-28T13:20:57.398-04:00</TSTZ_ORIGINATING>
    <COMPONENT_ID>tip</COMPONENT_ID>
    <MSG_TYPE TYPE="ERROR"></MSG_TYPE>
    <MSG_LEVEL>1</MSG_LEVEL>
    <HOST_ID>abc.com</HOST_ID>
    <HOST_NWADDR>abc.abc.abc.abc</HOST_NWADDR>
    <MODULE_ID>esb.server.bootstrap</MODULE_ID>
    <THREAD_ID>10</THREAD_ID>
    <USER_ID>oracle</USER_ID>
  </HEADER>
  <CORRELATION_DATA>
    <EXEC_CONTEXT_ID><UNIQUE_ID>abc.abc.abc.abc:9020:1251480055211:0</UNIQUE_ID><SEQ>5</SEQ></EXEC_CONTEXT_ID>
  </CORRELATION_DATA>
  <PAYLOAD>
    <MSG_TEXT>ESB server shutdown: Failed to shutdown designtime</MSG_TEXT>
    <SUPPL_DETAIL><![CDATA[java.lang.NullPointerException
    at oracle.tip.esb.server.bootstrap.DesignTimeResourceAdapter.stopMonitoring(DesignTimeResourceAdapter.java:181)
    at oracle.tip.esb.server.bootstrap.DesignTimeResourceAdapter.stop(DesignTimeResourceAdapter.java:144)
    at oracle.j2ee.connector.ResourceAdapterWrapper.stop(ResourceAdapterWrapper.java:266)
    at com.evermind.server.connector.deployment.ConnectorArchive.stopResourceAdapter(ConnectorArchive.java:2192)
    at com.evermind.server.connector.deployment.ConnectorArchive.stop(ConnectorArchive.java:2156)
    at oracle.j2ee.connector.DeployedAdapter.stop(DeployedAdapter.java:145)
    at oracle.j2ee.connector.DeployedAdapter.componentStop(DeployedAdapter.java:227)
    at com.evermind.server.Application.doStop(Application.java:2131)
    at com.evermind.server.Application.setConfig(Application.java:491)
    at com.evermind.server.Application.setConfig(Application.java:355)
    at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:1895)
    at com.evermind.server.ApplicationServer.initializeDeployedApplications(ApplicationServer.java:1651)
    at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1034)
    at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:131)
    at java.lang.Thread.run(Thread.java:595)
]]></SUPPL_DETAIL>
  </PAYLOAD>
</MESSAGE>

 

<MESSAGE>
  <HEADER>
    <TSTZ_ORIGINATING>2009-08-28T13:20:57.461-04:00</TSTZ_ORIGINATING>
    <COMPONENT_ID>tip</COMPONENT_ID>
    <MSG_TYPE TYPE="ERROR"></MSG_TYPE>
    <MSG_LEVEL>1</MSG_LEVEL>
    <HOST_ID>abc.com</HOST_ID>
    <HOST_NWADDR>abc.abc.abc.abc</HOST_NWADDR>
    <MODULE_ID>esb.server.bootstrap</MODULE_ID>
    <THREAD_ID>11</THREAD_ID>
    <USER_ID>oracle</USER_ID>
  </HEADER>
  <CORRELATION_DATA>
    <EXEC_CONTEXT_ID><UNIQUE_ID>abc.abc.abc.abc:9020:1251480057383:1</UNIQUE_ID><SEQ>0</SEQ></EXEC_CONTEXT_ID>
  </CORRELATION_DATA>
  <PAYLOAD>
    <MSG_TEXT>ESB bootstrap: Error occured while initializing ESB server from the ping thread</MSG_TEXT>
    <SUPPL_DETAIL><![CDATA[java.lang.IllegalStateException: ClassLoader "esb-dt.root:0.0.0" (from <application> in /C:/orasoa/soasuite/product/10.1.3.1/OracleAS_1/j2ee/home/applications/esb-dt/): This loader has been closed and should not be in use.
    at oracle.classloader.util.ClassLoadAsserts.fail(ClassLoadAsserts.java:154)
    at oracle.classloader.PolicyClassLoader.checkState(PolicyClassLoader.java:1994)
    at oracle.classloader.PolicyClassLoader.internalLoadClass(PolicyClassLoader.java:1659)
    at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1635)
    at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1620)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at oracle.tip.esb.server.bootstrap.ESBBaseResourceAdapter$PingTester.run(ESBBaseResourceAdapter.java:951)
    at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
    at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
    at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:825)
    at java.lang.Thread.run(Thread.java:595)
]]></SUPPL_DETAIL>
  </PAYLOAD>

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms