You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Baeckham <ba...@gmx.net> on 2007/08/06 09:51:32 UTC

can not create an FOP instance anymore

Hi,

I am using FOp to create PDF documents dynamically. Suddenly it stopped to 
work. I do't know why. The reason is that a instance of the class 
org.apache.fop.apps.Fop can not be created. Why??

The FopFactory an the FOUserAgent are created but not the Fop itself.

Here the code:
private Fop getFop(String format, OutputStream out) throws FOPException {
	if (fop == null) {
		FopFactory fopFactory = FopFactory.newInstance();
		FOUserAgent foUserAgent = fopFactory.newFOUserAgent();
		Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, foUserAgent, out);
	}
	return fop;
}

Maybe I changed something unnoticed. A library or something. Debugging the FOP 
shows no problems, the DefaultHandler is build. But the call 

fopFactory.newFop(MimeConstants.MIME_PDF, foUserAgent, out);

does not return anything .... ?????

Thanx for any hints. I am really at a loss....

Steffen


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org