RE: Error message for xslt
Caused by: java.lang.NullPointerException Are you setting all parameters used by the XSLT? Can you verify you do? Robby -Original Message- From: Mansour Al Akeel [mailto:mansour.alak...@gmail.com] Sent: Thursday, December 13, 2012 4:57 PM To: users Subject: Error message for xslt I am doing transformation with XSLT and C2.2. When there's something wrong with the XSL, I get the following message: javax.servlet.ServletException: org.apache.cocoon.ProcessingException: Failed to process pipeline at map:serialize type=xml - file:///C:/workspace/transformation-pipes/pipelines/contents-filesystem/./src/main/resources/COB-INF/sitemap.xmap:37:33 at map:transform type=saxon - file:///C:/workspace/transformation-pipes/pipelines/contents-filesystem/./src/main/resources/COB-INF/sitemap.xmap:31:72 at map:generate type=validator - file:///C:/workspace/transformation-pipes/pipelines/contents-filesystem/./src/main/resources/COB-INF/sitemap.xmap:29:89 at map:match - file:///C:/workspace/transformation-pipes/pipelines/contents-filesystem/./src/main/resources/COB-INF/sitemap.xmap:27:68 at org.apache.cocoon.servlet.RequestProcessor.service(RequestProcessor.java:230) at org.apache.cocoon.sitemap.SitemapServlet.service(SitemapServlet.java:84) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.apache.cocoon.servletservice.ServletServiceContext$PathDispatcher.forward(ServletServiceContext.java:468) . at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450) Caused by: org.apache.cocoon.ProcessingException: Failed to process pipeline at map:serialize type=xml - file:///C:/workspace/transformation-pipes/pipelines/contents-filesystem/./src/main/resources/COB-INF/sitemap.xmap:37:33 at map:transform type=saxon - file:///C:/workspace/transformation-pipes/pipelines/contents-filesystem/./src/main/resources/COB-INF/sitemap.xmap:31:72 at map:generate type=validator - file:///C:/workspace/transformation-pipes/pipelines/contents-filesystem/./src/main/resources/COB-INF/sitemap.xmap:29:89 at map:match - file:///C:/workspace/transformation-pipes/pipelines/contents-filesystem/./src/main/resources/COB-INF/sitemap.xmap:27:68 at org.apache.cocoon.ProcessingException.throwLocated(ProcessingException.java:143) at org.apache.cocoon.servlet.RequestProcessor.service(RequestProcessor.java:169) ... 38 more Caused by: java.lang.NullPointerException at org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:566) at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endDocument(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source) at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.apache.cocoon.core.xml.impl.JaxpSAXParser.parse(JaxpSAXParser.java:196) at org.apache.cocoon.core.xml.impl.JaxpSAXParser.parse(JaxpSAXParser.java:204) at org.apache.cocoon.components.source.util.SourceUtil.parse(SourceUtil.java:297) at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:136) at ca.cpha.repo.pipelines.sax.MonographGenerator.generate(MonographGenerator.java:27) at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71) at $Proxy25.generate(Unknown Source) at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:360) ... 56 more Nothing tells me anything about the error message from the XSLT. Is there a way to know what is going on ?? Thank you.
Re: Error message for xslt
I will check again, however for the future, how can I tell if a parameter is missing or not set in the XSLT ?? On Thu, Dec 13, 2012 at 10:59 AM, Robby Pelssers robby.pelss...@nxp.com wrote: Caused by: java.lang.NullPointerException Are you setting all parameters used by the XSLT? Can you verify you do? Robby -Original Message- From: Mansour Al Akeel [mailto:mansour.alak...@gmail.com] Sent: Thursday, December 13, 2012 4:57 PM To: users Subject: Error message for xslt I am doing transformation with XSLT and C2.2. When there's something wrong with the XSL, I get the following message: javax.servlet.ServletException: org.apache.cocoon.ProcessingException: Failed to process pipeline at map:serialize type=xml - file:///C:/workspace/transformation-pipes/pipelines/contents-filesystem/./src/main/resources/COB-INF/sitemap.xmap:37:33 at map:transform type=saxon - file:///C:/workspace/transformation-pipes/pipelines/contents-filesystem/./src/main/resources/COB-INF/sitemap.xmap:31:72 at map:generate type=validator - file:///C:/workspace/transformation-pipes/pipelines/contents-filesystem/./src/main/resources/COB-INF/sitemap.xmap:29:89 at map:match - file:///C:/workspace/transformation-pipes/pipelines/contents-filesystem/./src/main/resources/COB-INF/sitemap.xmap:27:68 at org.apache.cocoon.servlet.RequestProcessor.service(RequestProcessor.java:230) at org.apache.cocoon.sitemap.SitemapServlet.service(SitemapServlet.java:84) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.apache.cocoon.servletservice.ServletServiceContext$PathDispatcher.forward(ServletServiceContext.java:468) . at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450) Caused by: org.apache.cocoon.ProcessingException: Failed to process pipeline at map:serialize type=xml - file:///C:/workspace/transformation-pipes/pipelines/contents-filesystem/./src/main/resources/COB-INF/sitemap.xmap:37:33 at map:transform type=saxon - file:///C:/workspace/transformation-pipes/pipelines/contents-filesystem/./src/main/resources/COB-INF/sitemap.xmap:31:72 at map:generate type=validator - file:///C:/workspace/transformation-pipes/pipelines/contents-filesystem/./src/main/resources/COB-INF/sitemap.xmap:29:89 at map:match - file:///C:/workspace/transformation-pipes/pipelines/contents-filesystem/./src/main/resources/COB-INF/sitemap.xmap:27:68 at org.apache.cocoon.ProcessingException.throwLocated(ProcessingException.java:143) at org.apache.cocoon.servlet.RequestProcessor.service(RequestProcessor.java:169) ... 38 more Caused by: java.lang.NullPointerException at org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:566) at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endDocument(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source) at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.apache.cocoon.core.xml.impl.JaxpSAXParser.parse(JaxpSAXParser.java:196) at org.apache.cocoon.core.xml.impl.JaxpSAXParser.parse(JaxpSAXParser.java:204) at org.apache.cocoon.components.source.util.SourceUtil.parse(SourceUtil.java:297) at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:136) at ca.cpha.repo.pipelines.sax.MonographGenerator.generate(MonographGenerator.java:27) at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71) at $Proxy25.generate(Unknown Source) at
RE: Error message for xslt
Well. You can easily check if that XSLT uses parameters... right? And at some point you invoke that transform from the sitemap: map:transform src=someXSLT.xslt/ !-- this one does not set parameters-- map:transform src=someXSLT.xslt map:parameter name=param1 value=TEST/ map:parameter name=param2 value={2}/ /map:transform Just check whether you set the parameters correct in your sitemap... and you should be able to tell if the values which you set don't have a null value. Robby -Original Message- From: Mansour Al Akeel [mailto:mansour.alak...@gmail.com] Sent: Thursday, December 13, 2012 5:27 PM To: users@cocoon.apache.org Subject: Re: Error message for xslt I will check again, however for the future, how can I tell if a parameter is missing or not set in the XSLT ?? On Thu, Dec 13, 2012 at 10:59 AM, Robby Pelssers robby.pelss...@nxp.com wrote: Caused by: java.lang.NullPointerException Are you setting all parameters used by the XSLT? Can you verify you do? Robby -Original Message- From: Mansour Al Akeel [mailto:mansour.alak...@gmail.com] Sent: Thursday, December 13, 2012 4:57 PM To: users Subject: Error message for xslt I am doing transformation with XSLT and C2.2. When there's something wrong with the XSL, I get the following message: javax.servlet.ServletException: org.apache.cocoon.ProcessingException: Failed to process pipeline at map:serialize type=xml - file:///C:/workspace/transformation-pipes/pipelines/contents-filesystem/./src/main/resources/COB-INF/sitemap.xmap:37:33 at map:transform type=saxon - file:///C:/workspace/transformation-pipes/pipelines/contents-filesystem/./src/main/resources/COB-INF/sitemap.xmap:31:72 at map:generate type=validator - file:///C:/workspace/transformation-pipes/pipelines/contents-filesystem/./src/main/resources/COB-INF/sitemap.xmap:29:89 at map:match - file:///C:/workspace/transformation-pipes/pipelines/contents-filesystem/./src/main/resources/COB-INF/sitemap.xmap:27:68 at org.apache.cocoon.servlet.RequestProcessor.service(RequestProcessor.java:230) at org.apache.cocoon.sitemap.SitemapServlet.service(SitemapServlet.java:84) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.apache.cocoon.servletservice.ServletServiceContext$PathDispatcher. forward(ServletServiceContext.java:468) . at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool. java:450) Caused by: org.apache.cocoon.ProcessingException: Failed to process pipeline at map:serialize type=xml - file:///C:/workspace/transformation-pipes/pipelines/contents-filesystem/./src/main/resources/COB-INF/sitemap.xmap:37:33 at map:transform type=saxon - file:///C:/workspace/transformation-pipes/pipelines/contents-filesystem/./src/main/resources/COB-INF/sitemap.xmap:31:72 at map:generate type=validator - file:///C:/workspace/transformation-pipes/pipelines/contents-filesystem/./src/main/resources/COB-INF/sitemap.xmap:29:89 at map:match - file:///C:/workspace/transformation-pipes/pipelines/contents-filesystem/./src/main/resources/COB-INF/sitemap.xmap:27:68 at org.apache.cocoon.ProcessingException.throwLocated(ProcessingException .java:143) at org.apache.cocoon.servlet.RequestProcessor.service(RequestProcessor.java:169) ... 38 more Caused by: java.lang.NullPointerException at org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:566) at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endDocument(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source) at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.d ispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unk nown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.apache.cocoon.core.xml.impl.JaxpSAXParser.parse(JaxpSAXParser.java:196) at org.apache.cocoon.core.xml.impl.JaxpSAXParser.parse(JaxpSAXParser.java:204
Re: Error message for xslt
Robby, this was not my question. My question was, how do I know the source of the error in the XSLT file. In my xslt I have a lot of param, but that is not an issue. Some variables inside the xsl are generate from the parsed documents, and those can be a source of error. Having a descriptive error message, will help solve issues quickly. I hope this clarifies the question. On Thu, Dec 13, 2012 at 11:33 AM, Robby Pelssers robby.pelss...@nxp.com wrote: Well. You can easily check if that XSLT uses parameters... right? And at some point you invoke that transform from the sitemap: map:transform src=someXSLT.xslt/ !-- this one does not set parameters-- map:transform src=someXSLT.xslt map:parameter name=param1 value=TEST/ map:parameter name=param2 value={2}/ /map:transform Just check whether you set the parameters correct in your sitemap... and you should be able to tell if the values which you set don't have a null value. Robby -Original Message- From: Mansour Al Akeel [mailto:mansour.alak...@gmail.com] Sent: Thursday, December 13, 2012 5:27 PM To: users@cocoon.apache.org Subject: Re: Error message for xslt I will check again, however for the future, how can I tell if a parameter is missing or not set in the XSLT ?? On Thu, Dec 13, 2012 at 10:59 AM, Robby Pelssers robby.pelss...@nxp.com wrote: Caused by: java.lang.NullPointerException Are you setting all parameters used by the XSLT? Can you verify you do? Robby -Original Message- From: Mansour Al Akeel [mailto:mansour.alak...@gmail.com] Sent: Thursday, December 13, 2012 4:57 PM To: users Subject: Error message for xslt I am doing transformation with XSLT and C2.2. When there's something wrong with the XSL, I get the following message: javax.servlet.ServletException: org.apache.cocoon.ProcessingException: Failed to process pipeline at map:serialize type=xml - file:///C:/workspace/transformation-pipes/pipelines/contents-filesystem/./src/main/resources/COB-INF/sitemap.xmap:37:33 at map:transform type=saxon - file:///C:/workspace/transformation-pipes/pipelines/contents-filesystem/./src/main/resources/COB-INF/sitemap.xmap:31:72 at map:generate type=validator - file:///C:/workspace/transformation-pipes/pipelines/contents-filesystem/./src/main/resources/COB-INF/sitemap.xmap:29:89 at map:match - file:///C:/workspace/transformation-pipes/pipelines/contents-filesystem/./src/main/resources/COB-INF/sitemap.xmap:27:68 at org.apache.cocoon.servlet.RequestProcessor.service(RequestProcessor.java:230) at org.apache.cocoon.sitemap.SitemapServlet.service(SitemapServlet.java:84) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.apache.cocoon.servletservice.ServletServiceContext$PathDispatcher. forward(ServletServiceContext.java:468) . at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool. java:450) Caused by: org.apache.cocoon.ProcessingException: Failed to process pipeline at map:serialize type=xml - file:///C:/workspace/transformation-pipes/pipelines/contents-filesystem/./src/main/resources/COB-INF/sitemap.xmap:37:33 at map:transform type=saxon - file:///C:/workspace/transformation-pipes/pipelines/contents-filesystem/./src/main/resources/COB-INF/sitemap.xmap:31:72 at map:generate type=validator - file:///C:/workspace/transformation-pipes/pipelines/contents-filesystem/./src/main/resources/COB-INF/sitemap.xmap:29:89 at map:match - file:///C:/workspace/transformation-pipes/pipelines/contents-filesystem/./src/main/resources/COB-INF/sitemap.xmap:27:68 at org.apache.cocoon.ProcessingException.throwLocated(ProcessingException .java:143) at org.apache.cocoon.servlet.RequestProcessor.service(RequestProcessor.java:169) ... 38 more Caused by: java.lang.NullPointerException at org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:566) at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endDocument(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source) at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.d ispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unk nown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source