cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giacomo Pati <giac...@apache.org>
Subject Re: pipelineComponent scope troubles
Date Wed, 12 Sep 2007 16:08:10 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



Grzegorz Kossakowski wrote:
> Giacomo Pati pisze:
>> I can say for the sitemap I've coded that there is no single map:mount
> 
> I was asking if your sitemap that we (now) know both does not contain mounts is not mounted
by other
> sitemap. It's crucial for now to eliminate map:mount as possible cause of trouble because
if there
> is no map:mount you have probably found a bug.
> 
>>> Is your sitemap managed by Servlet Service Framework?
>> If you mean by the org.apache.cocoon.sitemap.SitemapServlet bean, than yes, otherwise
I'll need
>> more info on what you exactly mean by "Servlet Service Framework"
> 
> Yes, I meant exactly that.
>> You felt my frustration now, which has cost me two days to realize that I cannot
upgrade to newest
>> Cocoon. I was sure such thing shouldn't happen during RC release cycles anymore.
> 
> Remember that current trunk is not RC2 yet. I has been aware of the fact that my code
is in
> incomplete state and I was planning to complete it before RC2 or disable. However, it's
better to
> put even incomplete code in the wild so any bugs (not the known limitations) can be spotted.
> 
> I understand your frustration but you must remember that my GSoC work involved a *lot*
of changes
> and major refactorings in very difficult parts of Cocoon so it's acceptable that there
can be some
> bugs. Back-compatibility has been taken into account all the time, mainly thanks to Daniel's
endless
> reminders.
> 
>> Well, standard cocoon blocks mounted by DispatcherServlet into a standard cocoon-webapp
(by
>> archetype) using different other blocks i.e. cocoon-auth
> 
> Ok, that's very important information because I can be sure that everything is set up
properly by
> DispatcherServlet and collaborating classes.
> 
>> The stacktrace of the first request to standard Cocoon trunk is this:
> 
> <snip/>
> 
>> Caused by: java.lang.NullPointerException
>> 	at java.util.HashMap.putAll(HashMap.java:544)
>> 	at org.apache.cocoon.el.impl.objectmodel.ObjectModelImpl.setParent(ObjectModelImpl.java:289)
>> 	at
>> org.apache.cocoon.components.pipeline.spring.PipelineComponentScope.get(PipelineComponentScope.java:51)
> 
> This stack trace is when ObjectModel is in pipelineComponent scope. You said that after
setting it
> to "call" there is some ugly stack trace and it's exactly that stack trace I was asking.

Here it is :-)

javax.servlet.ServletException: org.apache.cocoon.ProcessingException: Failed to process pipeline
        at [TransformerException] - servlet:bfabric-core:/stylesheets/internal/document2page.xsl:33:70
        at <map:serialize type="html4"> -
file:///home/giacomo/svn/otego/b-fabric/trunk/b-fabric-webapp/target/work/blocks/b-fabric-fgcz/sitemap.xmap:279:55
        at <map:transform type="servletLinkRewriter"> -
file:///home/giacomo/svn/otego/b-fabric/trunk/b-fabric-webapp/target/work/blocks/b-fabric-fgcz/sitemap.xmap:264:61
        at <map:transform type="encodeURL"> -
file:///home/giacomo/svn/otego/b-fabric/trunk/b-fabric-webapp/target/work/blocks/b-fabric-fgcz/sitemap.xmap:149:47
        at <map:transform type="servletLinkRewriter"> -
file:///home/giacomo/svn/otego/b-fabric/trunk/b-fabric-webapp/target/work/blocks/b-fabric-fgcz/sitemap.xmap:148:57
        at <map:transform> -
file:///home/giacomo/svn/otego/b-fabric/trunk/b-fabric-webapp/target/work/blocks/b-fabric-fgcz/sitemap.xmap:138:68
        at <map:transform type="i18n"> -
file:///home/giacomo/svn/otego/b-fabric/trunk/b-fabric-webapp/target/work/blocks/b-fabric-fgcz/sitemap.xmap:133:40
        at <map:transform type="browser-update"> -
file:///home/giacomo/svn/otego/b-fabric/trunk/b-fabric-webapp/target/work/blocks/b-fabric-fgcz/sitemap.xmap:132:52
        at <map:transform type="jx"> -
file:///home/giacomo/svn/otego/b-fabric/trunk/b-fabric-webapp/target/work/blocks/b-fabric-fgcz/sitemap.xmap:131:40
        at <map:transform type="cinclude"> -
