FS#32933 - [fop] Exception in thread "main" java.lang.NoSuchMethodError: org.apache.xmlgraphics.util.Service.pr
Attached to Project:
Community Packages
Opened by Leif Warner (pdxleif) - Sunday, 02 December 2012, 02:35 GMT
Last edited by Lukas Fleischer (lfleischer) - Saturday, 29 June 2013, 11:17 GMT
Opened by Leif Warner (pdxleif) - Sunday, 02 December 2012, 02:35 GMT
Last edited by Lukas Fleischer (lfleischer) - Saturday, 29 June 2013, 11:17 GMT
|
Details
When I run the command:
fop -pdf resume.pdf -xsl /usr/share/xsl/resume/output/us-letter.xsl -xml resume.xml I get the error: Exception in thread "main" java.lang.NoSuchMethodError: org.apache.xmlgraphics.util.Service.providerNames(Ljava/lang/Class;)Ljava/util/Iterator; at org.apache.fop.fo.ElementMappingRegistry.setupDefaultMappings(ElementMappingRegistry.java:74) at org.apache.fop.fo.ElementMappingRegistry.<init>(ElementMappingRegistry.java:66) at org.apache.fop.apps.FopFactory.<init>(FopFactory.java:166) at org.apache.fop.apps.FopFactory.newInstance(FopFactory.java:190) at org.apache.fop.cli.CommandLineOptions.<init>(CommandLineOptions.java:124) at org.apache.fop.cli.Main.startFOP(Main.java:160) at org.apache.fop.cli.Main.main(Main.java:208) That stylesheet is from the xmlresume package in AUR. I just installed fop-1.1.-1, and it pulled down java-avalon-framework-4.2.0-5, java-batik-1.7-11, java-commons-io-1.4-5, and java-xmlgraphics-commons-1.4-2 as dependencies. That error occurs when org.apache.fop calls org.apache.xmlgraphics - maybe a version mismatch with that java-xmlgraphics-commons dependency? |
This task depends upon
Closed by Lukas Fleischer (lfleischer)
Saturday, 29 June 2013, 11:17 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in java-xmlgraphics-commons 1.5-1.
Saturday, 29 June 2013, 11:17 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in java-xmlgraphics-commons 1.5-1.
----
$ pacman -Q java-xmlgraphics-commons
java-xmlgraphics-commons 1.5-1
$ jar xf /usr/share/java/xmlgraphics-commons/xmlgraphics-commons.jar org/apache/xmlgraphics/util/Service.class
$ javap -p org.apache.xmlgraphics.util.Service | grep providerNames
public static synchronized java.util.Iterator<java.lang.String> providerNames(java.lang.Class<?>);
----
Can anybody confirm that this error no longer occurs?