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

Fix error log on layout demo when shutting down server

    XMLWordPrintable

    Details

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

      Description

      When shutting down, the server.log contains the following error. We have to add @@BypassInterceptors on the @Destroy method.

      19:50:35,759 WARN  [Component] Exception calling component @Destroy method: layoutDemoContext
      java.lang.RuntimeException: exception invoking: getWebLayoutManager
      	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.core.SynchronizationInterceptor.aroundInvoke(SynchronizationInterceptor.java:32)
      	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.forms.layout.demo.jsf.LayoutDemoContext_$$_javassist_15.closeCoreSession(LayoutDemoContext_$$_javassist_15.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.Lifecycle.endSession(Lifecycle.java:249)
      	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 WebLayoutManager. null
      	at org.nuxeo.ecm.platform.forms.layout.service.WebLayoutManagerBusinessDelegate.getWebLayoutManager(WebLayoutManagerBusinessDelegate.java:58)
      	at sun.reflect.GeneratedMethodAccessor206.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.core.SynchronizationInterceptor.aroundInvoke(SynchronizationInterceptor.java:32)
      	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.forms.layout.service.WebLayoutManagerBusinessDelegate_$$_javassist_14.getWebLayoutManager(WebLayoutManagerBusinessDelegate_$$_javassist_14.java)
      	at sun.reflect.GeneratedMethodAccessor205.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)
      	... 47 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.platform.forms.layout.service.WebLayoutManagerBusinessDelegate.getWebLayoutManager(WebLayoutManagerBusinessDelegate.java:54)
      
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: