Apache FOP: java.lang.NumberFormatException on fresh DocBook Article PDF Transformation

user115232
Posts: 8

Apache FOP: java.lang.NumberFormatException on fresh DocBook Article PDF Transformation

Sat Jan 12, 2013 1:55 am

I haven't used Oxygen for a few months, but when I last used it, things were working good. This morning when I went to edit and transform a DocBook article, I encountered a transformation error. I have simplified it to this:
1. Launch Oxygen XML Editor 14.1
2. File->New->DocBook 5 Article, Create
3. Document->Transformation->Apply Transformation Scenarios->Docbook PDF, Apply Associated (1)

Transformation begins and produces the error below.

Does anyone have any ideas?

Code: Select all

System ID: C:\temp\untitled1.xml
Scenario: DocBook PDF
XML file: C:\temp\untitled1.xml
XSL file: C:\Program Files (x86)\Oxygen XML Editor 14\frameworks\docbook\xsl\fo\docbook_custom.xsl
Document type: DocBook 5
Engine name: Apache FOP
Severity: error
Description: The process 'Apache FOP' ended with code: 1.
The error was:
ERROR - Exception
java.lang.NumberFormatException: For input string: ":0"
   at org.apache.fop.cli.InputHandlerFOP.transformTo(Unknown Source)
   at org.apache.fop.cli.InputHandlerFOP.renderTo(Unknown Source)
   at org.apache.fop.cli.Main.startFOP(Main.java:174)
   at org.apache.fop.cli.Main.main(Main.java:205)
Caused by: java.lang.NumberFormatException: For input string: ":0"
   at java.lang.NumberFormatException.forInputString(Unknown Source)
   at java.lang.Integer.parseInt(Unknown Source)
   at java.lang.Integer.parseInt(Unknown Source)
   at org.apache.xmlgraphics.xmp.XMPSchemaAdapter.parseISO8601Date(XMPSchemaAdapter.java:236)
   at org.apache.xmlgraphics.xmp.XMPSchemaAdapter.getDateValue(XMPSchemaAdapter.java:282)
   at org.apache.xmlgraphics.xmp.schemas.XMPBasicAdapter.getCreateDate(XMPBasicAdapter.java:84)
   at org.apache.fop.pdf.PDFMetadata.updateInfoFromMetadata(PDFMetadata.java:215)
   at org.apache.fop.render.pdf.PDFRenderingUtil.renderXMPMetadata(PDFRenderingUtil.java:346)
   at org.apache.fop.render.pdf.PDFDocumentHandler.handleExtensionObject(PDFDocumentHandler.java:294)
   at org.apache.fop.render.intermediate.IFRenderer.startPageSequence(IFRenderer.java:502)
   at org.apache.fop.area.RenderPagesModel.startPageSequence(RenderPagesModel.java:89)
   at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:98)
   at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:238)
   at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:120)
   at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:349)
   at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:177)
   at net.sf.saxon.event.ContentHandlerProxy.endElement(Unknown Source)
   at net.sf.saxon.event.NamespaceReducer.endElement(NamespaceReducer.java:208)
   at net.sf.saxon.event.ReceivingContentHandler.endElement(ReceivingContentHandler.java:425)
   at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
   at org.apache.xerces.xinclude.XIncludeHandler.endElement(Unknown Source)
   at org.apache.xerces.impl.XMLNSDocumentScannerImplXerces.scanEndElement(Unknown Source)
   at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
   at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
   at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
   at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
   at net.sf.saxon.event.Sender.sendSAXSource(Sender.java:405)
   at net.sf.saxon.event.Sender.send(Sender.java:152)
   at net.sf.saxon.IdentityTransformer.transform(IdentityTransformer.java:39)
   ... 4 more

---------

