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 241744 - CNFE: CND & PHP deactivated, but files still on SFS
Summary: CNFE: CND & PHP deactivated, but files still on SFS
Status: RESOLVED DUPLICATE of bug 242177
Alias: None
Product: ide
Classification: Unclassified
Component: Features On Demand (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-12 08:07 UTC by MackSix
Modified: 2014-11-19 12:31 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 207515


Attachments
stacktrace (4.63 KB, text/plain)
2014-02-12 08:07 UTC, MackSix
Details
Screenshot (99.18 KB, image/png)
2014-02-12 08:21 UTC, MackSix
Details
Log File (448.82 KB, text/plain)
2014-02-12 08:31 UTC, MackSix
Details
Other Log Files and Screenshots (227.27 KB, application/x-zip-compressed)
2014-02-12 08:47 UTC, MackSix
Details
Screenshot of plugin manager after restart. (257.02 KB, image/png)
2014-02-12 09:01 UTC, MackSix
Details
Screenshot of plugin manger with "Show details" checked (276.52 KB, image/png)
2014-02-12 09:03 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2014-02-12 08:07:44 UTC
Build: NetBeans IDE Dev (Build 201402120001)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b69, Java(TM) SE Runtime Environment, 1.8.0-b128
OS: Windows 7

User Comments:
MackSix: 1. Running Nimbus L&F.
2. Switched back to Windows L&F.
3. Restarted NetBeans.
4. Already had a Java project open looking for Junit and got the Project Problem dialog to Resolve Problems.

This Exception happened.

This is possibly an issue with "feature on demand" automatic deactivation of PHP improperly. I see those sorts of problems occationally.




Stacktrace: 
java.lang.ClassNotFoundException: org.netbeans.modules.php.smarty.editor.gsf.TplLanguage
   at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
   at java.security.AccessController.doPrivileged(AccessController.java:0)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
Comment 1 MackSix 2014-02-12 08:07:45 UTC
Created attachment 145068 [details]
stacktrace
Comment 2 MackSix 2014-02-12 08:11:49 UTC
The PHP module was deactivated on this restart. So it must be "feature on demand" deactivation that caused it. The PHP button is missing from the Options dialog box too. That should not happen.

I have seen buttons missing in options after failed deactivation of modules before. 

See screenshot.
Comment 3 MackSix 2014-02-12 08:14:25 UTC
It looks like C/C++ deactivated at the same time and it's button is missing in options too. This should not happen.
Comment 4 MackSix 2014-02-12 08:21:41 UTC
Created attachment 145069 [details]
Screenshot
Comment 5 MackSix 2014-02-12 08:30:48 UTC
Check out all the weird stuff going on in the log file.
Comment 6 MackSix 2014-02-12 08:31:42 UTC
Created attachment 145070 [details]
Log File
Comment 7 Jaroslav Tulach 2014-02-12 08:38:13 UTC
The report is from dev. build, I expect some problem in versioning. PHP guys please evaluate.
Comment 8 MackSix 2014-02-12 08:47:34 UTC
Created attachment 145071 [details]
Other Log Files and Screenshots

Here is a zip file with log files and corresponding screenshots of 3 failed deactivation when I was testing one day. (See A, B, C in the file names to match them up.) I forgot about them and did not file an issue. They appear to be the same issue.
Comment 9 MackSix 2014-02-12 09:01:53 UTC
Created attachment 145073 [details]
Screenshot of plugin manager after restart.

Restarted NetBeans and Java shows deactivated in Plugin Manager now, although it is activated. See other screenshot that shows it is activated if "Show details" is checked.
Comment 10 MackSix 2014-02-12 09:03:19 UTC
Created attachment 145074 [details]
Screenshot of plugin manger with "Show details" checked

This shows Java is activated when "Show details" is checked.
Comment 11 Tomas Mysik 2014-02-12 09:25:24 UTC
Martine, please look at it. Thanks.
Comment 12 Martin Fousek 2014-02-12 09:38:28 UTC
(In reply to Jaroslav Tulach from comment #7)
> The report is from dev. build, I expect some problem in versioning. PHP guys
> please evaluate.

Sorry, I'm afraid that it isn't an versioning issue of the php.smarty module. org.netbeans.modules.php.smarty.editor.gsf.TplLanguage class exists in that package at least for 4 releases. Reassigning back.
Comment 13 Jaroslav Tulach 2014-04-04 08:57:35 UTC
The system tries to load CND action:


INFO [org.netbeans.core.startup.layers.BinaryFS]
java.lang.ClassNotFoundException: org.netbeans.modules.cnd.remote.projectui.actions.ConnectionStatusAction
	at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:222)
Caused: java.lang.ClassNotFoundException: org.netbeans.modules.cnd.remote.projectui.actions.ConnectionStatusAction starting from SystemClassLoader[446 modules] with possible defining loaders null and declared parents [org.netbeans.MainImpl$BootClassLoader@7cd84586, ModuleCL@299a4cc8[org.netbeans.api.annotations.common], ModuleCL@47f20118[org.openide.awt], ModuleCL@506758ad[org.netbeans.api.progress], 



but no CND modules are enabled.
Comment 14 Jaroslav Tulach 2014-11-19 12:31:02 UTC
Happened at the same time as bug 242177 and not since then.

If you are having problems with feature on demand often, consider enabling more logging

-J-Dorg.netbeans.modules.ide.ergonomics.level=FINE

and hopefully we will know more next time the failure happens again.

*** This bug has been marked as a duplicate of bug 242177 ***