Bad java class file version for collectd java plugin

Bug #1824423 reported by Pierre POMES
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
collectd (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Hi,

Since update to collectd 5.7.2-2ubuntu1.1 in ubuntu bionic, java plugin for collectd does not work anymore, with the following error:

Exception in thread "main" java.lang.UnsupportedClassVersionError: org/collectd/api/Collectd has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 54.0

At the time of writing (2019/04/11), the openjdk-11* packages still install openjdk10, which support only class file versions up to 54.0.

Note this is only a build problem: I was able to rebuild the collectd* packages from source, on a fresh 18.04 box, and the problem was solved (jar files installed /usr/share/collectd/java are in version 54).

Regards,
Pierre

Revision history for this message
Eric Desrochers (slashd) wrote :

Having a quick look at the build log of collectd for '5.7.2-2ubuntu1.1'.
Collectd has been build on top of openjdk-11-* found in bionic-proposed '11.0.2+9-3ubuntu1~18.04.*'

# Build Log
Link: https://launchpadlibrarian.net/416916001/buildlog_ubuntu-bionic-amd64.collectd_5.7.2-2ubuntu1.1_BUILDING.txt.gz
.....
Get:163 http://ftpmaster.internal/ubuntu bionic-proposed/main amd64 openjdk-11-jre amd64 11.0.2+9-3ubuntu1~18.04.2 [34.4 kB]
Get:164 http://ftpmaster.internal/ubuntu bionic-proposed/main amd64 default-jre amd64 2:1.11-68ubuntu1~18.04.1 [1076 B]
Get:165 http://ftpmaster.internal/ubuntu bionic-proposed/main amd64 openjdk-11-jdk-headless amd64 11.0.2+9-3ubuntu1~18.04.2 [192 MB]
Get:166 http://ftpmaster.internal/ubuntu bionic-proposed/main amd64 default-jdk-headless amd64 2:1.11-68ubuntu1~18.04.1 [1132 B]
Get:167 http://ftpmaster.internal/ubuntu bionic-proposed/main amd64 openjdk-11-jdk amd64 11.0.2+9-3ubuntu1~18.04.2 [1676 kB]
Get:168 http://ftpmaster.internal/ubuntu bionic-proposed/main amd64 default-jdk amd64 2:1.11-68ubuntu1~18.04.1 [1092 B]
....

Since then a few iterations has been made most likely due to regressions:

$ rmadison openjdk-11-jdk | grep -i bionic
 openjdk-11-jdk | 10.0.1+10-3ubuntu1 | bionic
 openjdk-11-jdk | 10.0.2+13-1ubuntu0.18.04.4 | bionic-security
 openjdk-11-jdk | 10.0.2+13-1ubuntu0.18.04.4 | bionic-updates
 openjdk-11-jdk | 11.0.2+9-3ubuntu1~18.04.3 | bionic-proposed

See the LP bug for the java transition:
https://bugs.launchpad.net/ubuntu/+source/saaj/+bug/1814133

I haven't investigate further, but I suspect it just a matter to wait for the #1814133 SRU to be completed, clear all regressions found and moving from bionic-proposed to bionic-updates.

On 'Fix Released' let's re-evaluate if collectd need a rebuild or if everything works fine.

- Eric

Changed in collectd (Ubuntu):
status: New → Confirmed
Revision history for this message
Steffy (fe80) wrote :

Up ?

Revision history for this message
Pierre POMES (ppomes) wrote :

I forgot to mention that a fews days after my initial report, as Eric explained, openjdk11 has been released with java11, and collectd java plugin was ok.

This bug can be closed.

Pierre

Changed in collectd (Ubuntu):
status: Confirmed → Invalid
Eric Desrochers (slashd)
Changed in collectd (Ubuntu):
status: Invalid → 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.