Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#866980: [Debian-med-packaging] Bug#866980: biomaj-watcher: fails to upgrade from 'jessie': Exception in thread "main" java.lang.UnsupportedClassVersionError: WatcherConfigurator : Unsupported major.minor version 52.0

3 views
Skip to first unread message

Olivier Sallou

unread,
Jul 3, 2017, 5:20:03 AM7/3/17
to

this kind of error is linked to Java jdk/jre version.

Seems java compiled version does not match the installed JRE/Java. Certainly related to a default Java version in Stretch different from Jessie (upgraded with dist-upgrade).


On 07/03/2017 10:59 AM, Andreas Beckmann wrote:
Package: biomaj-watcher
Version: 1.2.2-4
Severity: serious
User: debi...@lists.debian.org
Usertags: piuparts

Hi,

during a test with piuparts I noticed your package fails to upgrade from
'jessie'.
It installed fine in 'jessie', then the upgrade to 'stretch' fails.

>From the attached log (scroll to the bottom...):

  Setting up biomaj-watcher (1.2.2-4) ...
  Exception in thread "main" java.lang.UnsupportedClassVersionError: WatcherConfigurator : Unsupported major.minor version 52.0
  	at java.lang.ClassLoader.defineClass1(Native Method)
  	at java.lang.ClassLoader.defineClass(ClassLoader.java:803)
  	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
  	at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
  	at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
  	at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
  	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
  	at java.security.AccessController.doPrivileged(Native Method)
  	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
  	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
  	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
  	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
  	at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
  dpkg: error processing package biomaj-watcher (--configure):
   subprocess installed post-installation script returned error exit status 1


This was observed while doing two-stage upgrade tests:
  apt-get upgrade && apt-get dist-upgrade
during the apt-get upgrade phase.
A one-stage upgrade (only apt-get dist-upgrade) works fine.

There is probably an insufficiently versioned Depends (or Breaks) ...
but I have no idea which package could be meant with 
  Unsupported major.minor version 52.0


cheers,

Andreas


_______________________________________________
Debian-med-packaging mailing list
Debian-med...@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-packaging

-- 
Olivier Sallou
IRISA / University of Rennes 1
Campus de Beaulieu, 35000 RENNES - FRANCE
Tel: 02.99.84.71.95

gpg key id: 4096R/326D8438  (keyring.debian.org)
Key fingerprint = 5FB4 6F83 D3B9 5204 6335  D26D 78DC 68DB 326D 8438

Olivier Sallou

unread,
Jul 3, 2017, 5:50:03 AM7/3/17
to

seems to work if jdk 8 is installed, problem looks related to running it against an existing jdk7, though was default previsouly....

Olivier Sallou

unread,
Jul 3, 2017, 6:00:03 AM7/3/17
to
confirmation: biomaj-watcher has been compiled with jdk8

on upgrades, if jdk7 is installed, it will fail to execute/install

in case of upgrade, we switch from jdk7 to jdk8, but install is first
made against jdk7.

jdk must be upgraded first, then biomaj-watcher can be installed.



Solution would be to compile (d/rules) WatcherConfigurator and
UpdateToBiomaj java files with source and target options to 1.5.

No impact on stretch directly as default is jdk 1.8.

A patch could be done on jessie-backports to fix the upgrade issue, but
backports need to be set in apt sources....
0 new messages