Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

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
Task Type Bug Report
Category Packages
Status Closed
Assigned To Lukas Fleischer (lfleischer)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

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.
Comment by Jakub Lužný (Limoto) - Monday, 10 December 2012, 19:28 GMT
I have the same issue. It works with xmlgraphics from AUR.
Comment by Lukas Fleischer (lfleischer) - Friday, 28 June 2013, 12:03 GMT
Looks like this has been fixed by upgrading java-xmlgraphics-commons to 1.5:

----
$ 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?

Loading...