file:///home/giacomo/svn/otego/b-fabric/trunk/b-fabric-webapp/target/work/blocks/b-fabric-fgcz/sitemap.xmap:130:46
        at <map:transform> -
file:///home/giacomo/svn/otego/b-fabric/trunk/b-fabric-webapp/target/work/blocks/b-fabric-fgcz/sitemap.xmap:127:105
        at <map:transform type="browser-update"> -
file:///home/giacomo/svn/otego/b-fabric/trunk/b-fabric-webapp/target/work/blocks/b-fabric-fgcz/sitemap.xmap:262:56
        at <map:transform type="jx"> -
file:///home/giacomo/svn/otego/b-fabric/trunk/b-fabric-webapp/target/work/blocks/b-fabric-fgcz/sitemap.xmap:261:44
        at <map:generate> -
file:///home/giacomo/svn/otego/b-fabric/trunk/b-fabric-webapp/target/work/blocks/b-fabric-fgcz/sitemap.xmap:255:71
        at <map:match> -
file:///home/giacomo/svn/otego/b-fabric/trunk/b-fabric-webapp/target/work/blocks/b-fabric-fgcz/sitemap.xmap:252:44
        at welcome -
file:///home/giacomo/svn/otego/b-fabric/trunk/b-fabric-webapp/target/work/blocks/b-fabric-fgcz/flow/view.js:251
        at <map:call> -
file:///home/giacomo/svn/otego/b-fabric/trunk/b-fabric-webapp/target/work/blocks/b-fabric-fgcz/sitemap.xmap:636:50
        at <map:match> -
file:///home/giacomo/svn/otego/b-fabric/trunk/b-fabric-webapp/target/work/blocks/b-fabric-fgcz/sitemap.xmap:635:34
        at <map:act type="cauth-is-logged-in"> -
file:///home/giacomo/svn/otego/b-fabric/trunk/b-fabric-webapp/target/work/blocks/b-fabric-fgcz/sitemap.xmap:563:48
        at org.apache.cocoon.servlet.RequestProcessor.service(RequestProcessor.java:232)
        at org.apache.cocoon.sitemap.SitemapServlet.service(SitemapServlet.java:62)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at
org.apache.cocoon.servletservice.ServletServiceContext$PathDispatcher.forward(ServletServiceContext.java:567)
        at
org.apache.cocoon.servletservice.ServletServiceContext$PathDispatcher.forward(ServletServiceContext.java:544)
        at
org.apache.cocoon.servletservice.spring.ServletFactoryBean$ServiceInterceptor.invoke(ServletFactoryBean.java:230)
        at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
        at $Proxy3.service(Unknown Source)
        at org.apache.cocoon.servletservice.DispatcherServlet.service(DispatcherServlet.java:102)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1098)
        at org.apache.cocoon.servlet.multipart.MultipartFilter.doFilter(MultipartFilter.java:119)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
        at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
        at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
        at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
        at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
        at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
        at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
        at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
        at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
        at org.mortbay.jetty.Server.handle(Server.java:285)
        at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
        at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:821)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)
        at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:368)
        at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
Caused by: org.apache.cocoon.ProcessingException: Failed to process pipeline
        at [TransformerException] - servlet:bfabric-core:/stylesheets/internal/document2page.xsl:33:70
        at <map:serialize type="html4"> -
file:///home/giacomo/svn/otego/b-fabric/trunk/b-fabric-webapp/target/work/blocks/b-fabric-fgcz/sitemap.xmap:279:55
        at <map:transform type="servletLinkRewriter"> -
file:///home/giacomo/svn/otego/b-fabric/trunk/b-fabric-webapp/target/work/blocks/b-fabric-fgcz/sitemap.xmap:264:61
        at <map:transform type="encodeURL"> -
file:///home/giacomo/svn/otego/b-fabric/trunk/b-fabric-webapp/target/work/blocks/b-fabric-fgcz/sitemap.xmap:149:47
        at <map:transform type="servletLinkRewriter"> -
file:///home/giacomo/svn/otego/b-fabric/trunk/b-fabric-webapp/target/work/blocks/b-fabric-fgcz/sitemap.xmap:148:57
        at <map:transform> -
file:///home/giacomo/svn/otego/b-fabric/trunk/b-fabric-webapp/target/work/blocks/b-fabric-fgcz/sitemap.xmap:138:68
        at <map:transform type="i18n"> -