java.lang.NumberFormatException: For input string: ":0"
   at java.lang.NumberFormatException.forInputString(Unknown Source)
   at java.lang.Integer.parseInt(Unknown Source)
   at java.lang.Integer.parseInt(Unknown Source)
   at org.apache.xmlgraphics.xmp.XMPSchemaAdapter.parseISO8601Date(XMPSchemaAdapter.java:236)
   at org.apache.xmlgraphics.xmp.XMPSchemaAdapter.getDateValue(XMPSchemaAdapter.java:282)
   at org.apache.xmlgraphics.xmp.schemas.XMPBasicAdapter.getCreateDate(XMPBasicAdapter.java:84)
   at org.apache.fop.pdf.PDFMetadata.updateInfoFromMetadata(PDFMetadata.java:215)
   at org.apache.fop.render.pdf.PDFRenderingUtil.renderXMPMetadata(PDFRenderingUtil.java:346)
   at org.apache.fop.render.pdf.PDFDocumentHandler.handleExtensionObject(PDFDocumentHandler.java:294)
   at org.apache.fop.render.intermediate.IFRenderer.startPageSequence(IFRenderer.java:502)
   at org.apache.fop.area.RenderPagesModel.startPageSequence(RenderPagesModel.java:89)
   at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:98)
   at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:238)
   at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:120)
   at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:349)
   at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:177)
   at net.sf.saxon.event.ContentHandlerProxy.endElement(Unknown Source)
   at net.sf.saxon.event.NamespaceReducer.endElement(NamespaceReducer.java:208)
   at net.sf.saxon.event.ReceivingContentHandler.endElement(ReceivingContentHandler.java:425)
   at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
   at org.apache.xerces.xinclude.XIncludeHandler.endElement(Unknown Source)
   at org.apache.xerces.impl.XMLNSDocumentScannerImplXerces.scanEndElement(Unknown Source)
   at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
   at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
   at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
   at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
   at net.sf.saxon.event.Sender.sendSAXSource(Sender.java:405)
   at net.sf.saxon.event.Sender.send(Sender.java:152)
   at net.sf.saxon.IdentityTransformer.transform(IdentityTransformer.java:39)
   at org.apache.fop.cli.InputHandlerFOP.transformTo(Unknown Source)
   at org.apache.fop.cli.InputHandlerFOP.renderTo(Unknown Source)
   at org.apache.fop.cli.Main.startFOP(Main.java:174)
   at org.apache.fop.cli.Main.main(Main.java:205)
sorin_ristache
Posts: 4144

Re: Apache FOP: java.lang.NumberFormatException on fresh DocBook Article PDF Transformation

Mon Jan 14, 2013 12:09 pm

Hello,

I tried with both the Windows 32 bits kit and the Windows 64 bits kit of Oxygen 14.1 but I did not get any error when generating the PDF output from a new DocBook 5 Article document. Please send us the Docbook XML document, your Java properties (go to menu Help -> About -- System Properties, right click -> Select All, right click -> Copy) and your Oxygen user preferences (the file created by the action Export Global Options from menu Options).


Regards,
Sorin
user115232
Posts: 8

Re: Apache FOP: java.lang.NumberFormatException on fresh DocBook Article PDF Transformation

Tue Jan 15, 2013 1:33 am

Hi Sorin,
Thanks for the reply. I've got all the files together, but I'd rather not post the User Preferences export to this public forum as there are some filename strings that I cannot publish. Is there a non-public (ie. accessable only by Syncro Soft) address I can send the file to?

Best Regards,


Alex
user115232
Posts: 8

Re: Apache FOP: java.lang.NumberFormatException on fresh DocBook Article PDF Transformation

Tue Jan 15, 2013 1:34 am

Sorin,
I just realized you hyperlinked the "send us" link. I'll send the files there.

Alex
sorin_ristache
Posts: 4144

Re: Apache FOP: java.lang.NumberFormatException on fresh DocBook Article PDF Transformation

Tue Jan 15, 2013 10:28 am

Hi,

Please send your Oxygen user preferences and also your Java options as I described above.


Regards,
Sorin
user115232
Posts: 8

Re: Apache FOP: java.lang.NumberFormatException on fresh DocBook Article PDF Transformation

Wed Jan 16, 2013 1:41 am

