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

Summary: UnsupportedOperationException: not running in regular module system, cannot restart
Product: platform Reporter: brettryan <brettryan>
Component: Module SystemAssignee: Tomas Hurka <thurka>
Status: NEW ---    
Severity: normal CC: lzgrillo, tveimo, Vlken
Priority: P3    
Version: Dev   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 226452
Attachments: stacktrace

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.