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 271545 - UnsupportedOperationException: not running in regular module system, cannot restart
Summary: UnsupportedOperationException: not running in regular module system, cannot r...
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Module System (show other bugs)
Version: Dev
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Hurka
URL:
Keywords: JDK_9
Depends on:
Blocks:
 
Reported: 2017-09-28 11:05 UTC by Exceptions Reporter
Modified: 2017-10-04 02:17 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 228127


Attachments
stacktrace (3.25 KB, text/plain)
2017-09-28 11:06 UTC, Exceptions Reporter
Details
stacktrace (3.25 KB, text/plain)
2017-10-02 18:38 UTC, _ gtzabari
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2017-09-28 11:05:59 UTC
Build: NetBeans IDE Dev (Build 201709280002)
VM: Java HotSpot(TM) 64-Bit Server VM, 9+181, Java(TM) SE Runtime Environment, 9+181
OS: Linux

User Comments:
gtzabari: Imported old configuration into Netbeans running JDK9.

GUEST: when i reload the setting from file

rudyment: Error occurred while importing options saved by NB 8.2

GUEST: Tried to import color settings

GUEST: import saved config

rudyment: Exception occurred during import of a configuration from NB 8.2.




Stacktrace: 
java.lang.UnsupportedOperationException: not running in regular module system, cannot restart
   at org.netbeans.core.startup.ModuleLifecycleManager.markReadyForRestart(ModuleLifecycleManager.java:124)
   at org.netbeans.core.startup.ModuleSystem.markForRestart(ModuleSystem.java:518)
   at org.netbeans.core.NbLifecycleManager.markForRestart(NbLifecycleManager.java:231)
   at org.netbeans.modules.options.export.OptionsChooserPanel.showImportDialog(OptionsChooserPanel.java:334)
   at org.netbeans.modules.options.OptionsDisplayerImpl$4.actionPerformed(OptionsDisplayerImpl.java:283)
   at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967)
Comment 1 Exceptions Reporter 2017-09-28 11:06:04 UTC
Created attachment 165199 [details]
stacktrace
Comment 2 _ gtzabari 2017-10-02 18:38:40 UTC
Created attachment 165227 [details]
stacktrace

Launched Netbeans under JDK9.
Comment 3 Tomas Hurka 2017-10-03 12:21:04 UTC
This exception happens when NetBeans is running on JDK 9. The problem is caused by different class loader name in JDK 9. See issue #178288.
Comment 4 Tomas Hurka 2017-10-03 12:24:44 UTC
Fixed in profiler-main

changeset:   304117:e2bd299bcb89
user:        Tomas Hurka <thurka@netbeans.org>
date:        Tue Oct 03 14:22:50 2017 +0200
summary:     bugfix #271545, JDK 9 has different class loader name
Comment 5 Quality Engineering 2017-10-04 02:17:41 UTC
Integrated into 'main-silver', will be available in build *201710040002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/e2bd299bcb89
User: Tomas Hurka <thurka@netbeans.org>
Log: bugfix #271545, JDK 9 has different class loader name