This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 258808

Summary: Starting Dev on JDK9 crashes with SecurityException:setContextClassLoader - InnocuousThread
Product: platform Reporter: Martin Balin <mbalin>
Component: Module SystemAssignee: Tomas Hurka <thurka>
Status: RESOLVED FIXED    
Severity: normal Keywords: JDK_9, VISUALVM
Priority: P2    
Version: 8.2   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Martin Balin 2016-04-13 12:33:13 UTC
Attempt to launch Dev on JDK9 EA build 113 throws following exception:

java.lang.SecurityException: setContextClassLoader
	at jdk.internal.misc.InnocuousThread.setContextClassLoader(java.base@9-ea/InnocuousThread.java:104)
	at org.netbeans.ModuleManager.updateContextClassLoaders(ModuleManager.java:476)
	at org.netbeans.ModuleManager.<init>(ModuleManager.java:169)
	at org.netbeans.core.startup.ModuleSystem.<init>(ModuleSystem.java:109)
	at org.netbeans.core.startup.Main.getModuleSystem(Main.java:169)
	at org.netbeans.core.startup.Main.getModuleSystem(Main.java:150)
	at org.netbeans.core.startup.Main.start(Main.java:307)
	at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:123)
	at java.lang.Thread.run(java.base@9-ea/Thread.java:804)

This should be fixed in Jigsaw/JDK9EA since b110 but it is not...
Comment 1 Tomas Hurka 2016-04-21 10:22:24 UTC
JDK bug workarounded by the following changeset:

changeset:   296166:60ccf11ee887
user:        Tomas Zezula <tzezula@netbeans.org>
date:        Thu Apr 14 15:48:23 2016 +0200
summary:     java.lang.SecurityException: setContextClassLoader
Comment 2 siva.kalagarla 2016-10-02 02:51:01 UTC
Hello,

I just downloaded 8.2RC and I see this exception happening in Mac.  May I know if there is a work around for this issue?

Regards,
Siva.