file:///home/giacomo/svn/otego/b-fabric/trunk/b-fabric-webapp/target/work/blocks/b-fabric-fgcz/sitemap.xmap:133:40
        at <map:transform type="browser-update"> -
file:///home/giacomo/svn/otego/b-fabric/trunk/b-fabric-webapp/target/work/blocks/b-fabric-fgcz/sitemap.xmap:132:52
        at <map:transform type="jx"> -
file:///home/giacomo/svn/otego/b-fabric/trunk/b-fabric-webapp/target/work/blocks/b-fabric-fgcz/sitemap.xmap:131:40
        at <map:transform type="cinclude"> -
file:///home/giacomo/svn/otego/b-fabric/trunk/b-fabric-webapp/target/work/blocks/b-fabric-fgcz/sitemap.xmap:130:46
        at <map:transform> -
file:///home/giacomo/svn/otego/b-fabric/trunk/b-fabric-webapp/target/work/blocks/b-fabric-fgcz/sitemap.xmap:127:105
        at <map:transform type="browser-update"> -
file:///home/giacomo/svn/otego/b-fabric/trunk/b-fabric-webapp/target/work/blocks/b-fabric-fgcz/sitemap.xmap:262:56
        at <map:transform type="jx"> -
file:///home/giacomo/svn/otego/b-fabric/trunk/b-fabric-webapp/target/work/blocks/b-fabric-fgcz/sitemap.xmap:261:44
        at <map:generate> -
file:///home/giacomo/svn/otego/b-fabric/trunk/b-fabric-webapp/target/work/blocks/b-fabric-fgcz/sitemap.xmap:255:71
        at <map:match> -
file:///home/giacomo/svn/otego/b-fabric/trunk/b-fabric-webapp/target/work/blocks/b-fabric-fgcz/sitemap.xmap:252:44
        at welcome -
file:///home/giacomo/svn/otego/b-fabric/trunk/b-fabric-webapp/target/work/blocks/b-fabric-fgcz/flow/view.js:251
        at <map:call> -
file:///home/giacomo/svn/otego/b-fabric/trunk/b-fabric-webapp/target/work/blocks/b-fabric-fgcz/sitemap.xmap:636:50
        at <map:match> -
file:///home/giacomo/svn/otego/b-fabric/trunk/b-fabric-webapp/target/work/blocks/b-fabric-fgcz/sitemap.xmap:635:34
        at <map:act type="cauth-is-logged-in"> -
file:///home/giacomo/svn/otego/b-fabric/trunk/b-fabric-webapp/target/work/blocks/b-fabric-fgcz/sitemap.xmap:563:48
        at org.apache.cocoon.ProcessingException.throwLocated(ProcessingException.java:143)
        at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.handleException(AbstractProcessingPipeline.java:921)
        at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:546)
        at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:437)
        at sun.reflect.GeneratedMethodAccessor39.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:72)
        at $Proxy9.process(Unknown Source)
        at
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:144)
        at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:77)
        at
org.apache.cocoon.components.treeprocessor.sitemap.SwitchSelectNode.invoke(SwitchSelectNode.java:88)
        at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:55)
        at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:87)
        at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:77)
        at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:151)
        at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:77)
        at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
        at
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:240)
        at
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.handleCocoonRedirect(ConcreteTreeProcessor.java:315)
        at
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor$TreeProcessorRedirector.cocoonRedirect(ConcreteTreeProcessor.java:365)
        at org.apache.cocoon.environment.ForwardRedirector.redirect(ForwardRedirector.java:64)
        at
org.apache.cocoon.components.flow.AbstractInterpreter.forwardTo(AbstractInterpreter.java:201)
        at
org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.forwardTo(FOM_JavaScriptInterpreter.java:706)
        at org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon.forwardTo(FOM_Cocoon.java:718)
        at
org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon.jsFunction_sendPage(FOM_Cocoon.java:264)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:145)
        at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:471)
        at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3085)
        at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2251)
        at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:161)
        at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:340)
        at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2758)
        at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:159)
        at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:915)
        at
org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.callFunction(FOM_JavaScriptInterpreter.java:601)
        at
org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke(CallFunctionNode.java:109)
        at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:55)
        at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:87)
        at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:55)
        at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:123)
        at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:77)
        at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:151)
        at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:77)
        at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
        at
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:240)
        at
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:171)
        at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:251)
        at org.apache.cocoon.servlet.RequestProcessor.process(RequestProcessor.java:357)
        at org.apache.cocoon.servlet.RequestProcessor.service(RequestProcessor.java:171)
        ... 30 more
Caused by: java.lang.reflect.UndeclaredThrowableException
        at $Proxy18.generate(Unknown Source)
        at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:542)
        ... 81 more
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.cocoon.components.pipeline.spring.PipelineComponentProxyDecorator$ScopeChangerProxy.invoke(PipelineComponentProxyDecorator.java:86)
        ... 83 more
Caused by: java.lang.reflect.UndeclaredThrowableException
        at $Proxy24.endDocument(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.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:264)
        at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:144)
        ... 88 more
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.cocoon.components.pipeline.spring.PipelineComponentProxyDecorator$ScopeChangerProxy.invoke(PipelineComponentProxyDecorator.java:86)
        ... 105 more
Caused by: java.lang.reflect.UndeclaredThrowableException
        at $Proxy29.endDocument(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:72)
        at $Proxy23.endDocument(Unknown Source)
        ... 110 more
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.cocoon.components.pipeline.spring.PipelineComponentProxyDecorator$ScopeChangerProxy.invoke(PipelineComponentProxyDecorator.java:86)
        ... 117 more
Caused by: java.lang.reflect.UndeclaredThrowableException
        at $Proxy26.endDocument(Unknown Source)
        at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:55)
        at
org.apache.cocoon.template.xml.AttributeAwareXMLConsumerImpl.endDocument(AttributeAwareXMLConsumerImpl.java:58)
        at org.apache.cocoon.template.script.event.EndDocument.execute(EndDocument.java:39)
        at org.apache.cocoon.template.script.Invoker.execute(Invoker.java:74)
        at
org.apache.cocoon.template.JXTemplateGenerator.performGeneration(JXTemplateGenerator.java:152)
        at
org.apache.cocoon.template.TransformerAdapter$TemplateConsumer.endDocument(TransformerAdapter.java:82)
        at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:55)
        ... 121 more
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.cocoon.components.pipeline.spring.PipelineComponentProxyDecorator$ScopeChangerProxy.invoke(PipelineComponentProxyDecorator.java:86)
        ... 129 more
Caused by: java.lang.reflect.UndeclaredThrowableException
        at $Proxy30.endDocument(Unknown Source)
        at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:72)
        at $Proxy25.endDocument(Unknown Source)
        ... 133 more
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.cocoon.components.pipeline.spring.PipelineComponentProxyDecorator$ScopeChangerProxy.invoke(PipelineComponentProxyDecorator.java:86)
        ... 139 more
Caused by: java.lang.reflect.UndeclaredThrowableException
        at $Proxy14.endDocument(Unknown Source)
        at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:55)
        at
org.apache.cocoon.ajax.BrowserUpdateTransformer.endDocument(BrowserUpdateTransformer.java:180)
        ... 143 more
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.cocoon.components.pipeline.spring.PipelineComponentProxyDecorator$ScopeChangerProxy.invoke(PipelineComponentProxyDecorator.java:86)
        ... 146 more
Caused by: java.lang.reflect.UndeclaredThrowableException
        at $Proxy20.endDocument(Unknown Source)
        at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:72)
        at $Proxy13.endDocument(Unknown Source)
        ... 150 more
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.cocoon.components.pipeline.spring.PipelineComponentProxyDecorator$ScopeChangerProxy.invoke(PipelineComponentProxyDecorator.java:86)
        ... 156 more
Caused by: org.apache.commons.lang.exception.NestableRuntimeException:
javax.xml.transform.TransformerException: java.lang.reflect.UndeclaredThrowableException
        at org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:578)
        ... 160 more
Caused by: javax.xml.transform.TransformerException: java.lang.reflect.UndeclaredThrowableException
        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2416)
        at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374)
        at
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:393)
        at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:176)
        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
        at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2281)
        at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1367)
        at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3458)
        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:560)
        ... 160 more
Caused by: java.lang.reflect.UndeclaredThrowableException
        at $Proxy14.startElement(Unknown Source)
        at org.apache.xml.serializer.ToXMLSAXHandler.closeStartTag(ToXMLSAXHandler.java:204)
        at org.apache.xml.serializer.ToSAXHandler.flushPending(ToSAXHandler.java:277)
        at org.apache.xml.serializer.ToXMLSAXHandler.endElement(ToXMLSAXHandler.java:243)
        at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1399)
        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
        ... 170 more
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.cocoon.components.pipeline.spring.PipelineComponentProxyDecorator$ScopeChangerProxy.invoke(PipelineComponentProxyDecorator.java:86)
        ... 176 more
Caused by: java.lang.reflect.UndeclaredThrowableException
        at $Proxy31.startElement(Unknown Source)
        at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:72)
        at $Proxy13.startElement(Unknown Source)
        ... 180 more
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.cocoon.components.pipeline.spring.PipelineComponentProxyDecorator$ScopeChangerProxy.invoke(PipelineComponentProxyDecorator.java:86)
        ... 186 more
Caused by: org.apache.cocoon.ProcessingException: Failed to process pipeline
        at [SAXParseException] - servlet:bfabric-core:/document/user-status:140:53
        at <map:serialize type="xml-utf8"> -
file:///home/giacomo/svn/otego/b-fabric/trunk/b-fabric-webapp/target/work/blocks/b-fabric-fgcz/sitemap.xmap:301:50
        at <map:generate type="jx"> -
file:///home/giacomo/svn/otego/b-fabric/trunk/b-fabric-webapp/target/work/blocks/b-fabric-fgcz/sitemap.xmap:298:92
        at
org.apache.cocoon.transformation.CIncludeTransformer.processCIncludeElement(CIncludeTransformer.java:559)
        at
org.apache.cocoon.transformation.CIncludeTransformer.startTransformingElement(CIncludeTransformer.java:258)
        at
org.apache.cocoon.transformation.AbstractSAXTransformer.startElement(AbstractSAXTransformer.java:460)
        ... 190 more
Caused by: org.apache.cocoon.ProcessingException: Failed to process pipeline
        at [SAXParseException] - servlet:bfabric-core:/document/user-status:140:53
        at <map:serialize type="xml-utf8"> -
file:///home/giacomo/svn/otego/b-fabric/trunk/b-fabric-webapp/target/work/blocks/b-fabric-fgcz/sitemap.xmap:301:50
        at <map:generate type="jx"> -
file:///home/giacomo/svn/otego/b-fabric/trunk/b-fabric-webapp/target/work/blocks/b-fabric-fgcz/sitemap.xmap:298:92
        at org.apache.cocoon.ProcessingException.throwLocated(ProcessingException.java:143)
        at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.handleException(AbstractProcessingPipeline.java:921)
        at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:546)
        at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:748)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:72)
        at $Proxy9.process(Unknown Source)
        at org.apache.cocoon.components.source.impl.SitemapSource.toSAX(SitemapSource.java:345)
        at org.apache.cocoon.components.source.util.SourceUtil.toSAX(SourceUtil.java:111)
        at org.apache.cocoon.components.source.util.SourceUtil.toSAX(SourceUtil.java:170)
        at org.apache.cocoon.components.source.SourceUtil.toSAX(SourceUtil.java:82)
        at
org.apache.cocoon.transformation.CIncludeTransformer.processCIncludeElement(CIncludeTransformer.java:550)
        ... 192 more
Caused by: java.lang.reflect.UndeclaredThrowableException
        at $Proxy34.generate(Unknown Source)
        at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:542)
        ... 204 more
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.cocoon.components.pipeline.spring.PipelineComponentProxyDecorator$ScopeChangerProxy.invoke(PipelineComponentProxyDecorator.java:86)
        ... 206 more
Caused by: java.lang.reflect.UndeclaredThrowableException
        at $Proxy18.generate(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:72)
        at $Proxy33.generate(Unknown Source)
        ... 211 more
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.cocoon.components.pipeline.spring.PipelineComponentProxyDecorator$ScopeChangerProxy.invoke(PipelineComponentProxyDecorator.java:86)
        ... 218 more
Caused by: org.apache.cocoon.el.ExpressionException: Couldn't evaluate expression status.myTasks.size()
        at org.apache.cocoon.template.script.event.Characters.execute(Characters.java:61)
        at org.apache.cocoon.template.script.Invoker.execute(Invoker.java:74)
        at
org.apache.cocoon.template.JXTemplateGenerator.performGeneration(JXTemplateGenerator.java:152)
        at org.apache.cocoon.template.JXTemplateGenerator.generate(JXTemplateGenerator.java:138)
        ... 223 more
Caused by: org.apache.cocoon.el.ExpressionException: Couldn't evaluate expression status.myTasks.size()
        at org.apache.cocoon.el.impl.jexl.JexlExpression.evaluate(JexlExpression.java:50)
        at org.apache.cocoon.el.impl.jexl.JexlExpression.getNode(JexlExpression.java:82)
        at org.apache.cocoon.template.expression.JXTExpression.getNode(JXTExpression.java:72)
        at org.apache.cocoon.template.script.event.Characters.execute(Characters.java:58)
        ... 226 more