sorin,
I uploaded three files at the link you provided (http://www.oxygenxml.com/techSupport.html) yesterday:
1. untitled1.xml - the docbook article xml document
2. Java Properties.txt - the java properties, copied as you instructed and pasted into a text file
3. User Preferences.xml - the user preferences, exported as you instructed

Did you not receive them?

I performed the same upload again, just now, except with a different file order.

Did you receive those files?

Alex
user115232
Posts: 8

Re: Apache FOP: java.lang.NumberFormatException on fresh DocBook Article PDF Transformation

Wed Jan 16, 2013 1:45 am

sorin,
I just uploaded the files again but in .zip format just in case the multiple file upload feature of http://www.oxygenxml.com/techSupport.html is not working.

Please let me know whether you received the files.

Alex
sorin_ristache
Posts: 4144

Re: Apache FOP: java.lang.NumberFormatException on fresh DocBook Article PDF Transformation

Wed Jan 16, 2013 11:50 am

Hi Alex,

Yes, I received the files but I don't get an error, the PDF output is created correctly. Please go to menu Options -> Preferences -- XML / XSLT-FO-XQuery / FO Processors and enable the option Enable output to the built-in FOP. Repeat the transformation and post here all the output messages that are added in the view called Apache FOP.


Regards,
Sorin
user115232
Posts: 8

Re: Apache FOP: java.lang.NumberFormatException on fresh DocBook Article PDF Transformation

Wed Jan 16, 2013 10:04 pm

sorin,
Here is the output from the "Apache FOP" view.

Thanks for your help,

Alex

Code: Select all

Started: "c:\program files\oxygen xml editor 14\jre\bin\java" -Xmx250m "-Dcom.oxygenxml.editor.home.url=file:/C:/Program%20Files/Oxygen%20XML%20Editor%2014/" -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl -Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser "-Dlog4j.configuration=file:/C:/Program%20Files/Oxygen%20XML%20Editor%2014//tools/config/log4j.xml" "-Dxml.catalog.files=file:/C:/Program%20Files/Oxygen%20XML%20Editor%2014/frameworks//catalog.xml;file:/C:/Program%20Files/Oxygen%20XML%20Editor%2014/frameworks/dita/catalog.xml;file:/C:/Program%20Files/Oxygen%20XML%20Editor%2014/frameworks/dita/catalog.xml;file:/C:/Program%20Files/Oxygen%20XML%20Editor%2014/frameworks/docbook/catalog.xml;file:/C:/Program%20Files/Oxygen%20XML%20Editor%2014/frameworks/docbook/5.0/catalog.xml;file:/C:/Program%20Files/Oxygen%20XML%20Editor%2014/frameworks/ead/catalog.xml;file:/C:/Program%20Files/Oxygen%20XML%20Editor%2014/frameworks/fo/xsd/catalog.xml;file:/C:/Program%20Files/Oxygen%20XML%20Editor%2014/frameworks/kml/schema/catalog.xml;file:/C:/Program%20Files/Oxygen%20XML%20Editor%2014/frameworks/mathml2/catalog.xml;file:/C:/Program%20Files/Oxygen%20XML%20Editor%2014/frameworks/ncx/catalog.xml;file:/C:/Program%20Files/Oxygen%20XML%20Editor%2014/frameworks/svg/dtd/svgcatalog.xml;file:/C:/Program%20Files/Oxygen%20XML%20Editor%2014/frameworks/stratml/part1/xsd/catalog.xml;file:/C:/Program%20Files/Oxygen%20XML%20Editor%2014/frameworks/stratml/part2/xsd/catalog.xml;file:/C:/Program%20Files/Oxygen%20XML%20Editor%2014/frameworks/tei/xml/tei/custom/schema/catalog.xml;file:/C:/Program%20Files/Oxygen%20XML%20Editor%2014/frameworks/tei/xml/tei/schema/catalog.xml;file:/C:/Program%20Files/Oxygen%20XML%20Editor%2014/frameworks/tei/xml/teip4/custom/schema/dtd/catalog.xml;file:/C:/Program%20Files/Oxygen%20XML%20Editor%2014/frameworks/tei/xml/teip4/schema/dtd/catalog.xml;file:/C:/Program%20Files/Oxygen%20XML%20Editor%2014/frameworks/tei/xml/teip4/stylesheet/catalog.xml;file:/C:/Program%20Files/Oxygen%20XML%20Editor%2014/frameworks/tei/xml/tei/custom/schema/catalog.xml;file:/C:/Program%20Files/Oxygen%20XML%20Editor%2014/frameworks/tei/xml/tei/schema/catalog.xml;file:/C:/Program%20Files/Oxygen%20XML%20Editor%2014/frameworks/tei/xml/tei/stylesheet/catalog.xml;file:/C:/Program%20Files/Oxygen%20XML%20Editor%2014/frameworks/xhtml/dtd/xhtmlcatalog.xml;file:/C:/Program%20Files/Oxygen%20XML%20Editor%2014/frameworks/xhtml/relaxng/catalog.xml;file:/C:/Program%20Files/Oxygen%20XML%20Editor%2014/frameworks/xhtml/nvdl/catalog.xml;file:/C:/Program%20Files/Oxygen%20XML%20Editor%2014/frameworks/xhtml11/dtd/xhtmlcatalog.xml;file:/C:/Program%20Files/Oxygen%20XML%20Editor%2014/frameworks/xhtml11/schema/xhtmlcatalog.xml;file:/C:/Program%20Files/Oxygen%20XML%20Editor%2014/frameworks/xmlschema/catalog.xml;file:/C:/Program%20Files/Oxygen%20XML%20Editor%2014/frameworks/xmlspec/catalog.xml" -cp "C:\Program Files\Oxygen XML Editor 14/classes/;C:\Program Files\Oxygen XML Editor 14/lib/oxygen.jar;C:\Program Files\Oxygen XML Editor 14/lib/oxygenAuthor.jar;C:\Program Files\Oxygen XML Editor 14/lib/oxygenDeveloper.jar;C:\Program Files\Oxygen XML Editor 14/lib/oxygenEclipse.jar;C:\Program Files\Oxygen XML Editor 14/lib/oxygenAuthorEclipse.jar;C:\Program Files\Oxygen XML Editor 14/lib/oxygenDeveloperEclipse.jar;C:\Program Files\Oxygen XML Editor 14/lib/xercesImpl.jar;C:\Program Files\Oxygen XML Editor 14/lib/resolver.jar;C:\Program Files\Oxygen XML Editor 14/lib/log4j.jar;C:\Program Files\Oxygen XML Editor 14/lib/fop.jar;C:\Program Files\Oxygen XML Editor 14/lib/avalon-framework-4.2.0.jar;C:\Program Files\Oxygen XML Editor 14/lib/batik-all-1.7.jar;C:\Program Files\Oxygen XML Editor 14/lib/commons-io-1.3.1.jar;C:\Program Files\Oxygen XML Editor 14/lib/xmlgraphics-commons-1.4.jar;C:\Program Files\Oxygen XML Editor 14/lib/commons-logging-1.0.4.jar;C:\Program Files\Oxygen XML Editor 14/lib/saxon9ee.jar;C:\Program Files\Oxygen XML Editor 14/lib/serializer.jar;C:\Program Files\Oxygen XML Editor 14/lib/xml-apis-ext.jar;C:\Program Files\Oxygen XML Editor 14/lib/jeuclid-core.jar;C:\Program Files\Oxygen XML Editor 14/lib/jeuclid-fop.jar" org.apache.fop.cli.Main -c "C:\Program Files\Oxygen XML Editor 14/lib/fop-config.xml" -fo C:\temp\untitled1.xml_xslt -pdf C:\temp\out\pdf\untitled1.pdf
ERROR - Exception
java.lang.NumberFormatException: For input string: ":0"
   at org.apache.fop.cli.InputHandlerFOP.transformTo(Unknown Source)
   at org.apache.fop.cli.InputHandlerFOP.renderTo(Unknown Source)
   at org.apache.fop.cli.Main.startFOP(Main.java:174)
   at org.apache.fop.cli.Main.main(Main.java:205)
Caused by: java.lang.NumberFormatException: For input string: ":0"
   at java.lang.NumberFormatException.forInputString(Unknown Source)
   at java.lang.Integer.parseInt(Unknown Source)
   at java.lang.Integer.parseInt(Unknown Source)
   at org.apache.xmlgraphics.xmp.XMPSchemaAdapter.parseISO8601Date(XMPSchemaAdapter.java:236)
   at org.apache.xmlgraphics.xmp.XMPSchemaAdapter.getDateValue(XMPSchemaAdapter.java:282)
   at org.apache.xmlgraphics.xmp.schemas.XMPBasicAdapter.getCreateDate(XMPBasicAdapter.java:84)
   at org.apache.fop.pdf.PDFMetadata.updateInfoFromMetadata(PDFMetadata.java:215)
   at org.apache.fop.render.pdf.PDFRenderingUtil.renderXMPMetadata(PDFRenderingUtil.java:346)
   at org.apache.fop.render.pdf.PDFDocumentHandler.handleExtensionObject(PDFDocumentHandler.java:294)
   at org.apache.fop.render.intermediate.IFRenderer.startPageSequence(IFRenderer.java:502)
   at org.apache.fop.area.RenderPagesModel.startPageSequence(RenderPagesModel.java:89)
   at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:98)
   at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:238)
   at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:120)
   at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:349)
   at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:177)
   at net.sf.saxon.event.ContentHandlerProxy.endElement(Unknown Source)
   at net.sf.saxon.event.NamespaceReducer.endElement(NamespaceReducer.java:208)
   at net.sf.saxon.event.ReceivingContentHandler.endElement(ReceivingContentHandler.java:425)
   at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
   at org.apache.xerces.xinclude.XIncludeHandler.endElement(Unknown Source)
   at org.apache.xerces.impl.XMLNSDocumentScannerImplXerces.scanEndElement(Unknown Source)
   at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
   at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
   at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
   at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
   at net.sf.saxon.event.Sender.sendSAXSource(Sender.java:405)
   at net.sf.saxon.event.Sender.send(Sender.java:152)
   at net.sf.saxon.IdentityTransformer.transform(IdentityTransformer.java:39)
   ... 4 more

