libnb-platform18-java is unable to set security manager with default jdk

Bug #2061363 reported by Vladimir Petko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libnb-platform18-java (Debian)
Fix Released
Unknown
libnb-platform18-java (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

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 and is already fixed upstream[1]

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

Related branches

Vladimir Petko (vpa1977)
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libnb-platform18-java - 12.1-2ubuntu1

---------------
libnb-platform18-java (12.1-2ubuntu1) noble; urgency=medium

  * d/p/allow-security-manager.patch: cherry-pick upstream patch to
    allow setting Java Security Manager (LP: #2061363).

 -- Vladimir Petko <email address hidden> Tue, 16 Apr 2024 08:20:35 +1200

Changed in libnb-platform18-java (Ubuntu):
status: New → Fix Released
Changed in libnb-platform18-java (Debian):
status: Unknown → 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.