freeplane didn't show interface

Bug #1800147 reported by tonton
16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
freeplane (Ubuntu)
Fix Released
Undecided
Unassigned
Bionic
Fix Released
Undecided
Unassigned
knopflerfish-osgi (Ubuntu)
Fix Released
Undecided
Unassigned
Bionic
Fix Released
Undecided
Unassigned

Bug Description

[Impact]

 * freeplane depends on knopflerfish-osgi (libknopflerfish-osgi-framework-java)
   as OSGi runtime

 * libknopflerfish-osgi-framework-java 6.1.1-2 does not set source and
   target level for java. Thus, it will use "11" (or "1.11") when compiled
   with OpenJDK11 (the default in bionic). That's why OpenJDK8 cannot run
   the code.

 * The fix is a very simple backport of 6.1.1-3 (tested in Debian
   unstable): set source and target level to 1.7 (knopflerfish requires
   Java7), see attached debdiff. This is necessary for freeplane to start
   under bionic with Java8.

[Test Case]

 * Run the freeplane package from bionic while having installed and
   selected OpenJDK8. If it fails (this SRU is not applied), you will see:

   Exception in thread "main" java.lang.UnsupportedClassVersionError:
   org/knopflerfish/framework/Main has been compiled by a more recent
   version of the Java Runtime (class file version 53.0), this version of
   the Java Runtime only recognizes class file versions up to 52.0

[Regression Potential]

 * The possible risk is that knopflerfish still does not run under Java8
   and freeplane still does not start.

[Other Info]

 * debdiff is attached

 * Here is the branch for the SRU upload:
   https://salsa.debian.org/java-team/knopflerfish-osgi/tree/bionic-sru

 * Some users have applied one of these two workarounds (while I was preparing this SRU):
   - Install openjdk-9-jdk and choose it (use sudo update-java-alternatives --list/--set ... or set JAVA_HOME)
   - use the upstream .deb

[Original Description]

same as ​
#1791658 freeplane didn't show interface
New (2 comments) last updated 2018-09-22 vi

With Bionic 18.04 and oracel java8

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: freeplane 1.6.13-1
ProcVersionSignature: Ubuntu 4.15.0-38.41-generic 4.15.18
Uname: Linux 4.15.0-38-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.4
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Fri Oct 26 14:59:09 2018
InstallationDate: Installed on 2018-10-24 (1 days ago)
InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
PackageArchitecture: all
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=fr_FR.UTF-8
 SHELL=/bin/bash
SourcePackage: freeplane
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
tonton (virlouette) wrote :
Revision history for this message
tonton (virlouette) wrote :

tonton@x231:~$ freeplane --version
org.knopflerfish.framework.readonly=true
org.knopflerfish.gosg.jars=reference:file:/usr/share/freeplane/core/
org.freeplane.user.dir=/home/tonton
org.freeplane.basedirectory=/usr/share/freeplane
java.security.policy=/usr/share/freeplane/freeplane.policy
org.osgi.framework.storage=/usr/share/freeplane/fwdir
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/knopflerfish/framework/Main has been compiled by a more recent version of the Java Runtime (class file version 53.0), this version of the Java Runtime only recognizes class file versions up to 52.0
 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
 at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
 at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
 at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
 at org.freeplane.launcher.Launcher.run(Launcher.java:127)
 at org.freeplane.launcher.Launcher.launch(Launcher.java:80)
 at org.freeplane.launcher.Launcher.main(Launcher.java:67)

Revision history for this message
Felix Natter (fnatter) wrote :

hi tonton,

