IllegalStateException from JDK hook on shutdown

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 2.8
    • Affects Version/s: 2.3, 2.4, 2.5, 2.6.0
    • Component/s: None

      Tangosol coherence registers JDK shutdown hooks on initialisation. These shutdown hooks are problematic when the Coherence libraries have been loaded by a webapp classloader as they depend on classes which have been unloaded by the time the JDK shutdown process starts.

      This results in the following log message during shut down:

      java.lang.IllegalStateException
      	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1245)
      	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1205)
      	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
      	at com.tangosol.util.LiteSet.iterator(LiteSet.java:160)
      	at com.tangosol.coherence.component.util.SafeCluster.shutdownLocalServices(SafeCluster.CDB:6)
      	at com.tangosol.coherence.component.util.SafeCluster$ShutdownHook.run(SafeCluster.CDB:1)
      	at java.lang.Thread.run(Thread.java:613)
      

              Assignee:
              Christopher Owen [Atlassian]
              Reporter:
              Christopher Owen [Atlassian]
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: