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.
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.
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)
*** Bug 221204 has been marked as a duplicate of this bug. ***
*** Bug 221197 has been marked as a duplicate of this bug. ***
I suspect wrong versioning. Verify versions of individual modules and if they are not same, that is it.
*** Bug 221198 has been marked as a duplicate of this bug. ***
*** Bug 221199 has been marked as a duplicate of this bug. ***
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 :((
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.
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.