Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-23607

server-manager-web fails to deploy on liferay jboss bundle

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Inactive
    • Affects Version/s: 6.1.0 CE RC1
    • Fix Version/s: 7.0.0 M3
    • Labels:
      None
    • Environment:
      Liferay 6.1.0-ce-b4 jboss bundle

      Description

      server-manager-web.war throws NPE on jboss startup. This happens only if server-manager-web gets deployed before ROOT.war and the servlet deployed in server-manager is accessed (server-manager-web/status).

      This most likely happens when you have configured a remote instance of liferay in eclipse which keeps constantly polling for server-manager-web/status

      This does not fail the deployment though because the exception is thrown from servlet thread instead of deployment but service-manager does not work after this until it is manually redeployed.

      This can be produced with following steps:

      0. Configure remote liferay server on eclipse
      1. Place server-manager-web.war to liferay/deploy
      2. start jboss
      3. stop jboss
      4. start jboss again

      Stacktrace:

      08:46:48,180 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/server-manager-web].[Server Manager Servlet]] (http--127.0.0.1-8080-4) Allocate exception for servlet Server Manager Servlet: java.lang.NullPointerException
      at com.liferay.portal.kernel.util.FastDateFormatFactoryUtil.getSimpleDateFormat(FastDateFormatFactoryUtil.java:67) [portal-service.jar:private-2011/04/13-23:33:42]
      at com.liferay.servermanager.executor.OutputLogExecutor.<clinit>(OutputLogExecutor.java:99) [classes:]
      at com.liferay.servermanager.executor.LogExecutor.initNextExecutors(LogExecutor.java:30) [classes:]
      at com.liferay.servermanager.executor.BaseExecutor.<init>(BaseExecutor.java:36) [classes:]
      at com.liferay.servermanager.executor.LogExecutor.<init>(LogExecutor.java:24) [classes:]
      at com.liferay.servermanager.executor.ServerExecutor.initNextExecutors(ServerExecutor.java:31) [classes:]
      at com.liferay.servermanager.executor.BaseExecutor.<init>(BaseExecutor.java:36) [classes:]
      at com.liferay.servermanager.executor.ServerExecutor.<init>(ServerExecutor.java:24) [classes:]
      at com.liferay.servermanager.executor.RootExecutor.initNextExecutors(RootExecutor.java:31) [classes:]
      at com.liferay.servermanager.executor.BaseExecutor.<init>(BaseExecutor.java:36) [classes:]
      at com.liferay.servermanager.executor.RootExecutor.<init>(RootExecutor.java:24) [classes:]
      at com.liferay.servermanager.servlet.ServerManagerServlet.<init>(ServerManagerServlet.java:161) [classes:]
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [:1.6.0_22]
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) [:1.6.0_22]
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) [:1.6.0_22]
      at java.lang.reflect.Constructor.newInstance(Constructor.java:513) [:1.6.0_22]
      at org.jboss.msc.value.ConstructedValue.getValue(ConstructedValue.java:61)
      at org.jboss.as.naming.ValueManagedReferenceFactory$1.getInstance(ValueManagedReferenceFactory.java:63)
      at org.jboss.as.ee.component.ManagedReferenceInterceptor.processInvocation(ManagedReferenceInterceptor.java:52)
      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287) [jboss-invocation-1.1.0.Final.jar:1.1.0.Final]
      at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) [jboss-invocation-1.1.0.Final.jar:1.1.0.Final]
      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287) [jboss-invocation-1.1.0.Final.jar:1.1.0.Final]
      at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)
      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287) [jboss-invocation-1.1.0.Final.jar:1.1.0.Final]
      at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.0.Final.jar:1.1.0.Final]
      at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:152)
      at org.jboss.as.ee.component.BasicComponent.createInstance(BasicComponent.java:77)
      at org.jboss.as.web.deployment.component.WebComponentInstantiator$1.<init>(WebComponentInstantiator.java:57) [jboss-as-web-7.0.1.Final.jar:7.0.1.Final]
      at org.jboss.as.web.deployment.component.WebComponentInstantiator.getReference(WebComponentInstantiator.java:55) [jboss-as-web-7.0.1.Final.jar:7.0.1.Final]
      at org.jboss.as.web.deployment.WebInjectionContainer.instantiate(WebInjectionContainer.java:99) [jboss-as-web-7.0.1.Final.jar:7.0.1.Final]
      at org.jboss.as.web.deployment.WebInjectionContainer.newInstance(WebInjectionContainer.java:78) [jboss-as-web-7.0.1.Final.jar:7.0.1.Final]
      at org.jboss.as.web.deployment.WebInjectionContainer.newInstance(WebInjectionContainer.java:72) [jboss-as-web-7.0.1.Final.jar:7.0.1.Final]
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1156) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
      at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:952) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:188) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
      at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139) [jboss-as-web-7.0.1.Final.jar:7.0.1.Final]
      at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57) [jboss-as-web-7.0.1.Final.jar:7.0.1.Final]
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952) [jbossweb-7.0.1.Final.jar:7.0.1.Final]
      at java.lang.Thread.run(Thread.java:662) [:1.6.0_22]

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                7 years, 43 weeks, 3 days ago

                Packages

                Version Package
                7.0.0 M3