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 250753 - IllegalArgumentException: Not enabled: com.junichi11.netbeans.changelf
Summary: IllegalArgumentException: Not enabled: com.junichi11.netbeans.changelf
Status: RESOLVED FIXED
Alias: None
Product: updatecenters
Classification: Unclassified
Component: Pluginportal (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: attila.kelemen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-27 08:22 UTC by Exceptions Reporter
Modified: 2015-03-02 15:38 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 210060


Attachments
stacktrace (2.09 KB, text/plain)
2015-02-27 08:22 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2015-02-27 08:22:20 UTC
This issue was reported manually by dlipin.
It already has 2 duplicates 


Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.51-b04, Java(TM) SE Runtime Environment, 1.7.0_51-b34
OS: Linux

User Comments:
GUEST: Invoked Properties item in right-click menu on gradle project

GUEST: Click in project navigator (gradle single project), in project name, right click, Open properties.




Stacktrace: 
java.lang.IllegalArgumentException: Not enabled: com.junichi11.netbeans.changelf
   at org.netbeans.Module.getClassLoader(Module.java:442)
   at org.netbeans.gradle.project.others.PluginClassFactory.tryGetModuleClassLoader(PluginClassFactory.java:41)
   at org.netbeans.gradle.project.others.PluginClassFactory.tryFindClass(PluginClassFactory.java:46)
   at org.netbeans.gradle.project.others.PluginClass.tryGetClass(PluginClass.java:24)
   at org.netbeans.gradle.project.others.PluginLookupMethod.tryCall(PluginLookupMethod.java:22)
   at org.netbeans.gradle.project.others.ChangeLFPlugin.getProjectSettings(ChangeLFPlugin.java:40)
Comment 1 Exceptions Reporter 2015-02-27 08:22:22 UTC
Created attachment 152266 [details]
stacktrace
Comment 2 Tomas Hurka 2015-02-27 08:39:36 UTC
This looks like a problem in gradle support. Reassigning
Comment 3 Jiri Kovalsky 2015-02-27 09:03:57 UTC
Attila, can you please take a look at this problem? It seems like your plugin's [1] fault.

[1] http://plugins.netbeans.org/plugin/44510

Also Cc:ing Junichi's as his code is involved in the stacktrace too.
Comment 4 attila.kelemen 2015-02-27 09:28:27 UTC
It is definitely a bug in "Gradle Support". I will fix this on the weekend. Until then, the workaround is to either remove or enabled the "Change line endings on Save" plugin.

By the way, does anyone one if there are other cases where `org.openide.modules.ModuleInfo.getClassLoader` might throw an exception?
Comment 5 Jiri Kovalsky 2015-02-27 09:58:44 UTC
Don't know myself but try asking at nbdev@netbeans.org mailing list.
Comment 6 attila.kelemen 2015-02-28 12:58:35 UTC
This should now be fixed in master.
Comment 7 Jiri Kovalsky 2015-03-02 15:32:43 UTC
Excellent! Attila, can you please rebuild your plugin and upload new binary to the Plugin Portal and ask for verification? Thanks a lot!
Comment 8 attila.kelemen 2015-03-02 15:38:15 UTC
I will do that in a few days (I'm waiting for the verification of a solved RFE).