campfire-digital-services / liferay-webcontent-workflow-portlet

Portlet to allow assignment of different Liferay workflows to individual Web Content Structures
1 stars 3 forks source link

Startup problem with Liferay 6.2 GA1 SP1 #4

Open flaviusdaca opened 10 years ago

flaviusdaca commented 10 years ago

The startup action throws a NPE at portal startup:

Feb 27, 2014 11:24:58 AM org.apache.catalina.core.StandardContext loadOnStartup SEVERE: Servlet /webcontent-workflow-portlet threw load() exception java.lang.NullPointerException at com.liferay.portal.kernel.workflow.WorkflowHandlerRegistryUtil.getWorkflowHandler(WorkflowHandlerRegistryUtil.java:47) at au.com.permeance.liferay.util.startup.StartupListener.applicationStart(StartupListener.java:52) at au.com.permeance.liferay.util.startup.StartupServlet.init(StartupServlet.java:39) at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1266) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1185) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1080) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5015) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5302) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1095) at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1617) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) 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:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722)

cwho commented 10 years ago

Testing with deployment of portlet from store with vanilla 6.2 EE SP1 is not showing the error, investigating further:

00:57:35,387 INFO [http-bio-8080-exec-4][PortletAutoDeployListener:79] Copying portlets for /home/chun/Projects/Servers/liferay-portal-6.2-ee-sp1/tomcat-7.0.42/temp/20140228245735384/webcontent-workflow-portlet-6.2.0.2.war 00:57:35,399 INFO [http-bio-8080-exec-4][BaseDeployer:859] Deploying webcontent-workflow-portlet-6.2.0.2.war Expanding: /home/chun/Projects/Servers/liferay-portal-6.2-ee-sp1/tomcat-7.0.42/temp/20140228245735384/webcontent-workflow-portlet-6.2.0.2.war into /home/chun/Projects/Servers/liferay-portal-6.2-ee-sp1/tomcat-7.0.42/temp/20140228245735401 Copying 1 file to /home/chun/Projects/Servers/liferay-portal-6.2-ee-sp1/tomcat-7.0.42/temp/20140228245735401/WEB-INF Copying 1 file to /home/chun/Projects/Servers/liferay-portal-6.2-ee-sp1/tomcat-7.0.42/temp/20140228245735401/WEB-INF/classes Copying 1 file to /home/chun/Projects/Servers/liferay-portal-6.2-ee-sp1/tomcat-7.0.42/temp/20140228245735401/WEB-INF/classes Copying 1 file to /home/chun/Projects/Servers/liferay-portal-6.2-ee-sp1/tomcat-7.0.42/temp/20140228245735401/WEB-INF/jsp 00:57:36,129 INFO [http-bio-8080-exec-4][BaseDeployer:2380] Modifying Servlet 2.4 /home/chun/Projects/Servers/liferay-portal-6.2-ee-sp1/tomcat-7.0.42/temp/20140228245735401/WEB-INF/web.xml Copying 46 files to /home/chun/Projects/Servers/liferay-portal-6.2-ee-sp1/tomcat-7.0.42/webapps/webcontent-workflow-portlet Copying 1 file to /home/chun/Projects/Servers/liferay-portal-6.2-ee-sp1/tomcat-7.0.42/webapps/webcontent-workflow-portlet Deleting directory /home/chun/Projects/Servers/liferay-portal-6.2-ee-sp1/tomcat-7.0.42/temp/20140228245735401 00:57:40,014 INFO [http-bio-8080-exec-4][PortletAutoDeployListener:91] Portlets for /home/chun/Projects/Servers/liferay-portal-6.2-ee-sp1/tomcat-7.0.42/temp/20140228245735384/webcontent-workflow-portlet-6.2.0.2.war copied successfully. Deployment will start in a few seconds. Feb 28, 2014 12:57:40 AM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory /home/chun/Projects/Servers/liferay-portal-6.2-ee-sp1/tomcat-7.0.42/webapps/webcontent-workflow-portlet 00:57:41,248 INFO [localhost-startStop-2][HotDeployEvent:130] Plugin webcontent-workflow-portlet requires marketplace-portlet 00:57:41,253 INFO [localhost-startStop-2][HotDeployImpl:195] Deploying webcontent-workflow-portlet from queue 00:57:41,254 INFO [localhost-startStop-2][PluginPackageUtil:1016] Reading plugin package for webcontent-workflow-portlet Feb 28, 2014 12:57:41 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring root WebApplicationContext 00:57:41,382 INFO [localhost-startStop-2][StartupListener:51] Starting up Web Content Workflow Configuration Portlet 00:57:41,383 INFO [localhost-startStop-2][PortletHotDeployListener:343] Registering portlets for webcontent-workflow-portlet 00:57:41,459 INFO [localhost-startStop-2][PortletHotDeployListener:490] 1 portlet for webcontent-workflow-portlet is available for use

