Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-12199

Stopping tomcat server results in NPE

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.7.2
    • Fix Version/s: 5.7.3
    • Component/s: Seam / JSF UI
    • Tags:

      Description

      When stopping the server, the application called the Destroy method of PictureBookManagerBean.java. It causes a NullPointerException while resolving Seam dependencies. Need nuxeo-dm to reproduce.

      12:58:05,399 INFO  [QuartzScheduler] Scheduler Quartz_$_NON_CLUSTERED shutting down.
      12:58:05,399 INFO  [QuartzScheduler] Scheduler Quartz_$_NON_CLUSTERED paused.
      12:58:05,400 INFO  [QuartzScheduler] Scheduler Quartz_$_NON_CLUSTERED shutdown complete.
      12:58:05,435 WARN  [Component] Exception calling component @Destroy method: pictureBookManager
      java.lang.RuntimeException: exception invoking: getTypeManager
      	at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:148)
      	at org.jboss.seam.Component.callComponentMethod(Component.java:2201)
      	at org.jboss.seam.Component.unwrap(Component.java:2227)
      	at org.jboss.seam.Component.getInstance(Component.java:1994)
      	at org.jboss.seam.Component.getInstance(Component.java:1940)
      	at org.jboss.seam.Component.getInstance(Component.java:1934)
      	at org.jboss.seam.Component.getInstanceInAllNamespaces(Component.java:2301)
      	at org.jboss.seam.Component.getValueToInject(Component.java:2253)
      	at org.jboss.seam.Component.injectAttributes(Component.java:1693)
      	at org.jboss.seam.Component.inject(Component.java:1511)
      	at org.nuxeo.ecm.platform.ui.web.util.NuxeoBijectionInterceptor.aroundInvoke(NuxeoBijectionInterceptor.java:55)
      	at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      	at org.nuxeo.ecm.platform.ui.web.util.NuxeoExceptionInterceptor.aroundInvoke(NuxeoExceptionInterceptor.java:79)
      	at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      	at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
      	at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      	at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
      	at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)
      	at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102)
      	at org.nuxeo.ecm.platform.picture.web.PictureBookManagerBean_$$_javassist_70.destroy(PictureBookManagerBean_$$_javassist_70.java)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
      	at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:138)
      	at org.jboss.seam.Component.callComponentMethod(Component.java:2201)
      	at org.jboss.seam.Component.callDestroyMethod(Component.java:2132)
      	at org.jboss.seam.Component.destroy(Component.java:1426)
      	at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:251)
      	at org.jboss.seam.contexts.Contexts.destroyConversationContext(Contexts.java:413)
      	at org.jboss.seam.contexts.Lifecycle.endSession(Lifecycle.java:240)
      	at org.jboss.seam.contexts.ServletLifecycle.endSession(ServletLifecycle.java:146)
      	at org.jboss.seam.servlet.SeamListener.sessionDestroyed(SeamListener.java:49)
      	at org.apache.catalina.session.StandardSession.expire(StandardSession.java:806)
      	at org.apache.catalina.session.StandardSession.expire(StandardSession.java:742)
      	at org.apache.catalina.session.StandardManager.stopInternal(StandardManager.java:530)
      	at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
      	at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5622)
      	at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
      	at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1575)
      	at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1564)
      	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at java.lang.Thread.run(Thread.java:724)
      Caused by: org.nuxeo.ecm.core.api.ClientException: Error connecting to TypeManager. null
      	at org.nuxeo.ecm.webapp.delegate.TypeManagerBusinessDelegate.getTypeManager(TypeManagerBusinessDelegate.java:73)
      	at sun.reflect.GeneratedMethodAccessor162.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
      	at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
      	at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
      	at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
      	at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      	at org.nuxeo.ecm.platform.ui.web.util.NuxeoExceptionInterceptor.aroundInvoke(NuxeoExceptionInterceptor.java:79)
      	at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      	at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
      	at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      	at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
      	at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)
      	at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102)
      	at org.nuxeo.ecm.webapp.delegate.TypeManagerBusinessDelegate_$$_javassist_42.getTypeManager(TypeManagerBusinessDelegate_$$_javassist_42.java)
      	at sun.reflect.GeneratedMethodAccessor161.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
      	at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:138)
      	... 46 more
      Caused by: java.lang.NullPointerException
      	at org.nuxeo.runtime.api.Framework.getLocalService(Framework.java:231)
      	at org.nuxeo.runtime.api.ServiceManager.getService(ServiceManager.java:127)
      	at org.nuxeo.runtime.api.Framework.getService(Framework.java:211)
      	at org.nuxeo.ecm.webapp.delegate.TypeManagerBusinessDelegate.getTypeManager(TypeManagerBusinessDelegate.java:68)
      	... 67 more
      
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: