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.
Build 200911160201 NetBeans Full bundle. Windows XP version 5.1 - Install NetBeans - Create a JavaFX Script project - Set a breakpoint to the main file - Add new line to the editor The exception pops up.
Please delete your userdir and try to reproduce again.
The issue is still reproduced in build 200911161401 from smetise Steps to reproduce: - Remove the userdir - Install NetBeans Full bundle Build 200911161401 - Start IDE - Create a JavaFX project The exception pops up
java.lang.ClassNotFoundException: org.netbeans.modules.editor.java.NbJavaSettingsInitializer at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:259) Caused: java.lang.ClassNotFoundException: org.netbeans.modules.editor.java.NbJavaSettingsInitializer starting from SystemClassLoader[247 modules] with possible defining loaders null and declared parents [ModuleCL@1cee0c8[org.netbeans.modules.javascript.hints], ModuleCL@1424b7b[org.netbeans.modules.csl.api], ModuleCL@125b750[org.netbeans.modules.tasklist.todo], ModuleCL@14c8822[org.netbeans.swing.plaf], ModuleCL@20224a[org.netbeans.lib.uihandler], ModuleCL@10f4503[org.netbeans.modules.javafx.bestpractices], ModuleCL@b125bd[org.netbeans.modules.utilities], ModuleCL@a96863[org.netbeans.modules.bugtracking.bridge], ModuleCL@b6421[org.netbeans.libs.xerces], ModuleCL@10812ac[org.netbeans.modules.editor.plain.lib], ...232 more] at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:261) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at org.netbeans.modules.editor.lib.SettingsConversions.callFactory(SettingsConversions.java:177) at org.netbeans.editor.BaseDocument$1.preferenceChange(BaseDocument.java:423) at org.netbeans.editor.BaseDocument.init(BaseDocument.java:521) at org.netbeans.editor.BaseDocument.<init>(BaseDocument.java:499) at org.netbeans.editor.GuardedDocument.<init>(GuardedDocument.java:166) at org.netbeans.editor.GuardedDocument.<init>(GuardedDocument.java:137) at org.netbeans.modules.editor.NbEditorDocument.<init>(NbEditorDocument.java:115) at org.netbeans.modules.javafx.editor.JavaFXDocument.<init>(JavaFXDocument.java:86) at org.netbeans.modules.javafx.editor.JavaFXEditorKit.createDefaultDocument(JavaFXEditorKit.java:88) at javax.swing.JEditorPane.setEditorKit(JEditorPane.java:1098) at org.openide.text.CloneableEditor$DoInitialize.initDocument(CloneableEditor.java:676) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:695) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:345) [catch] at org.netbeans.core.windows.WindowManagerImpl$Exclusive$1.run(WindowManagerImpl.java:1317) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:597) at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:125) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161) at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Created attachment 91156 [details] IDE log file
The issue is also reproduced in build See the exception report: 200911170201 http://statistics.netbeans.org/analytics/exception.do?id=302185
Build 200911170201 Steps to reproduce: - Create a JavaFX project - Create a JavaFX Script class The exception pops up.
After activating the Java module the issue is not reproduced. It seems that the main problem in the full distribution is that the activating JavaFX module does not activate the Java module. So the Java module is deactivated in this case.
The javafx editor module borrows the abbrev-reset-acceptor and few more things from NbJavaSettingsInitializer declaratively (through DefaultPreferences.xml), so there is no direct compile-time dependency, but there's one during the runtime. As there is at least one more case of such a hidden dependency (issue 176986), I'm going to hotfix this by adding a runtime dependency on the java editor. JavaFX needs most of the java infrastructure anyway, so enabling one more module, which will be necessary for common case of mixed javafx/java development, can't hurt.
Added the runtime dependency on java editor module. http://hg.netbeans.org/javafx/rev/4f4ec502e950
verified in Build 200911200201