---------

java.lang.NumberFormatException: For input string: ":0"
   at java.lang.NumberFormatException.forInputString(Unknown Source)
   at java.lang.Integer.parseInt(Unknown Source)
   at java.lang.Integer.parseInt(Unknown Source)
   at org.apache.xmlgraphics.xmp.XMPSchemaAdapter.parseISO8601Date(XMPSchemaAdapter.java:236)
   at org.apache.xmlgraphics.xmp.XMPSchemaAdapter.getDateValue(XMPSchemaAdapter.java:282)
   at org.apache.xmlgraphics.xmp.schemas.XMPBasicAdapter.getCreateDate(XMPBasicAdapter.java:84)
   at org.apache.fop.pdf.PDFMetadata.updateInfoFromMetadata(PDFMetadata.java:215)
   at org.apache.fop.render.pdf.PDFRenderingUtil.renderXMPMetadata(PDFRenderingUtil.java:346)
   at org.apache.fop.render.pdf.PDFDocumentHandler.handleExtensionObject(PDFDocumentHandler.java:294)
   at org.apache.fop.render.intermediate.IFRenderer.startPageSequence(IFRenderer.java:502)
   at org.apache.fop.area.RenderPagesModel.startPageSequence(RenderPagesModel.java:89)
   at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:98)
   at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:238)
   at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:120)
   at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:349)
   at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:177)
   at net.sf.saxon.event.ContentHandlerProxy.endElement(Unknown Source)
   at net.sf.saxon.event.NamespaceReducer.endElement(NamespaceReducer.java:208)
   at net.sf.saxon.event.ReceivingContentHandler.endElement(ReceivingContentHandler.java:425)
   at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
   at org.apache.xerces.xinclude.XIncludeHandler.endElement(Unknown Source)
   at org.apache.xerces.impl.XMLNSDocumentScannerImplXerces.scanEndElement(Unknown Source)
   at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
   at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
   at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
   at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
   at net.sf.saxon.event.Sender.sendSAXSource(Sender.java:405)
   at net.sf.saxon.event.Sender.send(Sender.java:152)
   at net.sf.saxon.IdentityTransformer.transform(IdentityTransformer.java:39)
   at org.apache.fop.cli.InputHandlerFOP.transformTo(Unknown Source)
   at org.apache.fop.cli.InputHandlerFOP.renderTo(Unknown Source)
   at org.apache.fop.cli.Main.startFOP(Main.java:174)
   at org.apache.fop.cli.Main.main(Main.java:205)
