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 270671 - UnsupportedOperationException: not running in regular module system, cannot restart
Summary: UnsupportedOperationException: not running in regular module system, cannot r...
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Module System (show other bugs)
Version: Dev
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Hurka
Depends on:
Reported: 2017-05-17 23:01 UTC by brettryan
Modified: 2017-06-04 08:43 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 226452

stacktrace (8.18 KB, text/plain)
2017-05-17 23:01 UTC, brettryan

Note You need to log in before you can comment on or make changes to this bug.
Description brettryan 2017-05-17 23:01:35 UTC
Build: NetBeans IDE Dev (Build 201705170001)
VM: Java HotSpot(TM) 64-Bit Server VM, 9-ea+169, Java(TM) SE Runtime Environment, 9-ea+169
OS: Mac OS X

User Comments:
lzgrillo: Error at import plugins

GUEST: After starting NB under JDK 9 EA (b147), I was offered to import a couple plugins from my NB 8.2 installation.  I checked "Darcula" and clicked on import.  Crash.

GUEST: Tried to import plugins from 8.2 instance into dev build.  Aside from a couple plugins that were supported, I also checked "Darcula" and hit "Import".  That's when exception occured.

GUEST: During import of plugins from Netbeans 8.2 stable

brettryan: Accepted an import for the h2 module.

GUEST: fresh install:
imported plugins from prev version, and wanted to restart.

tveimo: selected some plugins to import from previous installation. failed when agreeing to restart.

java.lang.UnsupportedOperationException: not running in regular module system, cannot restart
   at org.netbeans.core.startup.ModuleLifecycleManager.markReadyForRestart(
   at org.netbeans.core.startup.ModuleSystem.markForRestart(
   at org.netbeans.core.NbLifecycleManager.markForRestart(
   at org.netbeans.modules.autoupdate.pluginimporter.PluginImporter.importPlugins(
   at org.netbeans.modules.autoupdate.pluginimporter.ImportManager.doImport(
   at org.netbeans.modules.autoupdate.pluginimporter.ImportManager.access$200(
Comment 1 brettryan 2017-05-17 23:01:38 UTC
Created attachment 164343 [details]
Comment 2 brettryan 2017-05-17 23:41:29 UTC
My bad, fresh install and forgot to update netbeans.conf, JDK 9 got picked up.

That raises a query I've had for a while though, would be good to have a user netbeans.conf that could override the installed netbeans.conf.