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 254669 - IllegalStateException: Module org.netbeans.modules.java.source.base is already enabled
Summary: IllegalStateException: Module org.netbeans.modules.java.source.base is alread...
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Autoupdate (show other bugs)
Version: 8.1
Hardware: All All
: P2 normal (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-24 19:47 UTC by ent38
Modified: 2015-09-26 16:41 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 219403


Attachments
stacktrace (6.47 KB, text/plain)
2015-08-24 19:47 UTC, ent38
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ent38 2015-08-24 19:47:50 UTC
This bug was originally marked as duplicate of bug 247884, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.1 Beta (Build 201508041349)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.60-b23, Java(TM) SE Runtime Environment, 1.8.0_60-b27
OS: Windows 8.1

User Comments:
ent38: Install a plugin from update center; deactivate it; restart; try to reactivate it: it fails.




Stacktrace: 
java.lang.IllegalStateException: Module org.netbeans.modules.java.source.base is already enabled
   at org.netbeans.ModuleManager.attachModuleFragment(ModuleManager.java:1019)
   at org.netbeans.ModuleManager.maybeAddToEnableList(ModuleManager.java:1585)
   at org.netbeans.ModuleManager.maybeAddToEnableList(ModuleManager.java:1595)
   at org.netbeans.ModuleManager.simulateEnable(ModuleManager.java:1534)
   at org.netbeans.ModuleManager.simulateEnable(ModuleManager.java:1508)
   at org.netbeans.modules.autoupdate.services.OperationValidator$EnableValidator.getModulesToEnable(OperationValidator.java:363)
Comment 1 ent38 2015-08-24 19:47:52 UTC
Created attachment 155596 [details]
stacktrace
Comment 2 Jiri Kovalsky 2015-08-26 18:18:26 UTC
Reproduce with TikiOne JaCoCoverage plugin [1].

[1] http://plugins.netbeans.org/plugin/48570
Comment 3 Tomas Hurka 2015-09-02 14:41:07 UTC
This could be fixed by forcing IDE restart in plugin manager. Similarly to importing modules from older version. Reassigning to platform/autoupdate.
Comment 4 ent38 2015-09-12 14:35:33 UTC
Reproducible with many plugins (last tested: CodenameOne).

Restart IDE doesn't help, I still get the bug.
For CodenameOne plugin, I get an exception that says plugin is already activated.
Comment 5 Libor Fischmeistr 2015-09-23 12:02:56 UTC
Partial fix - http://hg.netbeans.org/core-main/rev/bbe5ae2a5610

The IDE requires to restart after enabling such plugins.

The problem is when user selects to restart later. Then the plugin is enabled and some new errors may occur. After restart everything should be fine.
Comment 6 Jiri Kovalsky 2015-09-23 13:09:56 UTC
Thanks Libor. Jonathan, can you please try to verify the bug fix after it's available in the next development build?
Comment 7 Quality Engineering 2015-09-24 01:28:39 UTC
Integrated into 'main-silver', will be available in build *201509240002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/bbe5ae2a5610
User: Libor Fischmeistr <lfischmeistr@netbeans.org>
Log: #254669: IllegalStateException: Module org.netbeans.modules.java.source.base is already enabled
Comment 8 ent38 2015-09-25 19:38:05 UTC
Tested with the latest devbuild (201509250002): it works fine!
Thx.
Comment 9 Jiri Kovalsky 2015-09-26 16:41:42 UTC
Thanks, verifying!