Loading ...
Sorry, an error occurred while loading the content.

javax.xml.transform.TransformerException with FOP

Expand Messages
  • jmboureausqli
    Context : VAJ / FOP I try to embed PDF generation with FOP in a class called from a J2EE Web application My XML and XSL files are fine. Compiling well in
    Message 1 of 1 , Feb 22, 2002
    • 0 Attachment
      Context : VAJ / FOP

      I try to embed PDF generation with FOP in a class called from a J2EE
      Web
      application

      My XML and XSL files are fine. Compiling well in command line

      But when i try to call the rendering in my class i obtain this
      Error ! Help
      me please ?!

      using SAX parser org.apache.xerces.parsers.SAXParser
      building formatting object tree
      setting up fonts
      [1No flow found for region-body in page-master 'page'

      Parsing of document complete, stopping renderer
      Initial heap size: 95545Kb
      Current heap size: 95746Kb
      Total memory used: 200Kb
      Memory use is indicative; no GC was performed
      These figures should not be used comparatively
      Total time used: 710ms
      Pages rendererd: 0
      javax.xml.transform.TransformerException
      java.lang.Throwable(java.lang.String)
      java.lang.Exception(java.lang.String)
      javax.xml.transform.TransformerException(java.lang.String,
      java.lang.Throwable)
      void org.apache.xalan.transformer.TransformerImpl.transformNode
      (org.w3c.dom.Node)
      void org.apache.xalan.transformer.TransformerImpl.run()
      void java.lang.Thread.run()

      ---------
      java.lang.ClassCastException
      java.lang.Throwable()
      java.lang.Exception()
      java.lang.RuntimeException()
      java.lang.ClassCastException()
      org.w3c.dom.traversal.NodeIterator
      org.apache.xpath.objects.XNodeSet.nodeset()
      org.w3c.dom.traversal.NodeIterator
      org.apache.xpath.objects.XNodeSet.nodeset()
      void
      org.apache.xalan.templates.ElemForEach.transformSelectedNodes
      (org.apache.xalan.transformer.TransformerImpl, org.w3c.dom.Node,
      org.apache.xalan.templates.ElemTemplateElement,
      org.apache.xml.utils.QName)
      void org.apache.xalan.templates.ElemApplyTemplates.execute
      (org.apache.xalan.transformer.TransformerImpl, org.w3c.dom.Node,
      org.apache.xml.utils.QName)
      void
      org.apache.xalan.transformer.TransformerImpl.executeChildTemplates
      (org.apache.xalan.templates.ElemTemplateElement, org.w3c.dom.Node,
      org.apache.xml.utils.QName, boolean)
      void
      org.apache.xalan.transformer.TransformerImpl.executeChildTemplates
      (org.apache.xalan.templates.ElemTemplateElement, org.w3c.dom.Node,
      org.apache.xml.utils.QName)
      void org.apache.xalan.templates.ElemLiteralResult.execute
      (org.apache.xalan.transformer.TransformerImpl, org.w3c.dom.Node,
      org.apache.xml.utils.QName)
      void
      org.apache.xalan.transformer.TransformerImpl.executeChildTemplates
      (org.apache.xalan.templates.ElemTemplateElement, org.w3c.dom.Node,
      org.apache.xml.utils.QName, boolean)
      void
      org.apache.xalan.transformer.TransformerImpl.executeChildTemplates
      (org.apache.xalan.templates.ElemTemplateElement, org.w3c.dom.Node,
      org.apache.xml.utils.QName)
      void org.apache.xalan.templates.ElemLiteralResult.execute
      (org.apache.xalan.transformer.TransformerImpl, org.w3c.dom.Node,
      org.apache.xml.utils.QName)
      void
      org.apache.xalan.transformer.TransformerImpl.executeChildTemplates
      (org.apache.xalan.templates.ElemTemplateElement, org.w3c.dom.Node,
      org.apache.xml.utils.QName, boolean)
      void
      org.apache.xalan.transformer.TransformerImpl.executeChildTemplates
      (org.apache.xalan.templates.ElemTemplateElement, org.w3c.dom.Node,
      org.apache.xml.utils.QName)
      void org.apache.xalan.templates.ElemLiteralResult.execute
      (org.apache.xalan.transformer.TransformerImpl, org.w3c.dom.Node,
      org.apache.xml.utils.QName)
      void
      org.apache.xalan.transformer.TransformerImpl.executeChildTemplates
      (org.apache.xalan.templates.ElemTemplateElement, org.w3c.dom.Node,
      org.apache.xml.utils.QName, boolean)
      void
      org.apache.xalan.transformer.TransformerImpl.executeChildTemplates
      (org.apache.xalan.templates.ElemTemplateElement, org.w3c.dom.Node,
      org.apache.xml.utils.QName)
      void org.apache.xalan.templates.ElemLiteralResult.execute
      (org.apache.xalan.transformer.TransformerImpl, org.w3c.dom.Node,
      org.apache.xml.utils.QName)
      void
      org.apache.xalan.transformer.TransformerImpl.executeChildTemplates
      (org.apache.xalan.templates.ElemTemplateElement, org.w3c.dom.Node,
      org.apache.xml.utils.QName, boolean)
      void
      org.apache.xalan.transformer.TransformerImpl.executeChildTemplates
      (org.apache.xalan.templates.ElemTemplateElement, org.w3c.dom.Node,
      org.apache.xml.utils.QName)
      boolean
      org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode
      (org.apache.xalan.templates.ElemTemplateElement,
      org.apache.xalan.templates.ElemTemplateElement, org.w3c.dom.Node,
      org.apache.xml.utils.QName)
      void org.apache.xalan.transformer.TransformerImpl.transformNode
      (org.w3c.dom.Node)
      void org.apache.xalan.transformer.TransformerImpl.run()
      void java.lang.Thread.run()

      org.apache.fop.apps.FOPException
      java.lang.Throwable(java.lang.String)
      java.lang.Exception(java.lang.String)
      org.apache.fop.apps.FOPException(java.lang.Throwable)
      void org.apache.fop.apps.Driver.render(org.xml.sax.XMLReader,
      org.xml.sax.InputSource)
      void bmpf.reporting.fop.FoProcessor.run()
      java.lang.String
      dcfarc.controller.DcfarcManager.performDcfarcListUpdateable
      (javax.servlet.http.HttpServletRequest,
      javax.servlet.http.HttpServletResponse, javax.servlet.ServletContext)
      java.lang.Object java.lang.reflect.Method.invoke
      (java.lang.Object, java.lang.Object [])
      java.lang.String bmpf.controller.AbstractManager.performTask
      (javax.servlet.http.HttpServletRequest,
      javax.servlet.http.HttpServletResponse,
      javax.servlet.ServletContext)
      void bmpf.controller.AccessServlet.dispatchTask
      (javax.servlet.http.HttpServletRequest,
      javax.servlet.http.HttpServletResponse)
      void bmpf.controller.BaseServlet.doPost
      (javax.servlet.http.HttpServletRequest,
      javax.servlet.http.HttpServletResponse)
      void javax.servlet.http.HttpServlet.service
      (javax.servlet.http.HttpServletRequest,
      javax.servlet.http.HttpServletResponse)
      void javax.servlet.http.HttpServlet.service
      (javax.servlet.ServletRequest, javax.servlet.ServletResponse)
      void
      com.ibm.servlet.engine.webapp.StrictServletInstance.doService
      (javax.servlet.ServletRequest, javax.servlet.ServletResponse)
      void
      com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service
      (javax.servlet.ServletRequest, javax.servlet.ServletResponse)
      void com.ibm.servlet.engine.webapp.IdleServletState.service
      (com.ibm.servlet.engine.webapp.StrictLifecycleServlet,
      javax.servlet.ServletRequest,
      javax.servlet.ServletResponse)
      void com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service
      (javax.servlet.ServletRequest, javax.servlet.ServletResponse)
      void com.ibm.servlet.engine.webapp.ServletInstance.service
      (javax.servlet.ServletRequest, javax.servlet.ServletResponse,
      com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent)
      void
      com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch
      (com.ibm.servlet.engine.webapp.ServletInstanceReference,
      javax.servlet.ServletRequest, javax.servlet.ServletResponse,
      com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent)
      void
      com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch
      (javax.servlet.ServletRequest, javax.servlet.ServletResponse,
      com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent)
      void
      com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDisp
      atch(com.ibm.servlet.engine.webapp.WebAppRequest,
      com.ibm.servlet.engine.webapp.WebAppResponse, boolean)
      void
      com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch
      (javax.servlet.ServletRequest, javax.servlet.ServletResponse, boolean)
      void
      com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward
      (javax.servlet.ServletRequest, javax.servlet.ServletResponse)
      void
      com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook
      (java.lang.Object)
      void
      com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation
      (java.lang.Object)
      void
      com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke
      (java.lang.Object)
      void
      com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI
      (java.lang.String, com.ibm.servlet.engine.srp.ISRPConnection)
      void
      com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service
      (com.ibm.servlet.engine.oselistener.api.IOSEConnection)
      void
      com.ibm.servlet.engine.http_transport.HttpTransportHandler.handleConne
      ction(java.net.Socket)
      void
      com.ibm.servlet.engine.http_transport.HttpTransportHandler.run()
      void java.lang.Thread.run()


      ---------

      javax.xml.transform.TransformerException
      java.lang.Throwable()
      java.lang.Exception()
      org.xml.sax.SAXException(java.lang.Exception)
      void org.apache.xalan.transformer.TrAXFilter.parse
      (org.xml.sax.InputSource)
      void org.apache.fop.apps.Driver.render(org.xml.sax.XMLReader,
      org.xml.sax.InputSource)
      void bmpf.reporting.fop.FoProcessor.run()
      java.lang.String
      dcfarc.controller.DcfarcManager.performDcfarcListUpdateable
      (javax.servlet.http.HttpServletRequest,
      javax.servlet.http.HttpServletResponse, javax.servlet.ServletContext)
      java.lang.Object java.lang.reflect.Method.invoke
      (java.lang.Object, java.lang.Object [])
      java.lang.String bmpf.controller.AbstractManager.performTask
      (javax.servlet.http.HttpServletRequest,
      javax.servlet.http.HttpServletResponse,
      javax.servlet.ServletContext)
      void bmpf.controller.AccessServlet.dispatchTask
      (javax.servlet.http.HttpServletRequest,
      javax.servlet.http.HttpServletResponse)
      void bmpf.controller.BaseServlet.doPost
      (javax.servlet.http.HttpServletRequest,
      javax.servlet.http.HttpServletResponse)
      void javax.servlet.http.HttpServlet.service
      (javax.servlet.http.HttpServletRequest,
      javax.servlet.http.HttpServletResponse)
      void javax.servlet.http.HttpServlet.service
      (javax.servlet.ServletRequest, javax.servlet.ServletResponse)
      void
      com.ibm.servlet.engine.webapp.StrictServletInstance.doService
      (javax.servlet.ServletRequest, javax.servlet.ServletResponse)
      void
      com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service
      (javax.servlet.ServletRequest, javax.servlet.ServletResponse)
      void com.ibm.servlet.engine.webapp.IdleServletState.service
      (com.ibm.servlet.engine.webapp.StrictLifecycleServlet,
      javax.servlet.ServletRequest,
      javax.servlet.ServletResponse)
      void com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service
      (javax.servlet.ServletRequest, javax.servlet.ServletResponse)
      void com.ibm.servlet.engine.webapp.ServletInstance.service
      (javax.servlet.ServletRequest, javax.servlet.ServletResponse,
      com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent)
      void
      com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch
      (com.ibm.servlet.engine.webapp.ServletInstanceReference,
      javax.servlet.ServletRequest, javax.servlet.ServletResponse,
      com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent)
      void
      com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch
      (javax.servlet.ServletRequest, javax.servlet.ServletResponse,
      com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent)
      void
      com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDisp
      atch(com.ibm.servlet.engine.webapp.WebAppRequest,
      com.ibm.servlet.engine.webapp.WebAppResponse, boolean)
      void
      com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch
      (javax.servlet.ServletRequest, javax.servlet.ServletResponse, boolean)
      void
      com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward
      (javax.servlet.ServletRequest, javax.servlet.ServletResponse)
      void
      com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook
      (java.lang.Object)
      void
      com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation
      (java.lang.Object)
      void
      com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke
      (java.lang.Object)
      void
      com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI
      (java.lang.String, com.ibm.servlet.engine.srp.ISRPConnection)
      void
      com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service
      (com.ibm.servlet.engine.oselistener.api.IOSEConnection)
      void
      com.ibm.servlet.engine.http_transport.HttpTransportHandler.handleConne
      ction(java.net.Socket)
      void
      com.ibm.servlet.engine.http_transport.HttpTransportHandler.run()
      void java.lang.Thread.run()


      ---------

      javax.xml.transform.TransformerException
      java.lang.Throwable(java.lang.String)
      java.lang.Exception(java.lang.String)
      javax.xml.transform.TransformerException(java.lang.String,
      java.lang.Throwable)
      void org.apache.xalan.transformer.TransformerImpl.transformNode
      (org.w3c.dom.Node)
      void org.apache.xalan.transformer.TransformerImpl.run()
      void java.lang.Thread.run()

      ---------
      java.lang.ClassCastException
      java.lang.Throwable()
      java.lang.Exception()
      java.lang.RuntimeException()
      java.lang.ClassCastException()
      org.w3c.dom.traversal.NodeIterator
      org.apache.xpath.objects.XNodeSet.nodeset()
      org.w3c.dom.traversal.NodeIterator
      org.apache.xpath.objects.XNodeSet.nodeset()
      void
      org.apache.xalan.templates.ElemForEach.transformSelectedNodes
      (org.apache.xalan.transformer.TransformerImpl, org.w3c.dom.Node,
      org.apache.xalan.templates.ElemTemplateElement,
      org.apache.xml.utils.QName)
      void org.apache.xalan.templates.ElemApplyTemplates.execute
      (org.apache.xalan.transformer.TransformerImpl, org.w3c.dom.Node,
      org.apache.xml.utils.QName)
      void
      org.apache.xalan.transformer.TransformerImpl.executeChildTemplates
      (org.apache.xalan.templates.ElemTemplateElement, org.w3c.dom.Node,
      org.apache.xml.utils.QName, boolean)
      void
      org.apache.xalan.transformer.TransformerImpl.executeChildTemplates
      (org.apache.xalan.templates.ElemTemplateElement, org.w3c.dom.Node,
      org.apache.xml.utils.QName)
      void org.apache.xalan.templates.ElemLiteralResult.execute
      (org.apache.xalan.transformer.TransformerImpl, org.w3c.dom.Node,
      org.apache.xml.utils.QName)
      void
      org.apache.xalan.transformer.TransformerImpl.executeChildTemplates
      (org.apache.xalan.templates.ElemTemplateElement, org.w3c.dom.Node,
      org.apache.xml.utils.QName, boolean)
      void
      org.apache.xalan.transformer.TransformerImpl.executeChildTemplates
      (org.apache.xalan.templates.ElemTemplateElement, org.w3c.dom.Node,
      org.apache.xml.utils.QName)
      void org.apache.xalan.templates.ElemLiteralResult.execute
      (org.apache.xalan.transformer.TransformerImpl, org.w3c.dom.Node,
      org.apache.xml.utils.QName)
      void
      org.apache.xalan.transformer.TransformerImpl.executeChildTemplates
      (org.apache.xalan.templates.ElemTemplateElement, org.w3c.dom.Node,
      org.apache.xml.utils.QName, boolean)
      void
      org.apache.xalan.transformer.TransformerImpl.executeChildTemplates
      (org.apache.xalan.templates.ElemTemplateElement, org.w3c.dom.Node,
      org.apache.xml.utils.QName)
      void org.apache.xalan.templates.ElemLiteralResult.execute
      (org.apache.xalan.transformer.TransformerImpl, org.w3c.dom.Node,
      org.apache.xml.utils.QName)
      void
      org.apache.xalan.transformer.TransformerImpl.executeChildTemplates
      (org.apache.xalan.templates.ElemTemplateElement, org.w3c.dom.Node,
      org.apache.xml.utils.QName, boolean)
      void
      org.apache.xalan.transformer.TransformerImpl.executeChildTemplates
      (org.apache.xalan.templates.ElemTemplateElement, org.w3c.dom.Node,
      org.apache.xml.utils.QName)
      void org.apache.xalan.templates.ElemLiteralResult.execute
      (org.apache.xalan.transformer.TransformerImpl, org.w3c.dom.Node,
      org.apache.xml.utils.QName)
      void
      org.apache.xalan.transformer.TransformerImpl.executeChildTemplates
      (org.apache.xalan.templates.ElemTemplateElement, org.w3c.dom.Node,
      org.apache.xml.utils.QName, boolean)
      void
      org.apache.xalan.transformer.TransformerImpl.executeChildTemplates
      (org.apache.xalan.templates.ElemTemplateElement, org.w3c.dom.Node,
      org.apache.xml.utils.QName)
      boolean
      org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode
      (org.apache.xalan.templates.ElemTemplateElement,
      org.apache.xalan.templates.ElemTemplateElement, org.w3c.dom.Node,
      org.apache.xml.utils.QName)
      void org.apache.xalan.transformer.TransformerImpl.transformNode
      (org.w3c.dom.Node)
      void org.apache.xalan.transformer.TransformerImpl.run()
      void java.lang.Thread.run()
    Your message has been successfully submitted and would be delivered to recipients shortly.