PDF printing - missing class

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

PDF printing - missing class

Shaw, Richard A
PDF printing - missing class

I'm using XSL:FO to do PDF printing on my web site.

When I start Tomcat the site works fine and I can print my PDF documents. However, some time later it stops working with the following error -

Provider org.apache.xalan.processor.TransformerFactoryImpl not found
What I don't understand is if it worked at the beginning why does it stop working later ? I've looked in the lib class and can't see the class that is missing, so I believe the error message, so why did it work ? I did notice that the class exists in an orbean namespace instead.

I will try to deploy the xalan jar file into the lib directory to see if that cures the issue, but I'm worried I might introduce some sort of class version clash if do this.

Any ideas ?

Partial stack trace is given below -
Provider org.apache.xalan.processor.TransformerFactoryImpl not found
Call Stack

Resource URL    Line    Column  Description     XML Element    
There is no Orbeon Forms call stack available for this error.                                  
Java Exceptions (2 total)

Java Exceptions are the native mechanism by which Orbeon Forms reports errors. More than one exception may be provided below but usually the first exception along with the Orbeon Forms Stack Trace above provide enough information to track down an issue.

Picture (Metafile)javax.xml.transform.TransformerFactoryConfigurationError               
Exception Class javax.xml.transform.TransformerFactoryConfigurationError       
Message Provider org.apache.xalan.processor.TransformerFactoryImpl not found   
Servlet Stack Trace
(251 method calls)      Class Name      Method Name     File Name       Line Number    
       
javax.xml.transform.TransformerFactory  newInstance             N/A    
        org.apache.xmlgraphics.xmp.XMPSerializer        writeXML        XMPSerializer.java      73     
        org.apache.xmlgraphics.xmp.XMPSerializer        writeXMPPacket  XMPSerializer.java      66     
        org.apache.fop.pdf.PDFMetadata  outputRawStreamData     PDFMetadata.java        94     
        org.apache.fop.pdf.AbstractPDFStream    encodeAndWriteStream    AbstractPDFStream.java  151    
        org.apache.fop.pdf.AbstractPDFStream    output  AbstractPDFStream.java  193    
        org.apache.fop.pdf.PDFStream    output  PDFStream.java  110    
        org.apache.fop.pdf.PDFMetadata  output  PDFMetadata.java        86     
        org.apache.fop.pdf.PDFDocument  output  PDFDocument.java        831    
        org.apache.fop.render.pdf.PDFRenderer   putImage        PDFRenderer.java        1475   
       
