RE: Coocoon NullPointerException Version 1.5
First question that comes to my mind: Would it be possible for you to test on a plain tomcat instance and see if you get the same nullpointer? If it works fine there you already have some idea on where to continue the investigation. Robby -Oorspronkelijk bericht- Van: Johnson, Samuel (EXT-Wipro Infotech - FI) [mailto:samuel.johnson@nsn.com] Verzonden: wo 27-4-2011 12:18 Aan: users@cocoon.apache.org CC: Natrayan, Aarthi (EXT-Wipro Infotech - FI); Feuereck, Anton (NSN - DE/Munich) Onderwerp: Coocoon NullPointerException Version 1.5 Hi Team, We are using cocoon framework for our project with JBoss as our servlet container. Intermittently we are getting the below exception. Can you please let me know if it's a known bug or if there is any work-around for this issue? Our Environment is as follows Server: JBoss Framework: Cocoon 1.5 Exception StackTrace ExeptionText=java.lang.NullPointerException org.apache.cocoon.www.file_.pvol1.home1.lmstask.jboss.server.default_.__ .tmp.deploy.tmp3911224041241398318lms_exp_war.cpm.structure.explorer.exp lorer_xsp.generate(org.apache.cocoon.www.file_.pvol1.home1.lmstask.jboss .server.default_.__.tmp.deploy.tmp3911224041241398318lms_exp_war.cpm.str ucture.explorer.explorer_xsp:959) URI=/lms/cpm/structure/explorer/explorer.xsp java.lang.NullPointerException at org.apache.cocoon.www.file_.pvol1.home1.lmstask.jboss.server.default_.__ .tmp.deploy.tmp3911224041241398318lms_exp_war.cpm.structure.explorer.exp lorer_xsp.generate(org.apache.cocoon.www.file_.pvol1.home1.lmstask.jboss .server.default_.__.tmp.deploy.tmp3911224041241398318lms_exp_war.cpm.str ucture.explorer.explorer_xsp:959) at org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGe nerator.java:228) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process XMLPipeline(AbstractProcessingPipeline.java:579) at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipe line.processXMLPipeline(AbstractCachingProcessingPipeline.java:280) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process (AbstractProcessingPipeline.java:481) at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke( SerializeNode.java:144) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode. invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.SelectNode.invoke(Sel ectNode.java:103) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode. invokeNodes(AbstractParentProcessingNode.java:47) at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(Matc hNode.java:108) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode. invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(P ipelineNode.java:143) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode. invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke( PipelinesNode.java:93) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process (ConcreteTreeProcessor.java:235) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process (ConcreteTreeProcessor.java:177) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreePro cessor.java:254) at org.apache.cocoon.Cocoon.process(Cocoon.java:699) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1154) at lmsWeb.CocoonServletWrapper.service(CocoonServletWrapper.java:113) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc her.java:654) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDisp atcher.java:557) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispat cher.java:481) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.ja va:968) at org.apache.jsp.cpm.structure.explorer.explorer_jsp._jspService(explorer_ jsp.java:189) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:373) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) at
RE: Coocoon NullPointerException Version 1.5
Hi Robby, Thanks for the reply. This is not possible as it's a live server and in our test environment we are not able to reproduce it. We are not sure of the cause. Thanks and Regards Sam |NSN-IT|Mob +91-9611077622|VOIP 8243303| -Original Message- From: Natrayan, Aarthi (EXT-Wipro Infotech - FI) Sent: Wednesday, April 27, 2011 4:30 PM To: Johnson, Samuel (EXT-Wipro Infotech - FI) Subject: FW: Coocoon NullPointerException Version 1.5 Hi Sam, Have you received the below mail?? Your mail id is not in this distribution list. So I just forwarded to u. Regards, Aarthi. -Original Message- From: ext Robby Pelssers [mailto:robby.pelss...@ciber.com] Sent: Wednesday, April 27, 2011 4:03 PM To: users@cocoon.apache.org; users@cocoon.apache.org Cc: Natrayan, Aarthi (EXT-Wipro Infotech - FI); Feuereck, Anton (NSN - DE/Munich) Subject: RE: Coocoon NullPointerException Version 1.5 First question that comes to my mind: Would it be possible for you to test on a plain tomcat instance and see if you get the same nullpointer? If it works fine there you already have some idea on where to continue the investigation. Robby -Oorspronkelijk bericht- Van: Johnson, Samuel (EXT-Wipro Infotech - FI) [mailto:samuel.johnson@nsn.com] Verzonden: wo 27-4-2011 12:18 Aan: users@cocoon.apache.org CC: Natrayan, Aarthi (EXT-Wipro Infotech - FI); Feuereck, Anton (NSN - DE/Munich) Onderwerp: Coocoon NullPointerException Version 1.5 Hi Team, We are using cocoon framework for our project with JBoss as our servlet container. Intermittently we are getting the below exception. Can you please let me know if it's a known bug or if there is any work-around for this issue? Our Environment is as follows Server: JBoss Framework: Cocoon 1.5 Exception StackTrace ExeptionText=java.lang.NullPointerException org.apache.cocoon.www.file_.pvol1.home1.lmstask.jboss.server.default_.__ .tmp.deploy.tmp3911224041241398318lms_exp_war.cpm.structure.explorer.exp lorer_xsp.generate(org.apache.cocoon.www.file_.pvol1.home1.lmstask.jboss .server.default_.__.tmp.deploy.tmp3911224041241398318lms_exp_war.cpm.str ucture.explorer.explorer_xsp:959) URI=/lms/cpm/structure/explorer/explorer.xsp java.lang.NullPointerException at org.apache.cocoon.www.file_.pvol1.home1.lmstask.jboss.server.default_.__ .tmp.deploy.tmp3911224041241398318lms_exp_war.cpm.structure.explorer.exp lorer_xsp.generate(org.apache.cocoon.www.file_.pvol1.home1.lmstask.jboss .server.default_.__.tmp.deploy.tmp3911224041241398318lms_exp_war.cpm.str ucture.explorer.explorer_xsp:959) at org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGe nerator.java:228) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process XMLPipeline(AbstractProcessingPipeline.java:579) at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipe line.processXMLPipeline(AbstractCachingProcessingPipeline.java:280) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process (AbstractProcessingPipeline.java:481) at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke( SerializeNode.java:144) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode. invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.SelectNode.invoke(Sel ectNode.java:103) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode. invokeNodes(AbstractParentProcessingNode.java:47) at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(Matc hNode.java:108) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode. invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(P ipelineNode.java:143) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode. invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke( PipelinesNode.java:93) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process (ConcreteTreeProcessor.java:235) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process (ConcreteTreeProcessor.java:177) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreePro cessor.java:254) at org.apache.cocoon.Cocoon.process(Cocoon.java:699) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1154) at lmsWeb.CocoonServletWrapper.service(CocoonServletWrapper.java:113) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:206
RE: Coocoon NullPointerException Version 1.5
The fact that you are not able to reproduce this on your test environment does in some way already give some hint. Although I must admit some problems (concurrency, memory, ...) only reveal themselves on production environments. A few other questions: - are you using the same setup on test and prod (application container + version, OS, ...) - are there any dependencies which could cause a nullpointer (missing property, perhaps missing value in database) - is the exact same war file deployed AS IS from TEST to PROD? - is the app interfacing with other systems that could behave differently? ... From the stacktrace I can't really make out a lot so I think it makes sense to analyze what that xsp is doing and check at what line in the xsp the exception is thrown to get more clues. Kind regards, Robby -Oorspronkelijk bericht- Van: Johnson, Samuel (EXT-Wipro Infotech - FI) [mailto:samuel.johnson@nsn.com] Verzonden: wo 27-4-2011 13:33 Aan: users@cocoon.apache.org Onderwerp: RE: Coocoon NullPointerException Version 1.5 Hi Robby, Thanks for the reply. This is not possible as it's a live server and in our test environment we are not able to reproduce it. We are not sure of the cause. Thanks and Regards Sam |NSN-IT|Mob +91-9611077622|VOIP 8243303| -Original Message- From: Natrayan, Aarthi (EXT-Wipro Infotech - FI) Sent: Wednesday, April 27, 2011 4:30 PM To: Johnson, Samuel (EXT-Wipro Infotech - FI) Subject: FW: Coocoon NullPointerException Version 1.5 Hi Sam, Have you received the below mail?? Your mail id is not in this distribution list. So I just forwarded to u. Regards, Aarthi. -Original Message- From: ext Robby Pelssers [mailto:robby.pelss...@ciber.com] Sent: Wednesday, April 27, 2011 4:03 PM To: users@cocoon.apache.org; users@cocoon.apache.org Cc: Natrayan, Aarthi (EXT-Wipro Infotech - FI); Feuereck, Anton (NSN - DE/Munich) Subject: RE: Coocoon NullPointerException Version 1.5 First question that comes to my mind: Would it be possible for you to test on a plain tomcat instance and see if you get the same nullpointer? If it works fine there you already have some idea on where to continue the investigation. Robby -Oorspronkelijk bericht- Van: Johnson, Samuel (EXT-Wipro Infotech - FI) [mailto:samuel.johnson@nsn.com] Verzonden: wo 27-4-2011 12:18 Aan: users@cocoon.apache.org CC: Natrayan, Aarthi (EXT-Wipro Infotech - FI); Feuereck, Anton (NSN - DE/Munich) Onderwerp: Coocoon NullPointerException Version 1.5 Hi Team, We are using cocoon framework for our project with JBoss as our servlet container. Intermittently we are getting the below exception. Can you please let me know if it's a known bug or if there is any work-around for this issue? Our Environment is as follows Server: JBoss Framework: Cocoon 1.5 Exception StackTrace ExeptionText=java.lang.NullPointerException org.apache.cocoon.www.file_.pvol1.home1.lmstask.jboss.server.default_.__ .tmp.deploy.tmp3911224041241398318lms_exp_war.cpm.structure.explorer.exp lorer_xsp.generate(org.apache.cocoon.www.file_.pvol1.home1.lmstask.jboss .server.default_.__.tmp.deploy.tmp3911224041241398318lms_exp_war.cpm.str ucture.explorer.explorer_xsp:959) URI=/lms/cpm/structure/explorer/explorer.xsp java.lang.NullPointerException at org.apache.cocoon.www.file_.pvol1.home1.lmstask.jboss.server.default_.__ .tmp.deploy.tmp3911224041241398318lms_exp_war.cpm.structure.explorer.exp lorer_xsp.generate(org.apache.cocoon.www.file_.pvol1.home1.lmstask.jboss .server.default_.__.tmp.deploy.tmp3911224041241398318lms_exp_war.cpm.str ucture.explorer.explorer_xsp:959) at org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGe nerator.java:228) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process XMLPipeline(AbstractProcessingPipeline.java:579) at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipe line.processXMLPipeline(AbstractCachingProcessingPipeline.java:280) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process (AbstractProcessingPipeline.java:481) at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke( SerializeNode.java:144) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode. invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.SelectNode.invoke(Sel ectNode.java:103) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode. invokeNodes(AbstractParentProcessingNode.java:47) at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(Matc hNode.java:108) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode. invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(P ipelineNode.java:143
RE: Coocoon NullPointerException Version 1.5
One other remark: Although it's been at least 6 years ago I've written xsp's, I do however remember that it was possible to overwrite the xsp's in the exploded war folder. Maybe you need to set some flag somewhere in order for Cocoon to recompile them on-the-fly..not sure though. I would add some extra logging statements to that xsp just for debugging purposes to find out what line is causing the nullpointer and start investigating from there. And you can safely replace the original xsp back after you're done. Robby -Oorspronkelijk bericht- Van: Robby Pelssers [mailto:robby.pelss...@ciber.com] Verzonden: wo 27-4-2011 13:54 Aan: users@cocoon.apache.org; users@cocoon.apache.org Onderwerp: RE: Coocoon NullPointerException Version 1.5 The fact that you are not able to reproduce this on your test environment does in some way already give some hint. Although I must admit some problems (concurrency, memory, ...) only reveal themselves on production environments. A few other questions: - are you using the same setup on test and prod (application container + version, OS, ...) - are there any dependencies which could cause a nullpointer (missing property, perhaps missing value in database) - is the exact same war file deployed AS IS from TEST to PROD? - is the app interfacing with other systems that could behave differently? ... From the stacktrace I can't really make out a lot so I think it makes sense to analyze what that xsp is doing and check at what line in the xsp the exception is thrown to get more clues. Kind regards, Robby -Oorspronkelijk bericht- Van: Johnson, Samuel (EXT-Wipro Infotech - FI) [mailto:samuel.johnson@nsn.com] Verzonden: wo 27-4-2011 13:33 Aan: users@cocoon.apache.org Onderwerp: RE: Coocoon NullPointerException Version 1.5 Hi Robby, Thanks for the reply. This is not possible as it's a live server and in our test environment we are not able to reproduce it. We are not sure of the cause. Thanks and Regards Sam |NSN-IT|Mob +91-9611077622|VOIP 8243303| -Original Message- From: Natrayan, Aarthi (EXT-Wipro Infotech - FI) Sent: Wednesday, April 27, 2011 4:30 PM To: Johnson, Samuel (EXT-Wipro Infotech - FI) Subject: FW: Coocoon NullPointerException Version 1.5 Hi Sam, Have you received the below mail?? Your mail id is not in this distribution list. So I just forwarded to u. Regards, Aarthi. -Original Message- From: ext Robby Pelssers [mailto:robby.pelss...@ciber.com] Sent: Wednesday, April 27, 2011 4:03 PM To: users@cocoon.apache.org; users@cocoon.apache.org Cc: Natrayan, Aarthi (EXT-Wipro Infotech - FI); Feuereck, Anton (NSN - DE/Munich) Subject: RE: Coocoon NullPointerException Version 1.5 First question that comes to my mind: Would it be possible for you to test on a plain tomcat instance and see if you get the same nullpointer? If it works fine there you already have some idea on where to continue the investigation. Robby -Oorspronkelijk bericht- Van: Johnson, Samuel (EXT-Wipro Infotech - FI) [mailto:samuel.johnson@nsn.com] Verzonden: wo 27-4-2011 12:18 Aan: users@cocoon.apache.org CC: Natrayan, Aarthi (EXT-Wipro Infotech - FI); Feuereck, Anton (NSN - DE/Munich) Onderwerp: Coocoon NullPointerException Version 1.5 Hi Team, We are using cocoon framework for our project with JBoss as our servlet container. Intermittently we are getting the below exception. Can you please let me know if it's a known bug or if there is any work-around for this issue? Our Environment is as follows Server: JBoss Framework: Cocoon 1.5 Exception StackTrace ExeptionText=java.lang.NullPointerException org.apache.cocoon.www.file_.pvol1.home1.lmstask.jboss.server.default_.__ .tmp.deploy.tmp3911224041241398318lms_exp_war.cpm.structure.explorer.exp lorer_xsp.generate(org.apache.cocoon.www.file_.pvol1.home1.lmstask.jboss .server.default_.__.tmp.deploy.tmp3911224041241398318lms_exp_war.cpm.str ucture.explorer.explorer_xsp:959) URI=/lms/cpm/structure/explorer/explorer.xsp java.lang.NullPointerException at org.apache.cocoon.www.file_.pvol1.home1.lmstask.jboss.server.default_.__ .tmp.deploy.tmp3911224041241398318lms_exp_war.cpm.structure.explorer.exp lorer_xsp.generate(org.apache.cocoon.www.file_.pvol1.home1.lmstask.jboss .server.default_.__.tmp.deploy.tmp3911224041241398318lms_exp_war.cpm.str ucture.explorer.explorer_xsp:959) at org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGe nerator.java:228) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process XMLPipeline(AbstractProcessingPipeline.java:579) at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipe line.processXMLPipeline(AbstractCachingProcessingPipeline.java:280) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process (AbstractProcessingPipeline.java:481) at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke