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
URL:
Keywords:
Depends on:
Blocks:
 
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


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

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.




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.autoupdate.pluginimporter.PluginImporter.importPlugins(PluginImporter.java:269)
   at org.netbeans.modules.autoupdate.pluginimporter.ImportManager.doImport(ImportManager.java:270)
   at org.netbeans.modules.autoupdate.pluginimporter.ImportManager.access$200(ImportManager.java:89)
Comment 1 brettryan 2017-05-17 23:01:38 UTC
Created attachment 164343 [details]
stacktrace
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.