Process ended with exit code: 1
sorin_ristache
Posts: 4144

Re: Apache FOP: java.lang.NumberFormatException on fresh DocBook Article PDF Transformation

Thu Jan 17, 2013 3:34 pm

Hi Alex,

I am sorry, the FOP output does not add useful info and I cannot reproduce the error using your Oxygen user options and your XML document. I investigated the error message and it seems the error in org.apache.xmlgraphics.xmp.XMPSchemaAdapter.parseISO8601Date is caused by a bug in Apache FOP that is embedded in Oxygen. FOP is used for creating the final PDF output. The bug is dependent on the timezone set on the computer. your user.timezone is Pacific/Honolulu but I have a different timezone on my computer and that seems to explain why I don't get the error.

You can try the same Docbook transformation in a build of Oxygen 14.2 beta that I can give you and that includes FOP 1.1 (Oxygen 14.1 includes FOP 1.0) because it seems in FOP 1.1 the bug was fixed in org.apache.xmlgraphics.xmp.XMPSchemaAdapter.parseISO8601Date. Let me know if you want a download link for a build of Oxygen 14.2 beta.

Other option is to change the timezone on your computer, after that restart Oxygen and try again the same Docbook transformation. This can avoid the bug in org.apache.xmlgraphics.xmp.XMPSchemaAdapter.parseISO8601Date inside Apache FOP 1.0 that comes with Oxygen 14.1. For example you can set a UTC+ timezone instead of a UTC- one. I think Pacific/Honolulu is something like UTC-7 or UTC-8.


Regards,
Sorin
user115232
Posts: 8

Re: Apache FOP: java.lang.NumberFormatException on fresh DocBook Article PDF Transformation

Fri Jan 18, 2013 1:08 am

Sorin,
Thanks so much for your support, and thanks for pinpointing the problem. I confirm that switching to the pacific timezone avoids the problem. I will use this workaround until 14.2 is released.

Thanks again,

Alex

Return to “DocBook”

Who is online

Users browsing this forum: No registered users and 1 guest