[ 
https://issues.apache.org/jira/browse/FOP-1789?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17014402#comment-17014402
 ] 

Chris Bowditch commented on FOP-1789:
-------------------------------------

Unfortunately, this patch doesn't resolve the problem in the latest FOP 
version. I get the following exception:

 

Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/batik/bridge/UserAgent
 at java.lang.Class.getDeclaredConstructors0(Native Method)
 at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
 at java.lang.Class.getConstructor0(Class.java:3075)
 at java.lang.Class.getDeclaredConstructor(Class.java:2178)
 at org.apache.xmlgraphics.util.Service.providers(Service.java:85)
 at 
org.apache.xmlgraphics.image.loader.spi.ImageImplRegistry.discoverClasspathImplementations(ImageImplRegistry.java:117)
 at 
org.apache.xmlgraphics.image.loader.spi.ImageImplRegistry.<init>(ImageImplRegistry.java:81)
 at 
org.apache.xmlgraphics.image.loader.spi.ImageImplRegistry.<init>(ImageImplRegistry.java:89)
 at 
org.apache.xmlgraphics.image.loader.spi.ImageImplRegistry.<clinit>(ImageImplRegistry.java:73)
 at 
org.apache.xmlgraphics.image.loader.ImageManager.<init>(ImageManager.java:64)
 at 
org.apache.fop.apps.FopFactoryBuilder$FopFactoryConfigImpl.<init>(FopFactoryBuilder.java:380)
 at org.apache.fop.apps.FopFactoryBuilder.<init>(FopFactoryBuilder.java:89)
 at org.apache.fop.apps.FopFactoryBuilder.<init>(FopFactoryBuilder.java:80)
 at org.apache.fop.apps.FopFactoryBuilder.<init>(FopFactoryBuilder.java:70)
 at 
org.apache.fop.cli.CommandLineOptions.setUserConfig(CommandLineOptions.java:1018)
 at org.apache.fop.cli.CommandLineOptions.parse(CommandLineOptions.java:173)

> [PATCH] java.lang.NoClassDefFoundError: 
> org/apache/batik/util/XMLResourceDescriptor
> -----------------------------------------------------------------------------------
>
>                 Key: FOP-1789
>                 URL: https://issues.apache.org/jira/browse/FOP-1789
>             Project: FOP
>          Issue Type: Bug
>          Components: foreign/svg
>    Affects Versions: 0.95, 2.4
>         Environment: Operating System: All
> Platform: All
>            Reporter: Yannick Majoros
>            Assignee: Chris Bowditch
>         Attachments: fop.patch
>
>
> While starting fop without batik jar, this error is shown in the logs:
> Error while initializing the Batik SVG extensions
> java.lang.NoClassDefFoundError: org/apache/batik/util/XMLResourceDescriptor 
>        at 
> org.apache.fop.fo.extensions.svg.SVGElementMapping.initialize(SVGElementMapping.java:80)
>  
> (+long stack trace)
> This is a warning, but is confusing some developers of my team. A quick check 
> on the web shows many people are confused with this.
> This is not consistent with what other extensions do.
> If the only consequence is that batik is disabled, the complete stack trace 
> should not be shown. A warning is enough, and debug info with complete stack 
> trace should be made available.
> This quick patch fixes that.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to