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 - Starting Dev on JDK9 crashes with SecurityException:setContextClassLoader - InnocuousThread
Summary: Starting Dev on JDK9 crashes with SecurityException:setContextClassLoader - I...
Alias: None
Product: platform
Classification: Unclassified
Component: Module System (show other bugs)
Version: 8.2
Hardware: PC Linux
: P2 normal (vote)
Assignee: Tomas Hurka
Keywords: JDK_9, VISUALVM
Depends on:
Reported: 2016-04-13 12:33 UTC by Martin Balin
Modified: 2016-10-02 02:51 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
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/
	at org.netbeans.ModuleManager.updateContextClassLoaders(
	at org.netbeans.ModuleManager.<init>(
	at org.netbeans.core.startup.ModuleSystem.<init>(
	at org.netbeans.core.startup.Main.getModuleSystem(
	at org.netbeans.core.startup.Main.getModuleSystem(
	at org.netbeans.core.startup.Main.start(

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 <>
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

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?