Hi,

I wrote a customer transformer, it works quite ok with cocoon2.1.4. Now I 
updated cocoon to the latest version and I get these errors below, have you 
changes anything? always when I want to create a new element calling the method 
(startElement()) I get the error, can anybody help me please:

Original Exception: java.lang.NullPointerException
at 
org.apache.cocoon.serialization.AbstractTextSerializer$NamespaceAsAttributes.sta
rtElement(AbstractTextSerializer.java:424)
at org.apache.cocoon.xml.AbstractXMLPipe.startElement(AbstractXMLPipe.java:95)
at org.apache.cocoon.xml.AbstractXMLPipe.startElement(AbstractXMLPipe.java:95)
at RDQLTransformer.endElement(RDQLTransformer.java:414)
at org.apache.cocoon.components.sax.XMLTeePipe.endElement(XMLTeePipe.java:89)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.
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.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:296)
at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:315)
at org.apache.cocoon.components.source.SourceUtil.parse(SourceUtil.java:211)
at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:117)
at 
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.pro
cessXMLPipeline(AbstractCachingProcessingPipeline.java:247)
at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(Abstrac
tProcessingPipeline.java:478)
at 
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(Serializ
eNode.java:134)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNo
des(AbstractParentProcessingNode.java:54)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(Pr
eparableMatchNode.java:112)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNo
des(AbstractParentProcessingNode.java:76)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineN
ode.java:126)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNo
des(AbstractParentProcessingNode.java:76)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipeline
sNode.java:95)
at 
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(Concret
eTreeProcessor.java:298)
at 
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(Concret
eTreeProcessor.java:241)
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.j
ava:238)
at 
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.ja
va:100)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNo
des(AbstractParentProcessingNode.java:54)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(Pr
eparableMatchNode.java:112)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNo
des(AbstractParentProcessingNode.java:76)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineN
ode.java:126)
at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNo
des(AbstractParentProcessingNode.java:76)
at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipeline
sNode.java:95)
at 
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(Concret
eTreeProcessor.java:298)
at 
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(Concret
eTreeProcessor.java:241)
at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.j
ava:238)
at org.apache.cocoon.Cocoon.process(Cocoon.java:643)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1123)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:237)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:157)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:2
14)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.ja
va:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValv
e.java:198)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:1
52)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.ja
va:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.ja
va:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.ja
va:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109
)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.ja
va:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:793)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnectio
n(Http11Protocol.java:702)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:571)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:64
4)
at java.lang.Thread.run(Thread.java:534)

best regards,
Halgurt

Reply via email to