odd error during PDF generation

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
fastjack
Posts: 13
Joined: Tue Jul 27, 2004 6:41 am
Location: Bremen/Germany
Contact:

odd error during PDF generation

Post by fastjack » Sat Jan 22, 2005 2:36 am

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

george
Site Admin
Posts: 2102
Joined: Thu Jan 09, 2003 2:58 pm

Post by george » Sat Jan 22, 2005 1:04 pm

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

fastjack
Posts: 13
Joined: Tue Jul 27, 2004 6:41 am
Location: Bremen/Germany
Contact:

Post by fastjack » Sat Jan 22, 2005 8:44 pm

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

fastjack
Posts: 13
Joined: Tue Jul 27, 2004 6:41 am
Location: Bremen/Germany
Contact:

Post by fastjack » Sat Jan 22, 2005 8:49 pm

Can I set the output of the included FOP to include debug information (their FAQ tells to add a -d to the command...)?

sorin_ristache
Posts: 4144
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache » Wed Jan 26, 2005 1:44 pm

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

Post Reply