Bug#613808: fop: crashes with "java.lang.UnsupportedClassVersionError: Bad version number in .class file"
Roger Casaponsa
casaponsa at gmail.com
Thu Feb 17 12:02:08 UTC 2011
Package: fop
Version: 1:0.95.dfsg-11
Severity: important
fop crashes, even withou any argument:
server$ fop
[ERROR] SVGElementMapping - Error while initializing the Batik SVG extensions
<java.lang.UnsupportedClassVersionError: Bad version number in .class
file>java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at
org.apache.fop.fo.extensions.svg.SVGElementMapping.initialize(SVGElementMapping.java:80)
at org.apache.fop.fo.ElementMapping.getTable(ElementMapping.java:52)
at
org.apache.fop.fo.ElementMappingRegistry.addElementMapping(ElementMappingRegistry.java:117)
at
org.apache.fop.fo.ElementMappingRegistry.addElementMapping(ElementMappingRegistry.java:96)
at
org.apache.fop.fo.ElementMappingRegistry.setupDefaultMappings(ElementMappingRegistry.java:77)
at
org.apache.fop.fo.ElementMappingRegistry.<init>(ElementMappingRegistry.java:64)
at org.apache.fop.apps.FopFactory.<init>(FopFactory.java:151)
at org.apache.fop.apps.FopFactory.newInstance(FopFactory.java:166)
at
org.apache.fop.cli.CommandLineOptions.<init>(CommandLineOptions.java:102)
at org.apache.fop.cli.Main.startFOP(Main.java:153)
at org.apache.fop.cli.Main.main(Main.java:197)
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version
number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at
org.apache.fop.image.loader.batik.BatikUtil.isBatikAvailable(BatikUtil.java:33)
at
org.apache.fop.image.loader.batik.ImageLoaderFactorySVG.isAvailable(ImageLoaderFactorySVG.java:60)
at
org.apache.xmlgraphics.image.loader.spi.ImageImplRegistry.registerLoaderFactory(ImageImplRegistry.java:163)
at
org.apache.xmlgraphics.image.loader.spi.ImageImplRegistry.discoverClasspathImplementations(ImageImplRegistry.java:97)
at
org.apache.xmlgraphics.image.loader.spi.ImageImplRegistry.<init>(ImageImplRegistry.java:70)
at
org.apache.xmlgraphics.image.loader.spi.ImageImplRegistry.getDefaultInstance(ImageImplRegistry.java:79)
at
org.apache.xmlgraphics.image.loader.ImageManager.<init>(ImageManager.java:48)
at org.apache.fop.apps.FopFactory.<init>(FopFactory.java:154)
at org.apache.fop.apps.FopFactory.newInstance(FopFactory.java:166)
at
org.apache.fop.cli.CommandLineOptions.<init>(CommandLineOptions.java:102)
at org.apache.fop.cli.Main.startFOP(Main.java:153)
at org.apache.fop.cli.Main.main(Main.java:197)
The first exception occurs after apply the "quick fix" explained in the bug
#575411:
A quick fix is to add either :
-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog
if you need more information, just ask.
thanks
-- System Information:
Debian Release: 6.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=ca_ES.UTF-8, LC_CTYPE=ca_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages fop depends on:
ii gij-4.3 [java2-run 4.3.2-2 The GNU Java bytecode interpreter
ii java-gcj-compat-he 1.0.78-2 Java runtime environment using GIJ
ii java-wrappers 0.1.16 wrappers for java executables
ii libavalon-framewor 4.2.0-7 Common framework for Java server a
ii libbatik-java 1.7-6 xml.apache.org SVG Library
ii libbsf-java 1:2.4.0-4 Bean Scripting Framework to suppor
ii libcommons-io-java 1.4-3 Common useful IO related classes
ii libcommons-logging 1.1.1-8 commmon wrapper interface for seve
ii libxalan2-java 2.7.1-5 XSL Transformations (XSLT) process
ii libxerces2-java 2.9.1-4.1 Validating XML parser for Java wit
ii libxml-commons-ext 1.3.05-2 XML Commons external code - DOM, S
ii libxmlgraphics-com 1.3.1.dfsg-5 reusable components used by Batik
ii libxp6 1:1.0.0.xsf1-2 X Printing Extension (Xprint) clie
ii libxt6 1:1.0.7-1 X11 toolkit intrinsics library
ii libxtst6 2:1.1.0-3 X11 Testing -- Record extension li
ii openjdk-6-jre-head 6b18-1.8.3-2+squeeze1 OpenJDK Java runtime, using Hotspo
ii sun-java5-jre [jav 1.5.0-22-0lenny1 Sun Java(TM) Runtime Environment (
ii sun-java6-jre [jav 6.22-1 Sun Java(TM) Runtime Environment (
Versions of packages fop recommends:
ii libsaxon-java 1:6.5.5-6 The Saxon XSLT Processor
Versions of packages fop suggests:
pn fop-doc <none> (no description available)
pn libservlet2.4-java <none> (no description available)
-- no debconf information
More information about the pkg-java-maintainers
mailing list