cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Omar Alos <oalos2...@yahoo.es>
Subject Saxon error
Date Thu, 06 Jun 2002 18:19:02 GMT

Hello. 

I have a problem I hope you will help to solve.

I work in an environment with: Windows 2000, Cocoon 2.0.2, Saxon 6.5.2, Tomcat 3.3a.

I have eliminated Xalan jar from tomcat and cocoon. I have put the three Saxon jar in web-inf/lib.


I have changed the version of:

org\apache\cocoon\components\language\markup\xsp\java\xsp.xsl

I have included in the startup of Tomcat the next line:

SET TOMCAT_OPTS = %TOMCAT_OPTS% -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl

My sitemap is that:

 <map:action  name="dame-listado" src="pa.ieci.imp.acting.RDFAction"/>
  <map:pipeline>
  <map:match pattern="imprime">
 <map:act type="dame-listado">
  <map:generate src="{plantilla}.xsp" type="serverpages"/> 

  <map:select type="parameter">
   <map:parameter name="parameter-selector-test" value="{salida}"/>
   <map:when test="pdf">
    <map:transform src="miDocbook.xsl" />
    <map:serialize type="fo2pdf"/>
   </map:when>
   <map:when test="fo">
    <map:transform src="miDocbook.xsl"/>
    <map:serialize type="xml"/>
   </map:when>
  </map:select>
 </map:act>
   </map:match>

</pipeline>

Everytime I restart the Tomcat, it work ok just for the first time. The next ones I tried
I get the next error:


Original exception : java.lang.NullPointerException
at org.apache.cocoon.components.xslt.XSLTProcessorImpl.resolve(XSLTProcessorImpl.java:428)
at com.icl.saxon.functions.Document.makeDoc(Document.java:201)
at com.icl.saxon.functions.Document.getDocuments(Document.java:134)
at com.icl.saxon.functions.Document.evaluate(Document.java:70)
at com.icl.saxon.style.XSLGeneralVariable.getSelectValue(XSLGeneralVariable.java:251)
at com.icl.saxon.style.XSLParam.process(XSLParam.java:65)
at com.icl.saxon.style.XSLStyleSheet.process(XSLStyleSheet.java:626)
at com.icl.saxon.Controller.transformDocument(Controller.java:1075)
at com.icl.saxon.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:101)
at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91)
at org.apache.cocoon.www.impresion.ContratoFacultativo_xsp.generate(C:\Omar\tomcat-3.3a\work\DEFAULT\cocoon\cocoon-files\org/apache/cocoon/www/impresion\ContratoFacultativo_xsp.java:2723)
at org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenerator.java:260)
at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:251)
at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:390)
at org.apache.cocoon.www.impresion.sitemap_xmap.matchd0e22(C:\Omar\tomcat-3.3a\work\DEFAULT\cocoon\cocoon-files\org/apache/cocoon/www/impresion\sitemap_xmap.java:552)
at org.apache.cocoon.www.impresion.sitemap_xmap.process(C:\Omar\tomcat-3.3a\work\DEFAULT\cocoon\cocoon-files\org/apache/cocoon/www/impresion\sitemap_xmap.java:392)
at org.apache.cocoon.www.impresion.sitemap_xmap.process(C:\Omar\tomcat-3.3a\work\DEFAULT\cocoon\cocoon-files\org/apache/cocoon/www/impresion\sitemap_xmap.java:336)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
at org.apache.cocoon.www.sitemap_xmap.matchd0e952(C:\Omar\tomcat-3.3a\work\DEFAULT\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:7311)
at org.apache.cocoon.www.sitemap_xmap.process(C:\Omar\tomcat-3.3a\work\DEFAULT\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:3463)
at org.apache.cocoon.www.sitemap_xmap.process(C:\Omar\tomcat-3.3a\work\DEFAULT\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:3100)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)
at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:998)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source)
at java.lang.Thread.run(Thread.java:484)
The error is in the last line of the sequent code (XSLTProcessorImpl). I believe the resolver
is null.     File parent = new File(base.substring(5));
     File parent2 = new File(parent.getParentFile(), href);
     xslSource = resolver.resolve(parent2.toURL().toExternalForm());
 Disabling the cache doesn't solve the problem. Thanks in advance.

---------------------------------
Copa del Mundo de la FIFA 2002
El único lugar de Internet con vídeos de los 64 partidos ¡Apúntante ya!.
Mime
View raw message