Picture (Metafile)More...                                
        org.apache.fop.render.pdf.PDFRenderer   renderImage     PDFRenderer.java        1391   
        org.apache.fop.render.AbstractRenderer  renderViewport  AbstractRenderer.java   752    
        org.apache.fop.render.AbstractPathOrientedRenderer      renderViewport  AbstractPathOrientedRenderer.java       541    
        org.apache.fop.render.AbstractRenderer  renderInlineArea        AbstractRenderer.java   635    
        org.apache.fop.render.AbstractRenderer  renderLineArea  AbstractRenderer.java   610    
        org.apache.fop.render.pdf.PDFRenderer   renderLineArea  PDFRenderer.java        1081   
        org.apache.fop.render.AbstractRenderer  renderBlocks    AbstractRenderer.java   536    
        org.apache.fop.render.AbstractRenderer  renderBlock     AbstractRenderer.java   586    
        org.apache.fop.render.AbstractRenderer  renderBlocks    AbstractRenderer.java   526    
        org.apache.fop.render.AbstractRenderer  renderBlock     AbstractRenderer.java   572    
        org.apache.fop.render.AbstractRenderer  renderBlocks    AbstractRenderer.java   526    
        org.apache.fop.render.AbstractRenderer  renderBlock     AbstractRenderer.java   586    
        org.apache.fop.render.AbstractRenderer  renderBlocks    AbstractRenderer.java   526    
        org.apache.fop.render.AbstractRenderer  renderFlow      AbstractRenderer.java   431    
        org.apache.fop.render.AbstractRenderer  renderMainReference     AbstractRenderer.java   410    
        org.apache.fop.render.AbstractRenderer  renderBodyRegion        AbstractRenderer.java   344    
        org.apache.fop.render.AbstractRenderer  renderRegionViewport    AbstractRenderer.java   289    
        org.apache.fop.render.AbstractRenderer  renderPageAreas AbstractRenderer.java   262    
        org.apache.fop.render.AbstractRenderer  renderPage      AbstractRenderer.java   236    
        org.apache.fop.render.pdf.PDFRenderer   renderPage      PDFRenderer.java        713    
        org.apache.fop.area.RenderPagesModel    addPage RenderPagesModel.java   120    
        org.apache.fop.layoutmgr.PageSequenceLayoutManager      finishPage      PageSequenceLayoutManager.java  786    
        org.apache.fop.layoutmgr.PageSequenceLayoutManager      makeNewPage     PageSequenceLayoutManager.java  741    
        org.apache.fop.layoutmgr.PageSequenceLayoutManager      handleBreakTrait        PageSequenceLayoutManager.java  837    
        org.apache.fop.layoutmgr.PageSequenceLayoutManager      access$300      PageSequenceLayoutManager.java  62     
        org.apache.fop.layoutmgr.PageSequenceLayoutManager$PageBreaker  getNextBlockList        PageSequenceLayoutManager.java  258    
        org.apache.fop.layoutmgr.AbstractBreaker        doLayout        AbstractBreaker.java    301    
        org.apache.fop.layoutmgr.AbstractBreaker        doLayout        AbstractBreaker.java    263    
        org.apache.fop.layoutmgr.PageSequenceLayoutManager      activateLayout  PageSequenceLayoutManager.java  157    
        org.apache.fop.area.AreaTreeHandler     endPageSequence AreaTreeHandler.java    385    
        org.apache.fop.fo.pagination.PageSequence       endOfNode       PageSequence.java       148    
        org.apache.fop.fo.FOTreeBuilder$MainFOHandler   endElement      FOTreeBuilder.java      378    
        org.apache.fop.fo.FOTreeBuilder endElement      FOTreeBuilder.java      194    
        org.orbeon.oxf.xml.SAXStore     replay  SAXStore.java   201    
        org.orbeon.oxf.processor.pipeline.TeeProcessor$1        readImpl        TeeProcessor.java       61     
        org.orbeon.oxf.processor.ProcessorImpl$7        read    ProcessorImpl.java      1030   
        org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl      read    ProcessorImpl.java      1213   
        org.orbeon.oxf.processor.ProcessorImpl                         


Richard Shaw

¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤

Richard Shaw  
Technical Design Authority - Information Solutions Consultancy  
Intelligent Transport Systems

Atkins Highways and Transportation
Woodcote Grove, Ashley Road, Epsom, Surrey, KT18 5BW

Tel: +44 (0) 1372 756407 
Fax: +44 (0) 1372 740055
Mob: 07740 817586 
E-mail: [hidden email]

www.atkinsglobal.com/its



This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding.

The ultimate parent company of the Atkins Group is WS Atkins plc. Registered in England No. 1885586. Registered Office Woodcote Grove, Ashley Road, Epsom, Surrey KT18 5BW.

P Consider the environment. Please don't print this e-mail unless you really need to.



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

ole0.bmp (4K) Download Attachment
ole1.bmp (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: PDF printing - missing class

Alessandro Vernet
Administrator
Richard,

Shaw, Richard A wrote
Provider org.apache.xalan.processor.TransformerFactoryImpl not found
Yes, this code shouldn't be looking for org.apache.xalan.processor.TransformerFactoryImpl, since the Xalan we ship is rerooted under "orbeon.apache...". The code in org.apache.xmlgraphics.xmp.XMPSerializer does a SAXTransformerFactory.newInstance(). But it is hard to say why this would work at first, and then fail later without having a reproducible test case. I think we would really need to be able run your application to further debug this one.

Alex