xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jean-Michel Biollaz (pb)" <jm.biollaz....@hexalog.com>
Subject Embedding FOP problem
Date Thu, 09 Aug 2001 13:43:20 GMT
Hello,

I'm experiencing problems to include FOP in my java app.
Here is my code :

public static void main(java.lang.String[] args) {
	try{
          String aFilePath = new String("D:/fop/normal.fo");
	    ByteArrayOutputStream out = new ByteArrayOutputStream();

	    Driver driver = new Driver(new InputSource(aFilePath), out);
	    driver.run();
      }
	catch(Throwable t){
        t.printStackTrace();
      }			
}

Here is the output :

java.lang.InternalError: (Ex02) An error has occurred.
	java.lang.Throwable(java.lang.String)
	java.lang.Error(java.lang.String)
	java.lang.VirtualMachineError(java.lang.String)
	java.lang.InternalError(java.lang.String)
	org.apache.fop.apps.Driver()
	org.apache.fop.apps.Driver()
	org.apache.fop.apps.Driver(org.xml.sax.InputSource,
java.io.OutputStream)
	void org.apache.fop.apps.Svg2PDF.main(java.lang.String [])

Any help appreciated,
Jean-Michel

Mime
View raw message