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 253531 - ClassNotFoundException: org.netbeans.modules.gsf.testrunner.ui.api.TestRunnerNodeFactory
Summary: ClassNotFoundException: org.netbeans.modules.gsf.testrunner.ui.api.TestRunner...
Status: RESOLVED FIXED
Alias: None
Product: third-party
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: attila.kelemen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-16 18:59 UTC by alied
Modified: 2015-08-14 12:01 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 218593


Attachments
stacktrace (3.38 KB, text/plain)
2015-07-16 18:59 UTC, alied
Details

Note You need to log in before you can comment on or make changes to this bug.
Description alied 2015-07-16 18:59:56 UTC
Build: NetBeans IDE Dev (Build 201507160001)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.51-b03, Java(TM) SE Runtime Environment, 1.8.0_51-b16
OS: Linux

User Comments:
alied: Run tests of a Gradle Java project. While ths is relateed to Gradle (a third party module); I'm reporting this way because There seems to be a classloader-related issue. The missing class is in the project's dependencies and is used in the plugin code.




Stacktrace: 
java.lang.ClassNotFoundException: org.netbeans.modules.gsf.testrunner.ui.api.TestRunnerNodeFactory
   at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
   at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:222)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
Comment 1 alied 2015-07-16 18:59:57 UTC
Created attachment 154688 [details]
stacktrace
Comment 2 Theofanis Oikonomou 2015-07-17 09:24:55 UTC
There was some major refactoring that lead to splitting gsf.testrunner module and creating a new one, namely gsf.testrunner.ui. I am guessing that grandle module has not updated the dependencies? Please evaluate
Comment 3 attila.kelemen 2015-07-17 09:30:57 UTC
(In reply to Theofanis Oikonomou from comment #2)
> There was some major refactoring that lead to splitting gsf.testrunner
> module and creating a new one, namely gsf.testrunner.ui. I am guessing that
> grandle module has not updated the dependencies? Please evaluate

There is a "NetBeans_nightly" branch which works with the current nightly. I wanted to build a release (for the nightly) yesterday but the NetBeans repository seems to be inaccessible.
Comment 4 alied 2015-07-18 00:59:26 UTC
The plugin works fine as long as I've tested it (and I'm using it for actual daily work) The only issue I've found so far with the "NetBeans_nightly" branch is this. This happens when I run the tests and tries to show the test results. So, the plugin can't fins the classes. Maybe some threading issue messing with the plugin classloader?
Comment 5 attila.kelemen 2015-07-18 17:06:21 UTC
(In reply to alied from comment #4)
> The plugin works fine as long as I've tested it (and I'm using it for actual
> daily work) The only issue I've found so far with the "NetBeans_nightly"
> branch is this. This happens when I run the tests and tries to show the test
> results. So, the plugin can't fins the classes. Maybe some threading issue
> messing with the plugin classloader?

I don't think there is a threading issue but probably there might still be some missing dependencies. However, the NetBeans repo is still down, so I can't really test things reliably.
Comment 6 attila.kelemen 2015-08-14 12:01:51 UTC
This is fixed in both the NetBeans_nightly and the NetBeans81 branch.