batik is crashing (libbatik-java)

Bug #579710 reported by Toufik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
batik (Debian)
Fix Released
Unknown
batik (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: libbatik-java

Ubuntu Version : Ubuntu 9.10

$ apt-cache policy libbatik-java
libbatik-java:
  Installed: 1.7.ubuntu-4ubuntu1
  Candidate: 1.7.ubuntu-4ubuntu1
  Version table:
 *** 1.7.ubuntu-4ubuntu1 0
        500 http://nz.archive.ubuntu.com karmic/universe Packages
        100 /var/lib/dpkg/status

The repository version of batik (libbatik-java package) is crashing. Note that the official version from http://xmlgraphics.apache.org/batik/ (same version mumber) works fine

$ java -jar /usr/share/java/batik.jar
Exception in thread "main" java.lang.NoClassDefFoundError: org/w3c/dom/svg/SVGDocument
 at java.lang.Class.getDeclaredMethods0(Native Method)
 at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
 at java.lang.Class.getDeclaredMethod(Class.java:1935)
 at java.awt.Component.isCoalesceEventsOverriden(Component.java:5948)
 at java.awt.Component.access$500(Component.java:169)
 at java.awt.Component$3.run(Component.java:5902)
 at java.awt.Component$3.run(Component.java:5900)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.awt.Component.checkCoalescing(Component.java:5899)
 at java.awt.Component.<init>(Component.java:5868)
 at java.awt.Container.<init>(Container.java:251)
 at java.awt.Window.<init>(Window.java:431)
 at java.awt.Frame.<init>(Frame.java:403)
 at java.awt.Frame.<init>(Frame.java:368)
 at javax.swing.JFrame.<init>(JFrame.java:158)
 at org.apache.batik.apps.svgbrowser.JSVGViewerFrame.<init>(Unknown Source)
 at org.apache.batik.apps.svgbrowser.Main.<init>(Unknown Source)
 at org.apache.batik.apps.svgbrowser.Main.main(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.w3c.dom.svg.SVGDocument
 at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
 ... 18 more

Changed in batik (Ubuntu):
status: New → Confirmed
Revision history for this message
Andrew Ross (rockclimb) wrote :

As a workaround you can just run /usr/bin/squiggle which sets up your classpath for you. This is probably fixable by adding some extra jar files to the classpath in the manifest. I'll look into it.

Changed in batik (Debian):
status: Unknown → New
Changed in batik (Debian):
status: New → Incomplete
Changed in batik (Debian):
status: Incomplete → Confirmed
Changed in batik (Debian):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.