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 176912 - ClassNotFoundException%3A org.netbeans.modules.editor.java.NbJavaSettingsInitializer
Summary: ClassNotFoundException%3A org.netbeans.modules.editor.java.NbJavaSettingsInit...
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P1 normal (vote)
Assignee: Petr Nejedly
URL:
Keywords: REGRESSION
Depends on:
Blocks: 177063
  Show dependency tree
 
Reported: 2009-11-16 07:43 UTC by Alexandr Scherbatiy
Modified: 2009-11-20 05:03 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 162200


Attachments
IDE log file (552.12 KB, application/octet-stream)
2009-11-17 03:21 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2009-11-16 07:43:45 UTC
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.
Comment 1 Anton Chechel 2009-11-16 09:01:03 UTC
Please delete your userdir and try to reproduce again.
Comment 2 Alexandr Scherbatiy 2009-11-17 03:18:28 UTC
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
Comment 3 Alexandr Scherbatiy 2009-11-17 03:20:50 UTC
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)
Comment 4 Alexandr Scherbatiy 2009-11-17 03:21:52 UTC
Created attachment 91156 [details]
IDE log file
Comment 5 Alexandr Scherbatiy 2009-11-17 04:42:29 UTC
The issue is also reproduced in build
See the exception report: 200911170201
http://statistics.netbeans.org/analytics/exception.do?id=302185
Comment 6 Alexandr Scherbatiy 2009-11-17 04:52:33 UTC
Build 200911170201

Steps to reproduce:

- Create a JavaFX project
- Create a JavaFX Script class
The exception pops up.
Comment 7 Alexandr Scherbatiy 2009-11-17 06:24:52 UTC
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.
Comment 8 Petr Nejedly 2009-11-18 05:16:07 UTC
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.
Comment 9 Petr Nejedly 2009-11-18 05:39:55 UTC
Added the runtime dependency on java editor module.
http://hg.netbeans.org/javafx/rev/4f4ec502e950
Comment 10 Alexandr Scherbatiy 2009-11-20 05:03:16 UTC
verified in Build 200911200201