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

WebSphere app server fails to start up due to NullPointerException

    Details

      Description

      Steps to reproduce issue:

      1. Compile portal for WebSphere
      2. Start WebSphere bundle

      Expected result: Bundle on WebSphere starts successfully
      Actual result: Bundle attempts to starts but shuts down (app server logs); NullPointerExceptions are thrown in the liferay log.

      App server log:

           [exec] ADMU0116I: Tool information is being logged in file
           [exec]            /opt/dev/projects/github/liferay-portal/bundles/websphere-9.0.0.0/profiles/liferay/logs/server1/startServer.log
           [exec] ADMU0128I: Starting tool with the liferay profile
           [exec] ADMU3100I: Reading configuration for server: server1
           [exec] ADMU3200I: Server launched. Waiting for initialization status.
           [exec] ADMU3000I: Server server1 open for e-business; process id is 23487
         [delete] Deleting: /opt/dev/projects/github/liferay-portal/jps_output
           [exec] ADMU0116I: Tool information is being logged in file
           [exec]            /opt/dev/projects/github/liferay-portal/bundles/websphere-9.0.0.0/profiles/liferay/logs/server1/stopServer.log
           [exec] ADMU0128I: Starting tool with the liferay profile
           [exec] ADMU3100I: Reading configuration for server: server1
           [exec] ADMU3201I: Server stop request issued. Waiting for stop status.
      

      Liferay log:

      15:44:44,227 ERROR [server.startup : 1][RemotingServlet:225] Context initialization failed
      java.lang.NullPointerException
      	at com.liferay.portal.spring.context.TunnelApplicationContext.setParent(TunnelApplicationContext.java:41)
      	at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:631)
      	at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:682)
      	at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:553)
      	at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:494)
      	at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:171)
      	at javax.servlet.GenericServlet.init(GenericServlet.java:244)
      	at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:342)
      	at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.init(ServletWrapperImpl.java:168)
      	at com.ibm.ws.webcontainer.servlet.ServletWrapper.loadOnStartupCheck(ServletWrapper.java:1376)
      	at com.ibm.ws.webcontainer.webapp.WebApp.doLoadOnStartupActions(WebApp.java:670)
      	at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinally(WebApp.java:636)
      	at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:453)
      	at com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:88)
      	at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:171)
      	at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:904)
      	at com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:789)
      	at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:427)
      	at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:719)
      	at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1248)
      	at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1516)
      	at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:704)
      	at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:1098)
      	at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:800)
      	at com.ibm.ws.runtime.component.ApplicationMgrImpl$5.run(ApplicationMgrImpl.java:2317)
      	at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:5466)
      	at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:5682)
      	at com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255)
      	at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2322)
      	at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:436)
      	at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
      	at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:379)
      	at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$500(CompositionUnitMgrImpl.java:127)
      	at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$CUInitializer.run(CompositionUnitMgrImpl.java:985)
      	at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:524)
      	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1909)
      16:12:29,377 ERROR [Non-deferrable Alarm : 0][PortalContextLoaderListener:140] java.lang.NullPointerException
      java.lang.NullPointerException
      	at com.liferay.portal.kernel.servlet.DirectServletRegistryUtil.clearServlets(DirectServletRegistryUtil.java:25)
      	at com.liferay.portal.spring.context.PortalContextLoaderListener.contextDestroyed(PortalContextLoaderListener.java:137)
      	at com.ibm.ws.webcontainer.managedobject.ManagedObjectListenerWrapper.contextDestroyed(ManagedObjectListenerWrapper.java:138)
      	at com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextDestroyed(WebApp.java:1907)
      	at com.ibm.ws.webcontainer.webapp.WebApp.destroy(WebApp.java:3374)
      	at com.ibm.ws.webcontainer.webapp.WebAppImpl.destroy(WebAppImpl.java:1574)
      	at com.ibm.ws.container.AbstractContainer.destroy(AbstractContainer.java:75)
      	at com.ibm.ws.webcontainer.webapp.WebGroup.destroy(WebGroup.java:228)
      	at com.ibm.ws.webcontainer.webapp.WebGroup.removeWebApplication(WebGroup.java:269)
      	at com.ibm.ws.webcontainer.VirtualHost.removeWebApplication(VirtualHost.java:305)
      	at com.ibm.ws.webcontainer.VirtualHostImpl.removeWebApplication(VirtualHostImpl.java:234)
      	at com.ibm.ws.webcontainer.WSWebContainer.removeWebApplication(WSWebContainer.java:975)
      	at com.ibm.ws.webcontainer.component.WebContainerImpl.uninstall(WebContainerImpl.java:459)
      	at com.ibm.ws.webcontainer.component.WebContainerImpl.stop(WebContainerImpl.java:730)
      	at com.ibm.ws.runtime.component.ApplicationMgrImpl.stop(ApplicationMgrImpl.java:1289)
      	at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStop(DeployedApplicationImpl.java:1521)
      	at com.ibm.ws.runtime.component.DeployedModuleImpl.stop(DeployedModuleImpl.java:736)
      	at com.ibm.ws.runtime.component.DeployedApplicationImpl.stop(DeployedApplicationImpl.java:1295)
      	at com.ibm.ws.runtime.component.ApplicationMgrImpl.stopApplication(ApplicationMgrImpl.java:976)
      	at com.ibm.ws.runtime.component.ApplicationMgrImpl.stop(ApplicationMgrImpl.java:936)
      	at com.ibm.ws.runtime.component.ContainerHelper.stopComponent(ContainerHelper.java:477)
      	at com.ibm.ws.runtime.component.ContainerHelper.stopComponents(ContainerHelper.java:461)
      	at com.ibm.ws.runtime.component.ContainerImpl.stopComponents(ContainerImpl.java:650)
      	at com.ibm.ws.runtime.component.ContainerImpl.stop(ContainerImpl.java:638)
      	at com.ibm.ws.runtime.component.ApplicationServerImpl.stop(ApplicationServerImpl.java:286)
      	at com.ibm.ws.runtime.component.ContainerHelper.stopComponent(ContainerHelper.java:477)
      	at com.ibm.ws.runtime.component.ContainerHelper.stopComponents(ContainerHelper.java:461)
      	at com.ibm.ws.runtime.component.ContainerImpl.stopComponents(ContainerImpl.java:650)
      	at com.ibm.ws.runtime.component.ContainerImpl.stop(ContainerImpl.java:638)
      	at com.ibm.ws.runtime.component.ServerImpl.stop(ServerImpl.java:672)
      	at com.ibm.ws.runtime.component.ServerCollaborator$ShutdownHook$1.run(ServerCollaborator.java:917)
      	at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:5466)
      	at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:5682)
      	at com.ibm.ws.runtime.component.ServerCollaborator$ShutdownHook.run(ServerCollaborator.java:907)
      	at com.ibm.ws.runtime.component.ServerCollaborator$StopAction.alarm(ServerCollaborator.java:859)
      	at com.ibm.ejs.util.am._Alarm.runImpl(_Alarm.java:151)
      	at com.ibm.ejs.util.am._Alarm.run(_Alarm.java:136)
      	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1909)
      16:12:29,378 ERROR [Non-deferrable Alarm : 0][PortalContextLoaderListener:147] java.lang.NullPointerException
      java.lang.NullPointerException
      	at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.reset(HotDeployUtil.java:50)
      	at com.liferay.portal.spring.context.PortalContextLoaderListener.contextDestroyed(PortalContextLoaderListener.java:144)
      	at com.ibm.ws.webcontainer.managedobject.ManagedObjectListenerWrapper.contextDestroyed(ManagedObjectListenerWrapper.java:138)
      	at com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextDestroyed(WebApp.java:1907)
      	at com.ibm.ws.webcontainer.webapp.WebApp.destroy(WebApp.java:3374)
      	at com.ibm.ws.webcontainer.webapp.WebAppImpl.destroy(WebAppImpl.java:1574)
      	at com.ibm.ws.container.AbstractContainer.destroy(AbstractContainer.java:75)
      	at com.ibm.ws.webcontainer.webapp.WebGroup.destroy(WebGroup.java:228)
      	at com.ibm.ws.webcontainer.webapp.WebGroup.removeWebApplication(WebGroup.java:269)
      	at com.ibm.ws.webcontainer.VirtualHost.removeWebApplication(VirtualHost.java:305)
      	at com.ibm.ws.webcontainer.VirtualHostImpl.removeWebApplication(VirtualHostImpl.java:234)
      	at com.ibm.ws.webcontainer.WSWebContainer.removeWebApplication(WSWebContainer.java:975)
      	at com.ibm.ws.webcontainer.component.WebContainerImpl.uninstall(WebContainerImpl.java:459)
      	at com.ibm.ws.webcontainer.component.WebContainerImpl.stop(WebContainerImpl.java:730)
      	at com.ibm.ws.runtime.component.ApplicationMgrImpl.stop(ApplicationMgrImpl.java:1289)
      	at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStop(DeployedApplicationImpl.java:1521)
      	at com.ibm.ws.runtime.component.DeployedModuleImpl.stop(DeployedModuleImpl.java:736)
      	at com.ibm.ws.runtime.component.DeployedApplicationImpl.stop(DeployedApplicationImpl.java:1295)
      	at com.ibm.ws.runtime.component.ApplicationMgrImpl.stopApplication(ApplicationMgrImpl.java:976)
      	at com.ibm.ws.runtime.component.ApplicationMgrImpl.stop(ApplicationMgrImpl.java:936)
      	at com.ibm.ws.runtime.component.ContainerHelper.stopComponent(ContainerHelper.java:477)
      	at com.ibm.ws.runtime.component.ContainerHelper.stopComponents(ContainerHelper.java:461)
      	at com.ibm.ws.runtime.component.ContainerImpl.stopComponents(ContainerImpl.java:650)
      	at com.ibm.ws.runtime.component.ContainerImpl.stop(ContainerImpl.java:638)
      	at com.ibm.ws.runtime.component.ApplicationServerImpl.stop(ApplicationServerImpl.java:286)
      	at com.ibm.ws.runtime.component.ContainerHelper.stopComponent(ContainerHelper.java:477)
      	at com.ibm.ws.runtime.component.ContainerHelper.stopComponents(ContainerHelper.java:461)
      	at com.ibm.ws.runtime.component.ContainerImpl.stopComponents(ContainerImpl.java:650)
      	at com.ibm.ws.runtime.component.ContainerImpl.stop(ContainerImpl.java:638)
      	at com.ibm.ws.runtime.component.ServerImpl.stop(ServerImpl.java:672)
      	at com.ibm.ws.runtime.component.ServerCollaborator$ShutdownHook$1.run(ServerCollaborator.java:917)
      	at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:5466)
      	at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:5682)
      	at com.ibm.ws.runtime.component.ServerCollaborator$ShutdownHook.run(ServerCollaborator.java:907)
      	at com.ibm.ws.runtime.component.ServerCollaborator$StopAction.alarm(ServerCollaborator.java:859)
      	at com.ibm.ejs.util.am._Alarm.runImpl(_Alarm.java:151)
      	at com.ibm.ejs.util.am._Alarm.run(_Alarm.java:136)
      	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1909)
      

      Reproduced on:
      WebSphere 9.0.0.0 + MySQL 5.7
      Portal master GIT ID: a92c8188d1d67c64aff7a17fbbfe42289e7e9b9c

      Not reproducible on:
      WebSphere 9.0.0.0 + MySQL 5.7
      Portal master GIT ID: 0d4ca9d0aab0b9d40799070b12b29babef28d8c6

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                anthony.chu Anthony Chu
                Reporter:
                anthony.chu Anthony Chu
                Participants of an Issue:
                Recent user:
                Brian Wulbern
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  29 weeks, 3 days ago

                  Packages

                  Version Package
                  Master