Path

ez projects / paradoxpdf / forum / issues / error with correct html whi...


Error with correct html while convert to PDF.

You need to be logged in to post messages in the forums. New users may register here.

Wei Dai

Member since:
02 April 2008

Posts: 12

Tuesday 02 June 2009 11:26:21 am

I got following error in the log:




[ Jun 02 2009 07:40:22 ] Failed executing command : /usr/bin/java -Djava.awt.headless=true -jar /var/www/mfe_cimed/extension/paradoxpdf/bin/paradoxpdf.jar /var/www/mfe_cimed/var/paradoxpdf/9f64712b1677806eb87835bb2e708073.xhtml /var/www/mfe_cimed/var/paradoxpdf/9f64712b1677806eb87835bb2e708073.pdf 2>&1 , 

 Output : ERROR: 'The element type "body" must be terminated by the matching end-tag "</body>".'


Exception in thread "main" org.xhtmlrenderer.util.XRRuntimeException: Can't load the XML resource (using TRaX transformer). org.xml.sax.SAXParseException: The element type "body" must be terminated by the matching end-tag "</body>".


        at org.xhtmlrenderer.resource.XMLResource$XMLResourceBuilder.createXMLResource(XMLResource.java:191)


        at org.xhtmlrenderer.resource.XMLResource.load(XMLResource.java:71)


        at org.xhtmlrenderer.swing.NaiveUserAgent.getXMLResource(NaiveUserAgent.java:211)


        at org.xhtmlrenderer.pdf.ITextRenderer.loadDocument(ITextRenderer.java:134)


        at org.xhtmlrenderer.pdf.ITextRenderer.setDocument(ITextRenderer.java:138)


        at com.tricinty.ParadoxPDF.export(ParadoxPDF.java:121)


        at com.tricinty.ParadoxPDF.main(ParadoxPDF.java:59)


Caused by: javax.xml.transform.TransformerException: org.xml.sax.SAXParseException: The element type "body" must be terminated by the matching end-tag "</body>".


        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:720)


        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:313)


        at org.xhtmlrenderer.resource.XMLResource$XMLResourceBuilder.createXMLResource(XMLResource.java:189)


        ... 6 more


Caused by: org.xml.sax.SAXParseException: The element type "body" must be terminated by the matching end-tag "</body>".


        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1231)


        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(TransformerImpl.java:637)


        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:708)


        ... 8 more




However, I check the html file generated under /var/paradoxpdf, it has a "</body>" tag. And, everything seem correct. What else might be the problem?

Certified eZ Publish 4 developer looking for develop information & collaboration.

Up

Karnichi Mohamed

Member since:
09 October 2006

Posts: 78

Tuesday 02 June 2009 12:39:38 pm

Hi,

Could you check the generated Html here : http://validator.w3.org/#validate_by_input
Fix all errors, then retry pdf generation. If you still encounter problem send me the xhtml file.
and I will check it soon.

Thanks

http://www.amiralweb.com Certified eZPublish Expert

Up

Wei Dai

Member since:
02 April 2008

Posts: 12

Wednesday 03 June 2009 7:55:50 am

We corrected some errors, and the PDF was generated. :)

Thanks.

Certified eZ Publish 4 developer looking for develop information & collaboration.

Up

You need to be logged in to post messages in the forums. New users may register here.