Page 1 of 1

odd error during PDF generation

Posted: Sat Jan 22, 2005 2:36 am
by fastjack
Hi again,

I get this error:
"E The process ended with code : 2 The error was : [ERROR] null"

It doesn't say, why. :-) I get it as soon as I try to produce a PDF from Docbook. Would you think this could be a bug in Apache FOP?

Just producing the .fo files works.

:(

Daniel

Posted: Sat Jan 22, 2005 1:04 pm
by george
Hi Daniel,

You should be able to get more information if you enable the FOP output. For that go to Options->Preferences on the XSLT/FO -- FO processors page and enable the "Enable the output of the built-in FOP" option.

Best Regards,
George

Posted: Sat Jan 22, 2005 8:44 pm
by fastjack
Hi George,

thanks for the hint. I got some more information, but still no real clarity... that is what it is printing:
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] FOP 0.20.5
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[INFO] setting up fonts
[ERROR] null
Process ended with exit code: 2

It does indeed seem that FOP is the bad guy here. Grr.

Daniel

Posted: Sat Jan 22, 2005 8:49 pm
by fastjack
Can I set the output of the included FOP to include debug information (their FAQ tells to add a -d to the command...)?

Posted: Wed Jan 26, 2005 1:44 pm
by sorin_ristache
Hi,

For the included FOP you can't because the FOP user config file doesn't contain an entry for this setting. However you can use the included FOP as an external FO processor and set the -d param in the command line. For this you have to go to Options -> Preferences -> XSLT/FO -> FO processors, add a new external FO processor, set the working directory to the oXygen install directory and copy and paste the following command line:

Code: Select all

java -cp lib/fop.jar;lib/batik.jar;lib/xml-apis.jar;lib/xercesImpl.jar;lib/avalon-framework-4.1.3.jar; org.apache.fop.apps.Fop -d -fo ${fo} -pdf ${out}
Then select this FO processor in the tab "FO processor" of the transform scenario edit dialog before you repeat the PDF transform.

Regards,
Sorin