cwho commented 10 years ago

and restart: 01:01:21,348 INFO [localhost-startStop-1][HotDeployImpl:195] Deploying webcontent-workflow-portlet from queue 01:01:21,348 INFO [localhost-startStop-1][PluginPackageUtil:1016] Reading plugin package for webcontent-workflow-portlet Feb 28, 2014 1:01:21 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring root WebApplicationContext 01:01:21,479 INFO [localhost-startStop-1][PortletHotDeployListener:343] Registering portlets for webcontent-workflow-portlet 01:01:21,550 INFO [localhost-startStop-1][PortletHotDeployListener:490] 1 portlet for webcontent-workflow-portlet is available for use

flaviusdaca commented 10 years ago

Problem is still there for us even after redeploying the theme:

De 2014-02-28 12:05:15,597 INFO Processing Workflow Selection by Web Content Structure Type.lpkg 2014-02-28 12:05:15,600 INFO Extracting Liferay package for /var/lib/tomcat7/liferay/deploy/Workflow Selection by Web Content Structure Type.lpkg 2014-02-28 12:05:15,601 INFO Extracting webcontent-workflow-portlet-6.2.0.2.war from Workflow Selection by Web Content Structure Type.lpkg 2014-02-28 12:05:15,602 INFO Extracting liferay-marketplace.properties from Workflow Selection by Web Content Structure Type.lpkg 2014-02-28 12:05:15,603 INFO Liferay package for /var/lib/tomcat7/liferay/deploy/Workflow Selection by Web Content Structure Type.lpkg extracted successfully. Deployment will start in a few seconds. 2014-02-28 12:05:18,605 INFO Processing webcontent-workflow-portlet-6.2.0.2.war 2014-02-28 12:05:18,606 INFO Copying portlets for /var/lib/tomcat7/liferay/deploy/webcontent-workflow-portlet-6.2.0.2.war 2014-02-28 12:05:18,614 INFO Deploying webcontent-workflow-portlet-6.2.0.2.war 2014-02-28 12:05:18,619 INFO Updating webcontent-workflow-portlet from version 6.2.0.2 to version 6.2.0.2 2014-02-28 12:05:19,576 INFO Modifying Servlet 2.4 /tmp/tomcat7-tomcat7-tmp/20140228120518620/WEB-INF/web.xml 2014-02-28 12:05:19,750 INFO Portlets for /var/lib/tomcat7/liferay/deploy/webcontent-workflow-portlet-6.2.0.2.war copied successfully. Deployment will start in a few seconds. 2014-02-28 12:05:29,607 INFO Shutting down Web Content Workflow Configuration Portlet 2014-02-28 12:05:29,608 INFO Plugin webcontent-workflow-portlet requires marketplace-portlet 2014-02-28 12:05:29,611 INFO Unregistering portlets for webcontent-workflow-portlet 2014-02-28 12:05:29,618 INFO 1 portlet for webcontent-workflow-portlet was unregistered 2014-02-28 12:05:29,623 INFO Reading plugin package for webcontent-workflow-portlet 2014-02-28 12:05:30,217 INFO Plugin webcontent-workflow-portlet requires marketplace-portlet 2014-02-28 12:05:30,217 INFO Deploying webcontent-workflow-portlet from queue 2014-02-28 12:05:30,219 INFO Reading plugin package for webcontent-workflow-portlet 2014-02-28 12:05:30,444 INFO Starting up Web Content Workflow Configuration Portlet 2014-02-28 12:05:30,446 INFO Registering portlets for webcontent-workflow-portlet 2014-02-28 12:05:30,475 DEBUG Create instance cache wrapper for webcontentworkflowportlet_WAR_webcontentworkflowportlet 2014-02-28 12:05:30,503 INFO 1 portlet for webcontent-workflow-portlet is available for use