this bug was fixed a long time ago (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=895885),
but unfortunately did not make it in for bionic :-(

You can do two things:

1. Install openjdk-9-jdk and choose it (use sudo update-java-alternatives --list/--set ... or set JAVA_HOME)

2. use the upstream .deb:
https://sourceforge.net/projects/freeplane/files/freeplane%20stable/freeplane_1.6.15%7Eupstream-1_all.deb/download
--> download and simply install with "sudo dpkg -i freeplane_1.6.15~upstream-1_all.deb"

Cheers and Best Regards,
Felix

Felix Natter (fnatter)
summary: - freeplane didn't show interface
+ bionic SRU for freeplane [was: freeplane didn't show interface]
summary: - bionic SRU for freeplane [was: freeplane didn't show interface]
+ Bionic freeplane SRU [was: freeplane didn't show interface]
Revision history for this message
Felix Natter (fnatter) wrote : Re: Bionic freeplane SRU [was: freeplane didn't show interface]

[Impact]

 * freeplane depends on knopflerfish-osgi (libknopflerfish-osgi-framework-java)
   as OSGi runtime

 * libknopflerfish-osgi-framework-java 6.1.1-2 does not set source and
   target level for java. Thus, it will use "11" (or "1.11") when compiled
   with OpenJDK11 (the default in bionic). That's why OpenJDK8 cannot run
   the code.

 * The fix is a very simple backport of 6.1.1-3 (tested in Debian
   unstable): set source and target level to 1.7 (knopflerfish requires
   Java7), see attached debdiff. This is necessary for freeplane to start
   under bionic with Java8.

[Test Case]

 * Run the freeplane package from bionic while having installed and
   selected OpenJDK8. If it fails (this SRU is not applied), you will see:

   Exception in thread "main" java.lang.UnsupportedClassVersionError:
   org/knopflerfish/framework/Main has been compiled by a more recent
   version of the Java Runtime (class file version 53.0), this version of
   the Java Runtime only recognizes class file versions up to 52.0

[Regression Potential]

 * The possible risk is that knopflerfish still does not run under Java8
   and freeplane still does not start.

[Other Info]

 * debdiff is attached

 * Here is the branch for the SRU upload:
   https://salsa.debian.org/java-team/knopflerfish-osgi/tree/bionic-sru

 * Some users have applied one of these two workarounds (while I was preparing this SRU):
   - Install openjdk-9-jdk and choose it (use sudo update-java-alternatives --list/--set ... or set JAVA_HOME)
   - use the upstream .deb

Revision history for this message
Felix Natter (fnatter) wrote :

Here is the changelog entry for the SRU:

knopflerfish-osgi (6.1.1-2ubuntu1) bionic-updates; urgency=medium

  * Build with source=1.7 and target=1.7 (LP: 1800147)

 -- Felix Natter <email address hidden> Mon, 12 Nov 2018 14:30:53 +0100

Revision history for this message
Simon Quigley (tsimonq2) wrote :

The bug title doesn't have to say SRU, and the SRU template should go into the bug description. :)

The upload should also be versioned 6.1.1-2ubuntu0.1 (see https://wiki.ubuntu.com/SecurityTeam/UpdatePreparation#Update_the_packaging ) and the upload should be targeted at bionic (except for backports and security).

That being said, sponsored. Thank you for your contribution to Ubuntu!

description: updated
summary: - Bionic freeplane SRU [was: freeplane didn't show interface]
+ freeplane didn't show interface
Revision history for this message
Felix Natter (fnatter) wrote :

hi Simon,

I cannot find the update in bionic nor bionic-updates.
Did I miss something?

Cheers and Best Regards,
Felix

Revision history for this message
Brian Murray (brian-murray) wrote :

Simon's upload was in the unapproved queue for bionic while it awaited review by the SRU team.

tags: added: verification-needed verification-needed-bionic
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello tonton, or anyone else affected,

Accepted knopflerfish-osgi into bionic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/knopflerfish-osgi/6.1.1-2ubuntu0.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-bionic to verification-done-bionic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-bionic. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Revision history for this message
Felix Natter (fnatter) wrote :

hello Brian,

I now tested this myself. I performed these steps (on a bionic machine):
- install openjdk-8-jre and freeplane
- set JAVA_HOME to the jre-8
- run freeplane -> fails with java.lang.UnsupportedClassVersionError
- wget http://launchpadlibrarian.net/399333033/libknopflerfish-osgi-framework-java_6.1.1-2ubuntu0.1_all.deb
- sudo dpkg -i libknopflerfish-osgi-framework-java_6.1.1-2ubuntu0.1_all.deb
- run freeplane -> works

Cheers and Best Regards,
Felix

Felix Natter (fnatter)
tags: added: verification-done-bionic
removed: verification-needed-bionic
Changed in knopflerfish-osgi (Ubuntu):
status: New → Fix Committed
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package knopflerfish-osgi - 6.1.1-2ubuntu0.1

---------------
knopflerfish-osgi (6.1.1-2ubuntu0.1) bionic; urgency=medium

  * Build with source=1.7 and target=1.7 (LP: #1800147).

 -- Felix Natter <email address hidden> Mon, 12 Nov 2018 14:30:53 +0100

Changed in knopflerfish-osgi (Ubuntu Bionic):
status: New → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote : Update Released

The verification of the Stable Release Update for knopflerfish-osgi has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Felix Natter (fnatter)
Changed in freeplane (Ubuntu):
status: New → Fix Released
Changed in freeplane (Ubuntu Bionic):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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