Bug#1030150: freeplane fails to start with java 18 (openJDK 18)

Jonas Andradas j.andradas at gmail.com
Tue Jan 31 16:42:15 GMT 2023


Package: freeplane
Version: 1.7.10-1
Severity: important
X-Debbugs-Cc: j.andradas at gmail.com

Dear Maintainer,

freeplane fails to start if invoked with Java 18 (OpenJDK 18), due to the
Security Manager being deprecated, apparently.

It still loads fine with OpenJDK 17, but the launch script just seems to use
the default Java in the system (/etc/alternatives/java), which can lead to
issues, as it would not start with later versions of OpenJDK.

It would probably make sense to restrict the Java version used, so if a
previous, working version is available, use that, until freeplane is able to
work under newer Java versions.

The observed error can be found below:

~~~~
*org.knopflerfish.framework.readonly=true
*org.knopflerfish.gosg.jars=reference:file:/usr/share/freeplane/core/
*org.freeplane.user.dir=/home/jonas/tools/intune/browsercore-linux
*org.freeplane.basedirectory=/usr/share/freeplane
*org.freeplane.globalresourcedir=/usr/share/freeplane/resources
*java.security.policy=/usr/share/freeplane/freeplane.policy
*org.osgi.framework.storage=/usr/share/freeplane/fwdir
Exception in thread "main" java.lang.UnsupportedOperationException: The
Security Manager is deprecated and will be removed in a future release
        at java.base/java.lang.System.setSecurityManager(System.java:416)
        at
org.freeplane.launcher.Launcher.launchWithoutUICheck(Launcher.java:279)
        at org.freeplane.launcher.Launcher.main(Launcher.java:87)

~~~~

Thank you very much in advance,
Best Regards,
Jonas.


-- Package-specific info:
[debug] /usr/bin/freeplane: Picking up the JVM designated by the alternatives system: 
[debug] /usr/bin/freeplane:   JAVA_HOME = '/usr/lib/jvm/java-18-openjdk-amd64'
[debug] /usr/bin/freeplane: Found JAVA_HOME = '/usr/lib/jvm/java-18-openjdk-amd64'
[debug] /usr/bin/freeplane: Found JAVA_CMD = '/usr/lib/jvm/java-18-openjdk-amd64/bin/java'
DEBUG:   Freeplane parameters are ''.
DEBUG:   Linux darkstar 6.1.0-2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.7-1 (2023-01-18) x86_64 GNU/Linux
DEBUG:   Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.1 LTS
Release:	22.04
Codename:	jammy
DEBUG:   The following DEB packages are installed:
ii  freeplane                                                   1.7.10-1                                                     all          Java program for working with Mind Maps
DEBUG:   Link '/usr/bin/freeplane' resolved to '/usr/share/freeplane/freeplane.sh'.
DEBUG:   Freeplane Directory is '/usr/share/freeplane'.
DEBUG:   Calling: /usr/lib/jvm/java-18-openjdk-amd64/bin/java
         -Xmx512m
         -Dorg.freeplane.basedirectory=/usr/share/freeplane
         -Dorg.freeplane.userfpdir=/home/jonas/.config/freeplane
         -Dorg.freeplane.old_userfpdir=/home/jonas/.freeplane
         -Dorg.freeplane.globalresourcedir=/usr/share/freeplane/resources
         -Dswing.systemlaf=javax.swing.plaf.metal.MetalLookAndFeel
         -Dorg.freeplane.os.lib.ext=/usr/share/java
         -Dawt.useSystemAAFontSettings=on
         -Dswing.aatext=true
         -Dgnu.java.awt.peer.gtk.Graphics=Graphics2D
         -jar
         /usr/share/freeplane/freeplanelauncher.jar

-- System Information:
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.1 LTS
Release:	22.04
Codename:	jammy
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.1.0-2-amd64 (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages freeplane depends on:
ii  darcula                              2018.2-2
ii  default-jre [java8-runtime]          2:1.17-74
ii  groovy                               2.4.21-7
ii  ivy                                  2.5.1-2
ii  javahelp2                            2.0.05.ds1-10
ii  jmapviewer                           2.16+dfsg-2
ii  libavalon-framework-java             4.2.0-10
ii  libbatik-java                        1.16+dfsg-1
ii  libcommons-codec-java                1.15-1
ii  libcommons-io-java                   2.11.0-2
ii  libcommons-lang-java                 2.6-10
ii  libcommons-logging-java              1.2-3
ii  libdata-url-java                     1.0.1-2
ii  libfop-java                          1:2.8-2
ii  libiconloader-java                   0.0+git20170615+dfsg1-2
ii  libidw-java                          1.6.1-1.1
ii  libjaxp1.3-java                      1.3.05-6
ii  libjgoodies-forms-java               1.9.0-3.1
ii  libjlatexmath-java                   1.0.7-3
ii  libjsyntaxpane-java                  0.9.6~r156-7.1
ii  libknopflerfish-osgi-framework-java  6.1.1-3.1
ii  libmnemonicsetter-java               0.5-1.1
ii  librhino-java                        1.7.7.2-3
ii  libsvgsalamander-java                1.1.4-1
ii  libxerces2-java                      2.12.2-1
ii  libxml-commons-external-java         1.4.01-5
ii  libxmlgraphics-commons-java          2.8-2
ii  openjdk-11-jre [java8-runtime]       11.0.18+10-1
ii  openjdk-17-jre [java8-runtime]       17.0.6+10-1
ii  openjdk-18-jre [java8-runtime]       18.0.2+9-2
ii  simplyhtml                           0.17.3+dfsg1-1

Versions of packages freeplane recommends:
ii  java-wrappers  0.4
ii  xdg-utils      1.1.3-4.1

Versions of packages freeplane suggests:
pn  freeplane-scripting-api  <none>

-- no debconf information



More information about the pkg-java-maintainers mailing list