Caused by: java.lang.NullPointerException
        at org.apache.commons.jexl.parser.ASTSizeFunction.sizeOf(ASTSizeFunction.java:77)
        at org.apache.commons.jexl.parser.ASTSizeMethod.execute(ASTSizeMethod.java:51)
        at org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:68)
        at org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:50)
        at org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:86)
        at org.apache.cocoon.el.impl.jexl.JexlExpression.evaluate(JexlExpression.java:48)
        ... 229 more



> 
> It would be helpful if you could paste relevant sitemap snippets, also.

There is a

        <map:resource name="aggregate-html">
            <map:select type="resource-exists">
                <map:when test="stylesheets/document2page.xsl">
                    <map:transform src="stylesheets/document2page.xsl" />
                </map:when>
                <map:otherwise>
                    <map:transform
src="servlet:bfabric-core:/stylesheets/internal/document2page.xsl" />
                </map:otherwise>
            </map:select>
            <map:transform type="cinclude" />
            <map:transform type="jx" />
            <map:transform type="browser-update" />
            <map:transform type="i18n">
                <map:parameter name="locale" value="{bfabric-locale:locale}" />
            </map:transform>
            <map:select type="resource-exists">
                <map:when test="stylesheets/page2html.xsl">
                    <map:transform src="stylesheets/page2html.xsl">
                        <map:parameter name="locale" value="{bfabric-locale:locale}" />
                    </map:transform>
                </map:when>
                <map:otherwise>
                    <map:transform src="servlet:bfabric-core:/stylesheets/external/page2html.xsl">
                        <map:parameter name="locale" value="{bfabric-locale:locale}" />
                    </map:transform>
                </map:otherwise>
            </map:select>
            <map:transform type="servletLinkRewriter" />
            <map:transform type="encodeURL" />
        </map:resource>


called by


            <map:match pattern="screen/**">
                <map:select type="resource-exists">
                    <map:when test="{1}.xml">
                        <map:generate src="{1}.xml" label="content" />
                    </map:when>
                    <map:otherwise>
                        <map:generate src="servlet:bfabric-core:/screen/{1}" />
                    </map:otherwise>
                </map:select>
                <map:transform type="jx" />
                <map:transform type="browser-update" />
                <map:call resource="aggregate-html" />
                <map:transform type="servletLinkRewriter" />
                <map:select type="ajax-request">
                    <map:when test="true"><!-- sending a partial Browser Update -->
                        <map:select type="request-parameter">
                            <map:parameter name="parameter-name" value="dojo.transport"
/>
                            <map:when test="iframe"><!-- sending BU via iFrameIO
-->
                                <map:transform
src="servlet:forms:/resource/internal/xsl/IframeTransport-bu-styling.xsl" />
                                <map:serialize type="xhtml" /><!-- this is REALLY
important -->
                            </map:when>
                            <map:otherwise><!-- sending BU via XHR -->
                                <map:serialize type="xml-utf8" />
                            </map:otherwise>
                        </map:select>
                    </map:when>
                    <map:otherwise><!-- sending a complete page -->
                        <map:serialize type="html4" />
                    </map:otherwise>
                </map:select>


> 
>> Maybe you can give a hint after this ;-)
> 
> Not that much, unfortunately because it only shows that something is broken in pipelineComponent
> scope code so no news here. I suggest to do three things:
> 1. Make sure that Object Model is in "call" scope and not in "pipelineComponent" one.
> 2. If there is still a problem, paste whole stack trace, then.

See above.

> 
> Remember that when you change scope back to "call" there is no way that the same error
will appear
> as there will bo no setParent call.
> 
> Last thing, Giacomo, if you could respond to my mails more often we could find a solution
for your
> troubles more quickly. ;)
> (take into account that I have exam tomorrow so I will respond on late afternoon, though)

I'll do my best ;-)

- --
Giacomo Pati
Otego AG, Switzerland - http://www.otego.com
Orixo, the XML business alliance - http://www.orixo.com

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.6 (GNU/Linux)

iD8DBQFG6A7pLNdJvZjjVZARAuFeAKC99Mp3ZjKB5i8RrDv1DlhecQgyZgCfXvf4
MXTFlwkDXdsZica7bGK7HF4=
=rMyh
-----END PGP SIGNATURE-----

Mime
View raw message