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 137251

Summary: AssertionError: Need fully qualified name of class with the static setting factory method, but got 'SL[/IndentEngine/org-netbeans-modules-editor-java-JavaIndentEngine'
Product: editor Reporter: Jan Lahoda <jlahoda>
Component: SettingsAssignee: Vitezslav Stejskal <vstejskal>
Status: RESOLVED FIXED    
Severity: blocker CC: issues, jiriprox, jlahoda
Priority: P1    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=65765
Issue Type: DEFECT Exception Reporter: 65765
Attachments: stacktrace
stacktrace
stacktrace

Description Jan Lahoda 2008-06-16 08:32:56 UTC
Build: NetBeans IDE Dev (Build 080615)
VM: Java HotSpot(TM) Client VM, 11.0-b11, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b14
OS: Linux, 2.6.24-17-generic, i386
User comments: Doubleclick on a checkbox in a form (trying the edit the label of the checkbox).
STACKTRACE: (first 10 lines)
java.lang.AssertionError: Need fully qualified name of class with the static setting factory method, but got
'SL[/IndentEngine/org-netbeans-modules-editor-java-JavaIndentEngine'
        at org.netbeans.modules.editor.lib.SettingsConversions.callFactory(SettingsConversions.java:169)
        at org.netbeans.modules.editor.NbEditorDocument$1.getValue(NbEditorDocument.java:140)
        at org.netbeans.editor.BaseDocument$LazyPropertyMap.get(BaseDocument.java:2177)
        at javax.swing.text.AbstractDocument.getProperty(AbstractDocument.java:510)
        at org.openide.text.IndentEngine.find(IndentEngine.java:161)
        at org.netbeans.modules.form.JavaCodeGenerator.generateEventHandler(JavaCodeGenerator.java:3102)
        at org.netbeans.modules.form.JavaCodeGenerator.access$1400(JavaCodeGenerator.java:94)
        at org.netbeans.modules.form.JavaCodeGenerator$FormListener.formChanged(JavaCodeGenerator.java:3858)
        at org.netbeans.modules.form.FormModel.fireEvents(FormModel.java:1269)
        at org.netbeans.modules.form.FormModel.fireEventBatch(FormModel.java:1242)
Comment 1 Jan Lahoda 2008-06-16 09:30:39 UTC
Seems that the Java code from form is not generated properly, presumably due to this exception -> P1.
Comment 2 Vitezslav Stejskal 2008-06-16 09:44:20 UTC
This should not be happening with a fresh userdir. The problem is in old userdirs that contain references to selected
IndentEngine instances. I'll fix NbEditorDocument to handle the situation correctly. In the meantime you can go to your
userdir and delete the <property/> element that refers to 'indentEngine' in your
config/Editors/text/x-java/properties.xml. If 'indentEngine' is the only element in the file you can just delete the file.
Comment 3 kate 2008-06-16 10:45:53 UTC
Created attachment 62861 [details]
stacktrace
Comment 4 kate 2008-06-16 10:53:21 UTC
Created attachment 62862 [details]
stacktrace
Comment 5 Jana Maleckova 2008-06-16 11:08:38 UTC
tested on NetBeans IDE Dev (Build 20080616034253) with clear userdir and it works
Comment 6 Martin Fousek 2008-06-16 11:47:04 UTC
Created attachment 62864 [details]
stacktrace
Comment 7 Vitezslav Stejskal 2008-06-17 11:47:47 UTC
Should be fixed now. I tested it with my old userdir from 6.0, but please test with yours and let me know.
http://hg.netbeans.org/main/rev/cc0d3af114ec