After restart:

Feb 28, 2014 12:07:17 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory /var/lib/tomcat7/webapps/webcontent-workflow-portlet Feb 28, 2014 12:07:17 PM org.apache.catalina.core.ApplicationContext log SEVERE: StandardWrapper.Throwable java.lang.NullPointerException at com.liferay.portal.kernel.workflow.WorkflowHandlerRegistryUtil.getWorkflowHandler(WorkflowHandlerRegistryUtil.java:47) at au.com.permeance.liferay.util.startup.StartupListener.applicationStart(StartupListener.java:52) at au.com.permeance.liferay.util.startup.StartupServlet.init(StartupServlet.java:39) at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1266) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1185) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1080) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5015) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5302) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1095) at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1617) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) 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:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722)

Feb 28, 2014 12:07:17 PM org.apache.catalina.core.StandardContext loadOnStartup SEVERE: Servlet /webcontent-workflow-portlet threw load() exception java.lang.NullPointerException at com.liferay.portal.kernel.workflow.WorkflowHandlerRegistryUtil.getWorkflowHandler(WorkflowHandlerRegistryUtil.java:47) at au.com.permeance.liferay.util.startup.StartupListener.applicationStart(StartupListener.java:52) at au.com.permeance.liferay.util.startup.StartupServlet.init(StartupServlet.java:39) at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1266) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1185) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1080) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5015) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5302) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1095) at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1617) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) 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:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722)

kostasLamogiannis commented 9 years ago

Hi, same here using liferay 6.2, jbossa7 bundle, after restart:

19:21:27,833 INFO [au.com.permeance.liferay.util.startup.StartupListener](MSC service thread 1-8) Starting up Web Content Workflow Configuration Portlet 19:21:27,835 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/webcontent-workflow-portlet]](MSC service thread 1-8) StandardWrapper.Throwable: java.lang.NullPointerException at com.liferay.portal.kernel.workflow.WorkflowHandlerRegistryUtil.getWorkflowHandler(WorkflowHandlerRegistryUtil.java:47) [portal-service.jar:] at au.com.permeance.liferay.util.startup.StartupListener.applicationStart(StartupListener.java:52) [classes:] at au.com.permeance.liferay.util.startup.StartupServlet.init(StartupServlet.java:39) [classes:] at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202) [jbossweb-7.0.13.Final.jar:] at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102) [jbossweb-7.0.13.Final.jar:] at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3655) [jbossweb-7.0.13.Final.jar:] at org.apache.catalina.core.StandardContext.start(StandardContext.java:3873) [jbossweb-7.0.13.Final.jar:] at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final] at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_71] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_71] at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_71]

19:21:27,857 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/webcontent-workflow-portlet]](MSC service thread 1-8) Servlet /webcontent-workflow-portlet threw load() exception: java.lang.NullPointerException at com.liferay.portal.kernel.workflow.WorkflowHandlerRegistryUtil.getWorkflowHandler(WorkflowHandlerRegistryUtil.java:47) [portal-service.jar:] at au.com.permeance.liferay.util.startup.StartupListener.applicationStart(StartupListener.java:52) [classes:] at au.com.permeance.liferay.util.startup.StartupServlet.init(StartupServlet.java:39) [classes:] at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202) [jbossweb-7.0.13.Final.jar:] at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102) [jbossweb-7.0.13.Final.jar:] at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3655) [jbossweb-7.0.13.Final.jar:] at org.apache.catalina.core.StandardContext.start(StandardContext.java:3873) [jbossweb-7.0.13.Final.jar:] at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final] at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_71] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_71] at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_71]