Bug#1069015: libnb-platform18-java is unable to set security manager with default Java 21

Vladimir Petko vpa1977 at gmail.com
Mon Apr 15 07:25:26 BST 2024


Source: libnb-platform18-java
Version: 12.1-2
Severity: important
User: debian-java at lists.debian.org
Usertags: default-java21

Dear Maintainers,

When preparing an upgrade to VisualVM 2.1.8 I encountered the following exception:
--
$visualvm
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:430)
 at org.netbeans.TopSecurityManager.install(Unknown Source)
 at org.netbeans.core.NbLifecycleManager.advancePolicy(Unknown Source)
 at org.netbeans.core.GuiRunLevel.run(Unknown Source)
 at org.netbeans.core.startup.Main.start(Unknown Source)
 at org.netbeans.core.startup.TopThreadGroup.run(Unknown Source)
 at java.base/java.lang.Thread.run(Thread.java:1583)

---

This is caused by Java 21 changes to SecurityManager and is already fixed upstream[1]

[1] https://github.com/apache/netbeans/commit/4c9d9492f70b09aaeae2b8b10fc26ae29433d667


-- System Information:
Debian Release: trixie/sid
  APT prefers mantic-updates
  APT policy: (500, 'mantic-updates'), (500, 'mantic-security'), (500, 'mantic'), (100, 'mantic-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-27-generic (SMP w/32 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled



More information about the pkg-java-maintainers mailing list