[Bug 1068424] New: xmlgraphics-fop exits with error (works on Leap)
http://bugzilla.suse.com/show_bug.cgi?id=1068424 Bug ID: 1068424 Summary: xmlgraphics-fop exits with error (works on Leap) Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other Assignee: bnc-team-screening@forge.provo.novell.com Reporter: fs@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Created attachment 748931 --> http://bugzilla.suse.com/attachment.cgi?id=748931&action=edit FO file used for the fop command fop is called with this command: ADDITIONAL_FLAGS="-Djavax.xml.transform.URIResolver=org.apache.xml.resolver.tools.CatalogResolver -Djava.util.logging.config.file=/etc/fop/fop_logging.properties " ADDITIONAL_JARS="batik-all excalibur/avalon-framework-impl " ADDITIONAL_OPTIONS=" -Xss2048K " fop -q "hitchhiker-guide-fop_color_en.fo hitchhiker-guide_color_en.pdf" and errors out with ----------------------------- Java virtual machine used: /usr/lib64/jvm/jre/bin/java classpath used: /usr/share/java/xmlgraphics-fop.jar:/usr/share/java/xmlgraphics-commons.jar:/usr/share/java/commons-logging.jar:/usr/share/java/commons-io.jar:/usr/share/java/avalon-framework.jar:/usr/share/java/batik-all.jar:/usr/share/java/xml-commons-jaxp-1.3-apis.jar:/usr/share/java/xml-commons-jaxp-1.3-apis-ext.jar:/usr/share/java/batik-all.jar:/usr/share/java/excalibur/avalon-framework-impl.jar main class used: org.apache.fop.cli.Main flags used: '-Djavax.xml.transform.URIResolver=org.apache.xml.resolver.tools.CatalogResolver' '-Djava.util.logging.config.file=/usr/share/daps/etc/fop/fop_logging.properties' options used: '-Xss2048K' arguments used: -c /etc/fop.xconf /home/tux/suse-doc-howtos/build/.tmp/hitchhiker-guide-fop_color_en.fo /home/tux/suse-doc-howtos/build/hitchhiker-guide/hitchhiker-guide_color_en.pdf Exception in thread "main" java.lang.NoSuchMethodError: java.nio.CharBuffer.limit(I)Ljava/nio/CharBuffer; at org.apache.fop.fo.FOText.characters(FOText.java:137) at org.apache.fop.fo.FObjMixed.characters(FObjMixed.java:74) at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.characters(FOTreeBuilder.java:388) at org.apache.fop.fo.FOTreeBuilder.characters(FOTreeBuilder.java:136) at com.sun.org.apache.xml.internal.serializer.ToXMLSAXHandler.characters(ToXMLSAXHandler.java:546) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.characters(AbstractSAXParser.java:546) at com.sun.org.apache.xerces.internal.xinclude.XIncludeHandler.characters(XIncludeHandler.java:1131) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:455) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:841) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:770) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(TransformerImpl.java:668) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:737) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:351) at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:285) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115) at org.apache.fop.cli.Main.startFOP(Main.java:186) at org.apache.fop.cli.Main.main(Main.java:216) ----------------------------- daps-2.4.0-3.3.noarch suse-xsl-stylesheets-2.0.8-1.1.noarch xmlgraphics-fop-2.1-6.1.noarch -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1068424 Frank Sundermeyer <fs@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|bnc-team-screening@forge.pr |thomas.schraitle@suse.com |ovo.novell.com | -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1068424 http://bugzilla.suse.com/show_bug.cgi?id=1068424#c1 --- Comment #1 from Frank Sundermeyer <fs@suse.com> --- BTW, works fine with the attached FO file on Leap 42.2 * daps-2.4.0-145.22.noarch * suse-xsl-stylesheets-2.0.8-1.4.noarch * xmlgraphics-fop-1.1-18.6.noarch Leap 42.3 * daps-2.4.0-149.9.noarch * suse-xsl-stylesheets-2.0.8-3.1.noarch * xmlgraphics-fop-2.1-1.1.noarch -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1068424 http://bugzilla.suse.com/show_bug.cgi?id=1068424#c2 Joseph Cayouette <jcayouette@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jcayouette@suse.com --- Comment #2 from Joseph Cayouette <jcayouette@suse.com> --- This may help: https://jira.mongodb.org/browse/JAVA-2559 Java 9 introduces overridden methods with covariant return types for the following methods in java.nio.ByteBuffer that are used by the driver: position limit flip clear In Java 9 they all now return ByteBuffer, whereas the methods they override return Buffer, resulting in exceptions like this when executing on Java 8 and lower: java.lang.NoSuchMethodError: java.nio.ByteBuffer.limit(I)Ljava/nio/ByteBuffer This is because the generated byte code includes the static return type of the method, which is not found on Java 8 and lower because the overloaded methods with covariant return types don't exist. The solution is to cast ByteBuffer instances to Buffer before calling the method. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1068424 http://bugzilla.suse.com/show_bug.cgi?id=1068424#c3 Stefan Knorr <sknorr@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fs@suse.com, | |sknorr@suse.com Flags| |needinfo?(fs@suse.com) --- Comment #3 from Stefan Knorr <sknorr@suse.com> --- Frank, has anything changed here? Can we close this? -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1068424 https://bugzilla.suse.com/show_bug.cgi?id=1068424#c4 Thomas Schraitle <thomas.schraitle@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED Flags|needinfo?(fs@suse.com) | --- Comment #4 from Thomas Schraitle <thomas.schraitle@suse.com> --- This is fixed in the latest FOP package version 2.5 in the following patch: https://build.opensuse.org/package/view_file/openSUSE:Factory/xmlgraphics-fo... I think, we can consider it as fixed for the time being. If this is not the case, just reopen it. -- You are receiving this mail because: You are on the CC list for the bug.
participants (2)
-
bugzilla_noreply@novell.com
-
bugzilla_noreply@suse.com