Details

      Description

      Steps to reproduce:

      1. Deploy the sample-php-portlet
      2. Start portal

      Expected Result:
      Portal starts without errors.

      Actual Result:
      There is a NPE when deploying the portlet.

      SEVERE: Exception sending context initialized event to listener instance of class com.liferay.portal.kernel.servlet.PluginContextListener
      java.lang.NullPointerException
              at java.util.concurrent.ConcurrentHashMap.hash(ConcurrentHashMap.java:333)
              at java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:1125)
              at com.liferay.portal.kernel.util.ClassLoaderPool.register(ClassLoaderPool.java:87)
              at com.liferay.portal.kernel.servlet.PluginContextListener.contextInitialized(PluginContextListener.java:113)
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5016)
              at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5528)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
              at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1263)
              at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1948)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
              at java.util.concurrent.FutureTask.run(FutureTask.java:262)
              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:745)
      
      Jan 18, 2016 11:27:06 PM org.apache.catalina.core.StandardContext startInternal
      SEVERE: One or more listeners failed to start. Full details will be found in the appropriate container log file
      Jan 18, 2016 11:27:06 PM org.apache.catalina.core.StandardContext startInternal
      SEVERE: Context [/sample-php-portlet] startup failed due to previous errors
      Jan 18, 2016 11:27:06 PM org.apache.catalina.core.StandardContext listenerStop
      SEVERE: Exception sending context destroyed event to listener instance of class com.liferay.portal.kernel.servlet.PluginContextListener
      java.lang.NullPointerException
              at java.util.concurrent.ConcurrentHashMap.hash(ConcurrentHashMap.java:333)
              at java.util.concurrent.ConcurrentHashMap.remove(ConcurrentHashMap.java:1175)
              at com.liferay.portal.kernel.util.ClassLoaderPool.unregister(ClassLoaderPool.java:104)
              at com.liferay.portal.kernel.servlet.PluginContextListener.contextDestroyed(PluginContextListener.java:100)
              at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:5063)
              at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5723)
              at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160)
              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
              at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1263)
              at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1948)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
              at java.util.concurrent.FutureTask.run(FutureTask.java:262)
              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:745)
      
      Jan 18, 2016 11:27:06 PM org.apache.catalina.startup.HostConfig deployDirectory
      INFO: Deployment of web application directory L:\public\master-bundles\tomcat-7.0.62\webapps\sample-php-portlet has finished in 1,842 ms
      

      Reproduced on:
      Tomcat 7.0.62 + MySQL 5.6.26 Portal master GIT ID: b2b7c67f0e069ddce408101652e45e41bd4d7e2d

        Attachments

          Activity

            People

            • Assignee:
              brian.lee Brian Lee
              Reporter:
              brian.lee Brian Lee
              Participants of an Issue:
              Recent user:
              Esther Sanz
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 18 weeks ago