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 221167 - java.lang.NoClassDefFoundError when mouse leftclick anywhere ini PHP editor
Summary: java.lang.NoClassDefFoundError when mouse leftclick anywhere ini PHP editor
Status: RESOLVED WONTFIX
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: PC Linux
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
: 221197 221198 221199 221204 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-10-31 11:18 UTC by igvalor
Modified: 2012-11-01 08:29 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Message log (124.83 KB, text/x-log)
2012-10-31 11:18 UTC, igvalor
Details

Note You need to log in before you can comment on or make changes to this bug.
Description igvalor 2012-10-31 11:18:21 UTC
Created attachment 126845 [details]
Message log

java.lang.NoClassDefFoundError when mouse leftclick anywhere ini PHP editor. Same when close a PHP file and open it again.
Comment 1 Ondrej Brejla 2012-10-31 18:02:23 UTC
Jardo, from message log, it seems that "at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:222)" can't load "org.netbeans.modules.php.editor.parser.CUP$ASTPHP5Parser$actions" which is a class in an ASTPHP5Parser (class generated by cup) and then it later causes NoCLassDefFoundError. 

I saw, that you made some changes in ProxyClassLoader few days ago. Couldn't it be somehow connected? Can you, please, look at it a bit? Or can you somehow help me? Really don't know how I can affect class loading of classes from PHP modules...never had to solve that. Thanks in advance!

PS:

same problem appears in todays dev build, but with some CSS class...


java.lang.ClassNotFoundException: org.netbeans.modules.css.visual.ui.preview.CssPreviewTopComponent$ResolvableHelper
	at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
	at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:222)
Caused: java.lang.ClassNotFoundException: org.netbeans.modules.css.visual.ui.preview.CssPreviewTopComponent$ResolvableHelper starting from SystemClassLoader[404 modules] with possible defining loaders null and declared parents [org.netbeans.MainImpl$BootClassLoader@5cbc56a2, ModuleCL@7d316e00[org.netbeans.api.annotations.common], ModuleCL@12ec440a[org.openide.awt], ModuleCL@5aaf85a3[org.netbeans.api.progress], ModuleCL@15b3745d[org.openide.dialogs], ModuleCL@2ee65e1d[org.openide.nodes], ModuleCL@5a9a75ce[org.openide.windows], ModuleCL@3038859d[org.netbeans.modules.editor.mimelookup], ModuleCL@3b112034[org.openide.text], ModuleCL@2fa818cf[org.netbeans.swing.tabcontrol], ...388 more]
	at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:224)
Comment 2 Ondrej Brejla 2012-10-31 18:11:49 UTC
*** Bug 221204 has been marked as a duplicate of this bug. ***
Comment 3 Ondrej Brejla 2012-10-31 18:11:56 UTC
*** Bug 221197 has been marked as a duplicate of this bug. ***
Comment 4 Jaroslav Tulach 2012-10-31 18:17:00 UTC
I suspect wrong versioning. Verify versions of individual modules and if they are not same, that is it.
Comment 5 Ondrej Brejla 2012-10-31 18:30:15 UTC
*** Bug 221198 has been marked as a duplicate of this bug. ***
Comment 6 Ondrej Brejla 2012-10-31 18:30:19 UTC
*** Bug 221199 has been marked as a duplicate of this bug. ***
Comment 7 Ondrej Brejla 2012-10-31 18:56:27 UTC
Tomasi, what do you think? Can we solve it by increasing version number of php.editor? And properly editing php.kit dependency versions? I'm really confused of these versioning issues :((
Comment 8 Tomas Mysik 2012-11-01 04:47:04 UTC
Well, it is a dev build and if one updates it via Update Center, the dependencies can be broken - not sure if this is the case. But I would suggest WONTFIX and downloading new ZIP file from netbeans.org.
Comment 9 Ondrej Brejla 2012-11-01 08:29:53 UTC
So after some discussions, closing as wont fix. As Tomas wrote, problem is just in dev build, where shouldn't be used update center (because not every change in module is versioned). So if you want to use dev builds, download .zip files. With clean instalation noone is able to reproduce that.