cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hepabolu <hepab...@gmail.com>
Subject [CForms] <fi:styling type="textarea"/> throws NPE in BRANCH
Date Thu, 29 Sep 2005 22:14:00 GMT
Guys,

A form that worked under 2.1.7 (either release or a dev version close to
release), throws a NPE in 2.1.8-dev (revision 292559 of just now ). Turns
out to be caused by <fi:styling type="textarea"/>

in other words:

<ft:widget id="somestringbasedinput"/> works, but

<ft:widget id="somestringbasedinput">
<fi:styling type="textarea"/>
</ft:widget>

throws an NPE.

Look in sitemap part below: error occurs after forms transformer i.e. not at
"debug2" but at "debug3"

Any ideas?

Bye, Helma


Sitemap part:

<map:match pattern="**/*.jx">
<map:generate type="jx" src="system/forms/{2}.jx">
<map:parameter name="lang" value="{1}"/>
</map:generate>
<map:transform type="cinclude" label="debug2"/>
<map:transform src="blah.xsl"/>
<map:transform type="forms" label="debug3"/> <-- error occurs here
<map:transform src="system/xsl/tohtml.xsl" label="debug4">
<map:parameter name="filename" value="{2}.form"/>
<map:parameter name="lang" value="{1}"/>
</map:transform>
<map:transform type="i18n">
<map:parameter name="default-catalogue-id" value="osn"/>
<map:parameter name="locale" value="{1}"/>
</map:transform>
<map:transform src="system/xsl/forms-samples-styling.xsl"/>
<map:transform type="i18n">
<map:parameter name="locale" value="{1}"/>
</map:transform>
<map:transform src="system/xsl/stripnamespaces.xsl"/>
<map:serialize type="xhtml" encoding="UTF-8"/>
</map:match>

Stack trace:

org.apache.cocoon.ProcessingException: Failed to process pipeline
	at <map:serialize type="xhtml"> -
file:/D:/projects/osn-website/tools/cocoon/webapp/osn/sitemap.xmap:344:59
	at <map:transform> -
file:/D:/projects/osn-website/tools/cocoon/webapp/osn/sitemap.xmap:343:66
	at <map:transform type="i18n"> -
file:/D:/projects/osn-website/tools/cocoon/webapp/osn/sitemap.xmap:339:55
	at <map:transform> -
file:/D:/projects/osn-website/tools/cocoon/webapp/osn/sitemap.xmap:338:87
	at <map:transform type="i18n"> -
file:/D:/projects/osn-website/tools/cocoon/webapp/osn/sitemap.xmap:334:40
	at <map:transform> -
file:/D:/projects/osn-website/tools/cocoon/webapp/osn/sitemap.xmap:330:71
	at <map:transform type="forms"> -
file:/D:/projects/osn-website/tools/cocoon/webapp/osn/sitemap.xmap:329:57
	at <map:transform> -
file:/D:/projects/osn-website/tools/cocoon/webapp/osn/sitemap.xmap:326:60
	at <map:transform type="cinclude"> -
file:/D:/projects/osn-website/tools/cocoon/webapp/osn/sitemap.xmap:325:60
	at <map:generate type="jx"> -
file:/D:/projects/osn-website/tools/cocoon/webapp/osn/sitemap.xmap:322:78
	at resource://org/apache/cocoon/forms/flow/javascript/Form.js:183:-1
	at file:/D:/projects/osn-website/tools/cocoon/webapp/osn/system/scripts/order.js:252:-1
	at file:/D:/projects/osn-website/tools/cocoon/webapp/osn/system/scripts/order.js:108:-1
	at <map:call> -
file:/D:/projects/osn-website/tools/cocoon/webapp/osn/sitemap.xmap:255:38
	at <map:mount> -
file:/D:/projects/osn-website/tools/cocoon/webapp/sitemap.xmap:694:66
	at org.apache.cocoon.ProcessingException.throwLocated(ProcessingException.java:144)
	at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.handleException(AbstractProcessingPipeline.java:951)
	at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:582)
	at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:183)
	at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:480)
	at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:120)
	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:46)
	at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:130)
	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
	at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:142)
	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
	at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:92)
	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:234)
	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.handleCocoonRedirect(ConcreteTreeProcessor.java:298)
	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.access$000(ConcreteTreeProcessor.java:47)
	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor$TreeProcessorRedirector.cocoonRedirect(ConcreteTreeProcessor.java:339)
	at org.apache.cocoon.environment.ForwardRedirector.redirect(ForwardRedirector.java:59)
	at org.apache.cocoon.components.flow.AbstractInterpreter.forwardTo(AbstractInterpreter.java:209)
	at org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.forwardTo(FOM_JavaScriptInterpreter.java:906)
	at org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon.forwardTo(FOM_Cocoon.java:698)
	at org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon.jsFunction_sendPage(FOM_Cocoon.java:269)
	at inv9.invoke()
	at org.mozilla.javascript.FunctionObject.doInvoke(FunctionObject.java:523)
	at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:438)
	at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1244)
	at org.mozilla.javascript.continuations.ContinuationInterpreter.interpret(ContinuationInterpreter.java:1134)
	at org.mozilla.javascript.continuations.ContinuationInterpreter.interpret(ContinuationInterpreter.java:190)
	at org.mozilla.javascript.continuations.ContinuationInterpreter.interpret(ContinuationInterpreter.java:138)
	at org.mozilla.javascript.continuations.InterpretedFunctionImpl.call(InterpretedFunctionImpl.java:121)
	at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1244)
	at org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.callFunction(FOM_JavaScriptInterpreter.java:758)
	at org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke(CallFunctionNode.java:138)
	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:46)
	at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:130)
	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
	at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:142)
	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
	at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:92)
	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:234)
	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:176)
	at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:248)
	at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:117)
	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:46)
	at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:130)
	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
	at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:142)
	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
	at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:92)
	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:234)
	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:176)
	at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:248)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:679)
	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1154)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)
	at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
	at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
	at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)
	at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
	at org.mortbay.http.HttpServer.service(HttpServer.java:879)
	at org.mortbay.http.HttpConnection.service(HttpConnection.java:789)
	at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960)
	at org.mortbay.http.HttpConnection.handle(HttpConnection.java:806)
	at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218)
	at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:300)
	at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511)
Caused by: java.lang.RuntimeException: java.lang.NullPointerException
	at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3493)
	at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:406)
	at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:55)
	at org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:610)
	at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:55)
	at org.apache.cocoon.transformation.AbstractSAXTransformer.endDocument(AbstractSAXTransformer.java:381)
	at org.apache.cocoon.transformation.CIncludeTransformer.endDocument(CIncludeTransformer.java:652)
	at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:55)
	at org.apache.cocoon.generation.JXTemplateGenerator.execute(JXTemplateGenerator.java:3176)
	at org.apache.cocoon.generation.JXTemplateGenerator.performGeneration(JXTemplateGenerator.java:2497)
	at org.apache.cocoon.generation.JXTemplateGenerator.generate(JXTemplateGenerator.java:2488)
	at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:578)

	... 64 more



--
Bye, hepabolu

Mime
View raw message