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 262478 - ClassNotFoundException: Will not load class org.netbeans.modules.csl.spi.ParserResult arbitrarily from one of ModuleCL@33d2db0c[org.netbeans.modules.csl.api] and ModuleCL@5b16b277[org.netbeans.modules
Summary: ClassNotFoundException: Will not load class org.netbeans.modules.csl.spi.Pars...
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: CSL (API & infrastructure) (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
: 262644 262683 262719 262748 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-06-18 19:54 UTC by Exceptions Reporter
Modified: 2016-10-25 07:34 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 224650


Attachments
stacktrace (6.43 KB, text/plain)
2016-06-18 19:54 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2016-06-18 19:54:38 UTC
Build: NetBeans IDE Dev (Build 201512260002)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.66-b17, Java(TM) SE Runtime Environment, 1.8.0_66-b17
OS: Linux

User Comments:
GUEST: I get randomly this error. I am working on C++ projects, so it isn't related with my code. I'm unable to figure out which action triggers this.




Stacktrace: 
java.lang.ClassNotFoundException: Will not load class org.netbeans.modules.csl.spi.ParserResult arbitrarily from one of ModuleCL@33d2db0c[org.netbeans.modules.csl.api] and ModuleCL@5b16b277[org.netbeans.modules.csl.types] starting from ModuleCL@3a791fba[org.netbeans.modules.cnd.script]; see http://wiki.netbeans.org/DevFaqModuleCCE
   at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:204)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
   at java.lang.ClassLoader.defineClass1(ClassLoader.java:0)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
   at org.netbeans.JarClassLoader.doLoadClass(JarClassLoader.java:311)
   at org.netbeans.ProxyClassLoader.selfLoadClass(ProxyClassLoader.java:259)
Comment 1 Exceptions Reporter 2016-06-18 19:54:41 UTC
Created attachment 160092 [details]
stacktrace
Comment 2 Alexander Simon 2016-06-21 12:02:29 UTC
ParserResult class cannot be loaded because:

WARNING [org.netbeans.ProxyClassLoader]: Will not load class org.netbeans.modules.csl.spi.ParserResult arbitrarily from one of ModuleCL@33d2db0c[org.netbeans.modules.csl.api] and ModuleCL@5b16b277[org.netbeans.modules.csl.types] starting from ModuleCL@3a791fba[org.netbeans.modules.cnd.script]; see http://wiki.netbeans.org/DevFaqModuleCCE

Probably result of split csl module (https://hg.netbeans.org/cnd-main/rev/47f3838c54ef).

Reassign to evaluation
Comment 3 Alexander Simon 2016-07-05 15:38:26 UTC
*** Bug 262644 has been marked as a duplicate of this bug. ***
Comment 4 Alexander Simon 2016-07-05 15:38:38 UTC
*** Bug 262683 has been marked as a duplicate of this bug. ***
Comment 5 Alexander Simon 2016-07-07 15:12:58 UTC
*** Bug 262719 has been marked as a duplicate of this bug. ***
Comment 6 Alexander Simon 2016-07-11 07:53:45 UTC
*** Bug 262748 has been marked as a duplicate of this bug. ***
Comment 7 alainvitry 2016-07-27 09:47:24 UTC
Exception also happens in java code.
I can trigger the code this way:
- open Netbeans java project => Exception
- close Projets  tab (from windows > projects)
- re-enable Windows > projects => Exception

1st time I got this exception, it came from HTMLParser, so I decided to install HTML Project support plugin.

2nd time the exception was related to : org.netbeans.modules.css.lib.api.CssParserResult, so I decided to install HTML5 plugin to see what happens

3rd time the exception is related to ModuleCL, and I filed a separate bug (id #826177 for it)

It may be related to old plugins carried over from previous installations, or it may just be a bunch of exceptions occuring one after the other.
Comment 8 Milutin Kristofic 2016-07-27 13:26:55 UTC
What is your netbeans version? This seems like netbeans has different versions of modules, I recommend clean reinstall of netbeans if you have problems.
Comment 9 Alexander Simon 2016-09-02 07:42:13 UTC
(In reply to Milutin Kristofic from comment #8)
> What is your netbeans version? This seems like netbeans has different
> versions of modules, I recommend clean reinstall of netbeans if you have
> problems.

All my exception were occurred on current trunk version.
Comment 10 Alexander Simon 2016-09-02 08:44:40 UTC
It seems the bug was introduced in the change set:47f3838c54ef
IMHO two modules have the same public packages.
See:
module csl.types, public packages:
org.netbeans.modules.csl.api
org.netbeans.modules.csl.spi

module csl.api, public packages:
org.netbeans.modules.csl.api
org.netbeans.modules.csl.spi

There is no the issue evaluation. Upgrade to P2 as potential show stopper.
Comment 11 Milutin Kristofic 2016-09-02 09:46:51 UTC
I will look at this, sorry, there was just couple reports, it never happened to me, so I was thinking it is just mess from update.
Comment 12 Svata Dedic 2016-10-25 07:34:10 UTC
The dev version of csl.api provides no spi.ParserResult class. Please check that your NetBeans has an up-to-date version of the module, or even replace the module manually. Check your csl-api.jar contents, whether it contains  org.netbeans.modules.csl.spi.ParserResult (it should not, it was split away).

Your log indicates that installed csl.api has version 2.54.x (nbms-and-javadoc-474-on-20160507), while csl.types is nbms-and-javadoc-517-on-20160618

The CSL module split was merged in around Jun 09 2016, which is between those two originating builds. csl.api spec version was not increased at that time; it was bulk increased in Sep 2016 after code freeze, se 8.2 release should be fine.