glassfish
  1. glassfish
  2. GLASSFISH-20344

Bundles are being started when the server is shutting down

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.0_b01
    • Fix Version/s: 4.1
    • Component/s: None
    • Labels:
      None

      Description

      Bundles that had never been started before are being started when the server is shutting down. In most cases this is unnecessary work that is being done during shutdown and could have a cascading effect that might affect future boots.

      Here is an example stack trace where a bundle is being started during shutdown processing:

      starting bundle org.glassfish.main.jdbc.runtime]]

      [2013-04-18T05:17:54.872-0700] [glassfish 4.0] [SEVERE] [] [] [tid: _ThreadID=323 _ThreadName=Thread-8] [timeMillis: 1366287474872] [levelValue: 1000] [[
      java.lang.Throwable
      at org.jvnet.hk2.osgiadapter.OSGiModuleImpl.start(OSGiModuleImpl.java:211)
      at org.jvnet.hk2.osgiadapter.OsgiPopulatorPostProcessor$1.loadClass(OsgiPopulatorPostProcessor.java:77)
      at org.jvnet.hk2.internal.ServiceLocatorImpl.loadClass(ServiceLocatorImpl.java:1707)
      at org.jvnet.hk2.internal.ServiceLocatorImpl.reifyDescriptor(ServiceLocatorImpl.java:368)
      at org.jvnet.hk2.internal.ServiceLocatorImpl.narrow(ServiceLocatorImpl.java:1769)
      at org.jvnet.hk2.internal.ServiceLocatorImpl.internalGetAllServiceHandles(ServiceLocatorImpl.java:1092)
      at org.jvnet.hk2.internal.ServiceLocatorImpl.getAllServices(ServiceLocatorImpl.java:651)
      at org.jvnet.hk2.internal.ServiceLocatorImpl.getAllServices(ServiceLocatorImpl.java:639)
      at com.sun.enterprise.connectors.ConnectorRuntime.cleanUpResourcesAndShutdownAllActiveRAs(ConnectorRuntime.java:996)
      at com.sun.appserv.connectors.internal.ConnectorResourceManagerLifecycleListener.resourceManagerShutdown(ConnectorResourceManagerLifecycleListener.java:193)
      at com.sun.appserv.connectors.internal.ConnectorResourceManagerLifecycleListener.resourceManagerLifecycleEvent(ConnectorResourceManagerLifecycleListener.java:179)
      at org.glassfish.resourcebase.resources.listener.ResourceManager.notifyListeners(ResourceManager.java:132)
      at org.glassfish.resourcebase.resources.listener.ResourceManager.preDestroy(ResourceManager.java:206)
      at org.jvnet.hk2.internal.ClazzCreator.preDestroyMe(ClazzCreator.java:294)
      at org.jvnet.hk2.internal.ClazzCreator.dispose(ClazzCreator.java:358)
      at org.jvnet.hk2.internal.SystemDescriptor.dispose(SystemDescriptor.java:473)
      at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.destroyOne(AsyncRunLevelContext.java:191)
      at org.jvnet.hk2.internal.ServiceHandleImpl.destroy(ServiceHandleImpl.java:159)
      at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$DownAllTheWay.run(CurrentTaskFuture.java:583)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      at java.lang.Thread.run(Thread.java:722)]]

        Activity

        jwells created issue -
        jwells made changes -
        Field Original Value New Value
        Fix Version/s 4.0.1 [ 16061 ]
        Romain Grécourt made changes -
        Fix Version/s 4.1 [ 16387 ]
        Fix Version/s 4.0.1 [ 16061 ]

          People

          • Assignee:
            jwells
            Reporter:
            jwells
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: