Re: Error messages from fop

2011-09-18 Thread Simon Pepping
Probably. You should also upgrade xmlgraphics-commons. Simon

On Sat, Sep 17, 2011 at 09:03:26PM +0200, Lars Bjørndal wrote:
> 
> I upgraded fop from the update-testing repository, and now, I have
> fop-1.0-13.fc14 installed. Unfortunately and surprisingly, I get the
> following errors when giving the command 'fop -h' or other fop commands:
> 
> Exception in thread "main" java.lang.NoClassDefFoundError: 
> org/apache/xmlgraphics/util/uri/CommonURIResolver
>   at org.apache.fop.apps.FOURIResolver.(FOURIResolver.java:56)
>   at org.apache.fop.apps.FopFactory.(FopFactory.java:155)
>   at org.apache.fop.apps.FopFactory.newInstance(FopFactory.java:177)
>   at 
> org.apache.fop.cli.CommandLineOptions.(CommandLineOptions.java:121)
>   at org.apache.fop.cli.Main.startFOP(Main.java:157)
>   at org.apache.fop.cli.Main.main(Main.java:204)
> Caused by: java.lang.ClassNotFoundException: 
> org.apache.xmlgraphics.util.uri.CommonURIResolver
>   at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
>   at java.security.AccessController.doPrivileged(Native Method)
>   at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
>   at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
>   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
>   at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
>   ... 6 more
> 
> Is there some missing dependency packages on my system?

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



Interrupt/cancel/abort a render

2011-09-18 Thread Bernard Giannetti

Hi,

I'm wondering if it's possible to interrupt/cancel/abort a render once it has 
been started.  I'm embedding FOP into a Java desktop application in a similar 
way which is described here: 
http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/examples/embedding/java/embedding/ExampleXML2PDF.java?view=markup.
  

I've looked at the API and nothing is immediately obvious.  I found this old 
forum post (http://www.mail-archive.com/fop-user@xml.apache.org/msg05146.html) 
which didn't help.

I am running the rendering process in a thread but not sure how I'd go about 
cleanly/gracefully aborting a render.

Thanks,

Bernard.