hi, I posted this message a few weeks ago, but never got a response
from anyone. We are still seeing the issue from the latest in CVS. =20
Ithough I would post it again to see if anyone has any
ideas/suggestions?
thanks!
dan
I am trying to use the cocoon generator and the query works fine on the
first try, but I always get a NullPointerException on the second.
1. Here is the sitemap call I have. I added the create-session after
looking at the examples that come with eXist.
<map:generate type=3D"xquerygenerator" label=3D"debug1"
src=3D"module:flow-attr:xqueryStr">
<map:parameter name=3D"create-session" value=3D"true"/>
</map:generate>
2. Here is my generator definition.
<map:generator label=3D"content" logger=3D"sitemap.generator.xquery"
name=3D"xquerygenerator" src=3D"org.exist.cocoon.XQueryGenerator"/>
3. Here is my flowscript call.
cocoon.sendPage("myPage/", {"xqueryStr": javaObj.xQueryString});
4. I did not get the exception when I edited
LocalXPathQueryService.java on line 161:
CompiledXQuery compiled =3D pool.borrowCompiledXQuery(broker, source);
replacing it with the line:
CompiledXQuery compiled =3Dnull;
but then eXist will never get the compiled xQuery. I'm not sure what
to do other than that.
5. Here is the stack trace, and to reiterate, this works fine the
first time and I only get an exception after the first call.
java.lang.NullPointerException
at org.exist.source.CocoonSource.isValid(CocoonSource.java:70)
at org.exist.storage.XQueryPool.borrowCompiledXQuery(XQueryPool.jav=
a:119)
at org.exist.xmldb.LocalXPathQueryService.execute(LocalXPathQuerySe=
rvice.java:161)
at org.exist.cocoon.XQueryGenerator.generate(XQueryGenerator.java:2=
64)
at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline=
.processXMLPipeline(AbstractProcessingPipeline.java:575)
6. Has anyone seen this before? Could there be a more generic cocoon
configuration I need to setup in order for this to work?
thanks, dan
|