Jeff Sese wrote:
Hi,
I'm trying out FOP 0.93 using the command-line and my input is an FO
file. However I got this error message when I tried running it:
SEVERE: Exception
java.lang.IllegalStateException: FOTreeBuilder (and the Fop class)
cannot be reused. Please instantiate a new instance.
at
org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:168)
at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)
at org.apache.fop.cli.Main.startFOP(Main.java:160)
at org.apache.fop.cli.Main.main(Main.java:191)
<snip/>
After googling for some related problems, users list the same problem
when running a transformation using saxon, but in my case i did not run
a transformation and have a FO file as input for FOP.
I'm running FOP in a JRE 1.5.0_09 in a Windows XP.
Also when i tried using FOP 0.20.5, i was able to create a PDF output.
How can i resolve this problem?
This problem is caused by using an older version of Xalan, which has a
bug that generates 2 end element SAX Events. JDK 1.5 includes a version
of Xalan in its boot classpath, so you may not realise you are using an
older version! The only way to override the one in the JDK is by using
the endorsed mechanism. Basically look for the directory:
JDK150/jre/lib/endorsed
Create the dir if it doesn't exist and then place the xerces and xalan
JARs from the FOP distribution into the endorsed directory;
xml-apis-1.3.02.jar
xercesImpl-2.7.1.jar
xalan-2.7.0.jar
serializer-2.7.0.jar
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]