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.
On trying to open any file in any project in newly installed NetBeans 6.0 error message "A java.lang.ClassCastException exception has occurred." appeared. It is not possible to even view existing Java (and other) files, neither for existing, nor for newly created projects.
Please, provide a stacktrace of the exception.
java.lang.ClassCastException: org.openide.filesystems.MultiFileObject$VoidValue at org.netbeans.modules.editor.settings.storage.EditorSettingsImpl.getCurrentFontColorProfile (EditorSettingsImpl.java:233) at org.netbeans.modules.editor.settings.storage.SettingsProvider$MyLookup.<init>(SettingsProvider.java:155) at org.netbeans.modules.editor.settings.storage.SettingsProvider$MyLookup.<init>(SettingsProvider.java:145) at org.netbeans.modules.editor.settings.storage.SettingsProvider.getLookup(SettingsProvider.java:120) at org.netbeans.modules.editor.mimelookup.MimePathLookup.rebuild(MimePathLookup.java:101) at org.netbeans.modules.editor.mimelookup.MimePathLookup.<init>(MimePathLookup.java:89) at org.netbeans.api.editor.mimelookup.MimePath.getLookup(MimePath.java:509) at org.netbeans.api.editor.mimelookup.MimeLookup.getLookup(MimeLookup.java:112) at org.openide.text.CloneableEditorSupport.getEditorKit(CloneableEditorSupport.java:1561) [catch] at org.netbeans.modules.web.core.JspEditorWarmUpTask.run(JspEditorWarmUpTask.java:177) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:461) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
It looks like a problem with settings imported from Nb 5.x. Please try using a fresh userdir. You can do that for example by passing '--userdir /tmp/whatever-folder-you-like' when launching Netbeans. Thanks *** This issue has been marked as a duplicate of 121854 ***