xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David <achepat...@yahoo.es>
Subject Java Result: 2 Why?
Date Thu, 04 May 2006 11:48:05 GMT
Dear members,
  I am getting problmes when getting generating the PDF file from using FOP. I am using DocBook,
vía Ant:
  <presetdef name="docbook">
  <java classname="com.icl.saxon.StyleSheet" fork="true" dir="${doc.ref.src.dir}"
    <fileset dir="${docbook.dir}/lib">
     <include name="**/*.jar" />
    <pathelement location="${build.testclasses.dir}/resource/config" />
    <echo level="info" message="${message.docbook.generatingTmpFile}" />
  <docbook failonerror="true">
   <arg value="-o" />
   <arg value="${build.doc.ref.pdf.dir}/docbook_fop.tmp" />
   <arg value="index.xml" />
   <arg value="styles/fopdf.xsl" />
    <echo level="info" message="${message.docbook.generatingPdfFile}" />
  <docbook classname="org.apache.fop.apps.Fop">
   <arg value="${build.doc.ref.pdf.dir}/docbook_fop.tmp" />
   <arg value="${build.doc.ref.pdf.dir}/${name}.pdf" />
  The temporal file generation is done, but after that I get the following error:
  Buildfile: P:\LRA\build.xml
  [echo] INFO(lra): Generating intermediate file...
  [docbook] Making portrait pages on A4 paper (210mmx297mm)
  [echo] INFO(lra): Generating pdf file...
  [docbook] [INFO] Using com.icl.saxon.aelfred.SAXDriver as SAX2 Parser
  [docbook] [INFO] FOP 0.20.5
  [docbook] [INFO] Using com.icl.saxon.aelfred.SAXDriver as SAX2 Parser
  [docbook] [INFO] building formatting object tree
  [docbook] [INFO] setting up fonts
  [docbook] [INFO] [1]
  [docbook] [INFO] [2]
  [docbook] [INFO] [1]
  [docbook] [INFO] [2]
  [docbook] [INFO] Parsing of document complete, stopping renderer
  [docbook] [ERROR] null
  [docbook] Java Result: 2
  Total time: 5 seconds
  so, the PDF file is not generated.
  I am trying to get more information about the error, but I have no find the way. I have
added, the line on my log4j.properties file, withut success:
  org.apache.fop.apps.Fop = DEBUG
  so, I don't know what is going on, at the begining I thught it is a problem with some docbook
syntax, but it doesn't because for example if I change the name of the URL on the <ulink>
element then it fails, so it should be something extrange, but I don't know.
  I am using the docbook library from:
  Thanks, in advance for any inputs,

Love cheap thrills? Enjoy PC-to-Phone  calls to 30+ countries for just 2¢/min with Yahoo!
Messenger with Voice.
View raw message