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.
The application built with dependencies and run too. Should the run-time verification have detected this? java.lang.ClassNotFoundException: org.openide.filesystems.FileUtil at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:262) Caused: java.lang.ClassNotFoundException: org.openide.filesystems.FileUtil starting from ModuleCL@63a5ec6c[com.mysimpatico.MemoPlatform.Editor] with possible defining loaders [org.netbeans.MainImpl$BootClassLoader@3daa57fb] and declared parents [ModuleCL@7db5391b[org.netbeans.modules.editor.settings.storage]] at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:264) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) Caused: java.lang.NoClassDefFoundError: org/openide/filesystems/FileUtil at com.mysimpatico.memoplatformeditor.NewFile.actionPerformed(NewFile.java:23) at org.openide.awt.AlwaysEnabledAction$1.run(AlwaysEnabledAction.java:137) at org.openide.util.actions.ActionInvoker$1.run(ActionInvoker.java:95) at org.openide.util.actions.ActionInvoker.doPerformAction(ActionInvoker.java:116) at org.openide.util.actions.ActionInvoker.invokeAction(ActionInvoker.java:99) at org.openide.awt.AlwaysEnabledAction.actionPerformed(AlwaysEnabledAction.java:140) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) at javax.swing.AbstractButton.doClick(AbstractButton.java:389) at com.apple.laf.ScreenMenuItem.actionPerformed(ScreenMenuItem.java:95) at java.awt.MenuItem.processActionEvent(MenuItem.java:627) at java.awt.MenuItem.processEvent(MenuItem.java:586) at java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java:317) at java.awt.MenuComponent.dispatchEvent(MenuComponent.java:305) [catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:638) at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:137) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188) at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Created attachment 101279 [details] Shows that the local repository artifact contains FileUtil.class
Release69 makes no difference. Yet the same code works if i include the ide cluster.
And now even this: java.lang.ClassNotFoundException: au.com.bytecode.opencsv.CSVReader at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:262) Caused: java.lang.ClassNotFoundException: au.com.bytecode.opencsv.CSVReader starting from ModuleCL@2db6235b[com.mysimpatico.MemoPlatform.Persistence] with possible defining loaders [ModuleCL@6e37d490[com.mysimpatico.MemoPlatform.PersistenceUI]] and declared parents [ModuleCL@5867df9[org.netbeans.api.progress], ModuleCL@79fcf790[org.netbeans.modules.settings], ModuleCL@418a9fc8[org.openide.actions], ModuleCL@9642bd6[org.openide.windows], ModuleCL@14a8e586[org.openide.explorer], ModuleCL@338e18a3[org.openide.nodes], ModuleCL@6b541147[org.openide.awt], ModuleCL@318efaea[org.openide.loaders], org.netbeans.MainImpl$BootClassLoader@1fff7a1e] at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:264) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) Caused: java.lang.NoClassDefFoundError: au/com/bytecode/opencsv/CSVReader at com.mysimpatico.memoplatform.entities.input.ImportMeanings.importWords(ImportMeanings.java:83) at com.mysimpatico.memoplatform.entities.input.ImportMeanings.access$000(ImportMeanings.java:31) [catch] at com.mysimpatico.memoplatform.entities.input.ImportMeanings$1.run(ImportMeanings.java:62)
Sounds like you are missing some dependency. Cannot evaluate without steps to reproduce.
I don't know the exact steps to re-produce the bug. I know that my project shows this error and it seems incorrect since: 1. It builds with dependencies correctly. 2. It Run (so after runtime dependency check). 3. The dependencies are set in the pom.xml 4. I could find the missing class in maven local repo. It used to work until I was having ide cluster, I think. When I removed the ide cluster dependency, and supplanted it with the specific packages I need I got the error.
You could checkout the code at https://memorizeasy.googlecode.com/svn/trunk/MemoPlatform
no, even adding the ide cluster won't solve the issue.
okay, the problem was having the following in Manifest.mf: OpenIDE-Module-Module-Dependencies: org.netbeans.modules.editor.settings.storage/1 > 1.20 Poor documentation!
(In reply to comment #8) > Poor documentation! I'm not sure exactly where you got the documentation from - nbm-maven-plugin site? - but please file an issue for the maintainer of that documentation if you feel something is missing or inaccurate.