[Debian-med-packaging] Bug#907559: cgview: Does not start

Andreas Tille tille at debian.org
Wed Aug 29 12:56:37 BST 2018


Package: cgview
Severity: grave
Justification: renders package unusable

Hi,

cgview in sid/testing does not start while the same code base in stable
works perfectly.  It just dies with:

$ cgview
Error: Unable to initialize main class ca.ualberta.stothard.cgview.CgviewIO
Caused by: java.lang.NoClassDefFoundError: org/apache/batik/util/XMLConstants


Olivier Sallou suspected that the issue could be caused by the version of
Batik which is 1.8 in stable and 1.10 in testing/sid.  I've checked both
source code and JARs for instance like

$ grep -wl XMLConstants /usr/share/java/batik*
/usr/share/java/batik-all-1.10.jar
/usr/share/java/batik-all.jar
/usr/share/java/batik-constants-1.10.jar
/usr/share/java/batik-constants.jar
/usr/share/java/batik.jar
/usr/share/java/batik-libs.jar

on a machine (testing) where it fails and where cgview works (stable):

$  $ grep -wl XMLConstants /usr/share/java/batik*
/usr/share/java/batik-1.8.jar
/usr/share/java/batik-all-1.8.jar
/usr/share/java/batik-all.jar
/usr/share/java/batik.jar
/usr/share/java/batik-libs-1.8.jar
/usr/share/java/batik-libs.jar
/usr/share/java/batik-util-1.8.jar
/usr/share/java/batik-util.jar

The only interesting difference is that on stable (batik-1.8) the symbol
is inside /usr/share/java/batik-util.jar while it is not any more in
batik 1.10.

The tricky thing is that the string XMLConstants itself is not part of
the cgview source code so simply changing util in something else that
can be found is not possible and may be the bug is simply in one of the
dependencies and not in cgview itself.  That's why I take the freedom to
add Debian Java list in CC of this bug report.

Kind regards

      Andreas.


-- System Information:
Debian Release: 9.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-6-amd64 (SMP w/1 CPU core)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages cgview depends on:
pn  default-jre | java8-runtime  <none>
pn  jarwrapper                   <none>
pn  libbatik-java                <none>
pn  libcommons-lang-java         <none>
pn  libjargs-java                <none>
pn  libxerces2-java              <none>

cgview recommends no packages.

cgview suggests no packages.



More information about the Debian-med-packaging mailing list