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.
Summary: | NPE at org.netbeans.modules.editor.NbEditorDocument.createEditor | ||
---|---|---|---|
Product: | platform | Reporter: | Jiri Prox <jiriprox> |
Component: | Text | Assignee: | mslama <mslama> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | adie, aldobrucale, apepin, bonji3, cyhelsky, doctorlux, ehsavoie, erdincyilmazel, esmithbss, flexjoly, fzamboj, giorgio42, hmichel, iceman81, ivansidorkin, j0ni, jasondonmoyer, jglick, jkilgrow, jlahoda, jocke, johnsonlau, joshis, juhrik, kahatlen, kawazu428, kpodejma, martin_zmrhal, medotin, mfukala, minashokry, mkleint, mmetelka, mmirilovic, mmocnak, mps77, mromashova, msandor, mslama, musilt2, m_potociar, neilg, ovk, panjin, pjiricka, pribyl, qingyue, sbtourist, sivakumars, soldatov, theanuradha, thp, tmysik, tzezula, vstejskal, vv159170 |
Priority: | P1 | Keywords: | RANDOM, THREAD |
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://statistics.netbeans.org/exceptions/detail.do?id=67383 | ||
Issue Type: | DEFECT | Exception Reporter: | 67383 |
Bug Depends on: | 181230 | ||
Bug Blocks: | |||
Attachments: |
stacktrace
stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace The patch for CloneableEditor.DoInitialize stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace Hotfix for 6.8beta stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace Better fix - please review stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace |
Description
Jiri Prox
2008-07-01 09:28:06 UTC
Build: NetBeans IDE Dev (Build 200807021206) 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-19-generic, i386 User Comments: closing multiple open files Created attachment 63891 [details]
stacktrace
Build: NetBeans IDE Dev (Build 20080707055228) VM: Java HotSpot(TM) Client VM, 11.0-b12, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b25 OS: Linux, 2.6.22-15-generic, i386 User Comments: NPE when closing all documents Created attachment 64058 [details]
stacktrace
This issue has already 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=67383 Build: NetBeans IDE Dev (Build 080709) VM: Java HotSpot(TM) Client VM, 1.5.0_13-119, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_13-b05-237 OS: Mac OS X, 10.5.3, i386 User Comments: Closing some 10 documents: Java and Groovy using "Close all Documents" from one of the documents headers. Created attachment 64172 [details]
stacktrace
Looks like a problem in CloneableEditor. The 'initVisual' is posted to run 'when UI is ready' and in the meantime the IDE is asked to shutdown. The CloneableEditor's initialization then proceeds on already closed editor pane. Build: NetBeans IDE Dev (Build 080715) VM: Java HotSpot(TM) Client VM, 11.0-b12, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b25 OS: Linux, 2.6.24-19-generic, i386 User Comments: Created attachment 64609 [details]
stacktrace
Build: NetBeans IDE Dev (Build 200807101204) VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_05-b13 OS: Windows 2003, 5.2, x86 User Comments: Created attachment 64626 [details]
stacktrace
Build: NetBeans IDE Dev (Build 080715) VM: Java HotSpot(TM) Client VM, 1.6.0_03-b05, Java(TM) SE Runtime Environment, 1.6.0_03-b05 OS: Linux, 2.6.22-15-generic, i386 User Comments: Created attachment 64739 [details]
stacktrace
Build: NetBeans IDE Dev (Build 080716) VM: Java HotSpot(TM) Client VM, 11.0-b14, Java(TM) SE Runtime Environment, 1.6.0_10-rc-b27 OS: Windows XP, 5.1, x86 User Comments: I change project group and as a result open Documents got closed and throw this Created attachment 64769 [details]
stacktrace
Build: NetBeans IDE Dev (Build 080721) VM: Java HotSpot(TM) Client VM, 1.5.0_13-119, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_13-b05-237 OS: Mac OS X, 10.5.4, i386 User Comments: I invoked a "Close All Documents" from the Window menu and this error popped up. Created attachment 65169 [details]
stacktrace
Build: NetBeans IDE Dev (Build 20080723074106) VM: Java HotSpot(TM) Client VM, 11.0-b12, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b25 OS: Linux, 2.6.24-19-generic, i386 User Comments: Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:352) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:454) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:255) at org.netbeans.core.windows.WindowManagerImpl$Exclusive.run(WindowManagerImpl.java:1302) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 65520 [details]
stacktrace
Build: NetBeans IDE Dev (Build 200807251401) VM: Java HotSpot(TM) Client VM, 10.0-b22, Java(TM) SE Runtime Environment, 1.6.0_06-b02 OS: Linux, 2.6.24-19-generic, i386 User Comments: Closed all open documents Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:352) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:454) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:255) at org.netbeans.core.windows.WindowManagerImpl$Exclusive.run(WindowManagerImpl.java:1302) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 65707 [details]
stacktrace
Build: NetBeans IDE Dev (Build 20080728044253) VM: Java HotSpot(TM) Client VM, 11.0-b14, Java(TM) SE Runtime Environment, 1.6.0_10-rc-b27 OS: Windows Vista, 6.0, x86 User Comments: I closed all documents via right click on tab Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:352) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:454) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:255) at org.netbeans.core.windows.WindowManagerImpl$Exclusive.run(WindowManagerImpl.java:1302) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 65767 [details]
stacktrace
Build: NetBeans IDE Dev (Build 080730) VM: Java HotSpot(TM) Server VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_04-b12 OS: Linux, 2.6.5-7.244-smp, i386 User Comments: reopened IDE wich was closed with some opened files. Welcome page was active and before "Main window opening..." disapeared I clicked on tab of Welcome page and chose "Close All Documents" Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:352) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:454) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:255) at org.netbeans.core.windows.WindowManagerImpl$Exclusive.run(WindowManagerImpl.java:1302) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 66077 [details]
stacktrace
Build: NetBeans IDE Dev (Build 200807310201) VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_04-b12 OS: Windows XP, 5.1, x86 User Comments: Opened NetBeans and closed currently opened files Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:352) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:454) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:255) at org.netbeans.core.windows.WindowManagerImpl$Exclusive.run(WindowManagerImpl.java:1302) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 66343 [details]
stacktrace
Build: NetBeans IDE Dev (Build 080802) VM: Java HotSpot(TM) Client VM, 11.0-b12, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b25 OS: Windows Vista, 6.0, x86 User Comments: Right-click on a document and selected close all documents Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:352) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:454) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:255) at org.netbeans.core.windows.WindowManagerImpl$Exclusive.run(WindowManagerImpl.java:1300) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 66379 [details]
stacktrace
Build: NetBeans IDE Dev (Build 20080721172232) VM: Java HotSpot(TM) Client VM, 1.5.0_13-b05, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_13-b05 OS: Windows Vista, 6.0, x86 User Comments: Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:352) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:454) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:255) at org.netbeans.core.windows.WindowManagerImpl$Exclusive.run(WindowManagerImpl.java:1300) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 66422 [details]
stacktrace
Build: NetBeans IDE Dev (Build 200808051401) VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_04-b12 OS: Windows XP, 5.1, x86 User Comments: Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:352) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:454) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:255) at org.netbeans.core.windows.WindowManagerImpl$Exclusive.run(WindowManagerImpl.java:1300) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 66743 [details]
stacktrace
Build: NetBeans IDE Dev (Build 080802) VM: Java HotSpot(TM) Client VM, 11.0-b12, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b25 OS: Windows XP, 5.1, x86 User Comments: Close all documents action Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:352) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:454) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:255) at org.netbeans.core.windows.WindowManagerImpl$Exclusive.run(WindowManagerImpl.java:1300) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 66826 [details]
stacktrace
Build: NetBeans IDE Dev (Build 200808120201) VM: Java HotSpot(TM) Client VM, 10.0-b23, Java(TM) SE Runtime Environment, 1.6.0_07-b06 OS: Windows XP, 5.1, x86 User Comments: Close all documents Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:352) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:454) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:255) at org.netbeans.core.windows.WindowManagerImpl$Exclusive.run(WindowManagerImpl.java:1300) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 67352 [details]
stacktrace
Build: NetBeans IDE Dev (Build 200808040201) VM: Java HotSpot(TM) Client VM, 11.0-b13, Java(TM) SE Runtime Environment, 1.6.0_10-rc-b26 OS: Linux, 2.6.24-19-generic, i386 User Comments: 1, Start NetBeans IDE 2, Close opened project -> NPE appears Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:352) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:454) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:255) at org.netbeans.core.windows.WindowManagerImpl$Exclusive.run(WindowManagerImpl.java:1300) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 67361 [details]
stacktrace
Build: NetBeans IDE Dev (Build 20080814044915) VM: Java HotSpot(TM) Client VM, 11.0-b11, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b14 OS: Windows XP, 5.1, x86 User Comments: closing editor topcomponents Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:352) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:454) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:255) at org.netbeans.core.windows.WindowManagerImpl$Exclusive.run(WindowManagerImpl.java:1300) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 67446 [details]
stacktrace
Build: NetBeans IDE Dev (Build 20080813101327) 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-19-generic, i386 User Comments: Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:352) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:454) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:255) at org.netbeans.core.windows.WindowManagerImpl$Exclusive.run(WindowManagerImpl.java:1300) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 67500 [details]
stacktrace
Build: NetBeans IDE 6.5 Beta (Build 200808111757) VM: Java HotSpot(TM) Client VM, 10.0-b22, Java(TM) SE Runtime Environment, 1.6.0_06-b02 OS: Linux, 2.6.24-16-generic, i386 User Comments: While closing different projects Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:352) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:454) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:255) at org.netbeans.core.windows.WindowManagerImpl$Exclusive.run(WindowManagerImpl.java:1300) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 67614 [details]
stacktrace
Build: NetBeans IDE 6.5 Beta (Build 200808111757) VM: Java HotSpot(TM) Client VM, 1.6.0_03-b05, Java(TM) SE Runtime Environment, 1.6.0_03-b05 OS: Windows XP, 5.1, x86 User Comments: Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:352) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:454) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:255) at org.netbeans.core.windows.WindowManagerImpl$Exclusive.run(WindowManagerImpl.java:1300) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 67649 [details]
stacktrace
Build: NetBeans IDE 6.5 Beta (Build 200808111757) VM: Java HotSpot(TM) Client VM, 11.0-b11, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b14 OS: Windows XP, 5.1, x86 User Comments: I closed two editor panes with the option right click > Close all Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:352) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:454) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:255) at org.netbeans.core.windows.WindowManagerImpl$Exclusive.run(WindowManagerImpl.java:1300) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 67663 [details]
stacktrace
Build: NetBeans IDE Dev (Build 200808170243) VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_04-b12 OS: Linux, 2.6.22-15-generic, i386 User Comments: Just started the ide with existing user directory. Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:352) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:454) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:255) at org.netbeans.core.windows.WindowManagerImpl$Exclusive.run(WindowManagerImpl.java:1300) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 67666 [details]
stacktrace
Build: NetBeans IDE 6.5 Beta (Build 200808111757) VM: Java HotSpot(TM) Client VM, 1.5.0_13-121, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_13-b05-241 OS: Mac OS X, 10.4.11, ppc User Comments: I was using Close All Documents menu right-clicking on one of the title of the open documents. Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:352) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:454) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:255) at org.netbeans.core.windows.WindowManagerImpl$Exclusive.run(WindowManagerImpl.java:1300) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 67758 [details]
stacktrace
This issue has already 50 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=67383 Build: NetBeans IDE 6.5 Beta (Build 200808111757) VM: Java HotSpot(TM) Client VM, 1.5.0_13-b05, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_13-b05 OS: Windows XP, 5.1, x86 User Comments: Stacktrace: java.lang.NullPointerException Build: NetBeans IDE Dev (Build 20080819023551) 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-19-generic, i386 User Comments: Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:352) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:454) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:255) at org.netbeans.core.windows.WindowManagerImpl$Exclusive.run(WindowManagerImpl.java:1300) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 67814 [details]
stacktrace
I am not able to reproduce. I will have to add some logging to see when UI is installed/uninstalled to component. Build: NetBeans IDE Dev (Build 200808190201) VM: Java HotSpot(TM) Client VM, 1.5.0_13-119, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_13-b05-237 OS: Mac OS X, 10.5.4, i386 User Comments: I invoked "Close all documents" from the editor tab right after I started IDE. Some documents were opened from the previous run... Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:352) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:454) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:255) at org.netbeans.core.windows.WindowManagerImpl$Exclusive.run(WindowManagerImpl.java:1300) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 67874 [details]
stacktrace
Build: NetBeans IDE Dev (Build 200808190201) VM: Java HotSpot(TM) Client VM, 1.5.0_13-119, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_13-b05-237 OS: Mac OS X, 10.5.4, i386 User Comments: Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:352) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:454) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:255) at org.netbeans.core.windows.WindowManagerImpl$Exclusive.run(WindowManagerImpl.java:1300) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 67875 [details]
stacktrace
Steps to reproduce: 1. Start IDE with a fresh userdir, close startpage 2. Open/create some project (java application), then open some file from that project in the editor (there is just this one tab in the editor now) 3. Clone the document (you have two identical tabs...) 4. Restart IDE (...3 tabs - startpage + 2 cloned tabs) 5. Right-click startpage tab and press Close All Documents -> NPE is thrown Is it possible to reproduce issue using these steps? Build: NetBeans IDE 6.5 Beta (Build 200808111757) VM: Java HotSpot(TM) Client VM, 11.0-b11, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b14 OS: Windows XP, 5.1, x86 User Comments: Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:352) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:454) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:255) at org.netbeans.core.windows.WindowManagerImpl$Exclusive.run(WindowManagerImpl.java:1300) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 67952 [details]
stacktrace
Build: NetBeans IDE Dev (Build 200808200201) VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-rc-b28 OS: Linux, 2.6.24-21-generic, i386 User Comments: Stacktrace: java.lang.NullPointerException Build: NetBeans IDE Dev (Build 200808190201) VM: Java HotSpot(TM) Client VM, 10.0-b22, Java(TM) SE Runtime Environment, 1.6.0_06-b02 OS: Windows XP, 5.1, x86 User Comments: Try to close project use File menu Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:352) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:454) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:255) at org.netbeans.core.windows.WindowManagerImpl$Exclusive.run(WindowManagerImpl.java:1300) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 68002 [details]
stacktrace
Build: NetBeans IDE 6.5 Beta (Build 200808111757) VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_04-b12 OS: Windows XP, 5.1, x86 User Comments: Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:352) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:454) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:255) at org.netbeans.core.windows.WindowManagerImpl$Exclusive.run(WindowManagerImpl.java:1300) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 68036 [details]
stacktrace
Build: NetBeans IDE 6.5 Beta (Build 200808111757) VM: Java HotSpot(TM) Client VM, 10.0-b22, Java(TM) SE Runtime Environment, 1.6.0_06-b02 OS: Linux, 2.6.24-19-generic, i386 User Comments: Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:352) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:454) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:255) at org.netbeans.core.windows.WindowManagerImpl$Exclusive.run(WindowManagerImpl.java:1300) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 68045 [details]
stacktrace
Given steps does not give reproduction. I will try single core machine. This is definitely timing issue. I expect it could be caused by installing editor kit which reinstalls UI but I must investigate and add some logging. I will need then some volunteer(s) to run IDE with enabled logging as so far I am not able to reproduce so far. Build: NetBeans IDE Dev (Build 200808190201) VM: Java HotSpot(TM) Client VM, 1.6.0_03-b05, Java(TM) SE Runtime Environment, 1.6.0_03-b05 OS: Linux, 2.6.22-15-generic, i386 User Comments: Close all windows Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:352) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:454) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:255) at org.netbeans.core.windows.WindowManagerImpl$Exclusive.run(WindowManagerImpl.java:1300) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 68049 [details]
stacktrace
Build: NetBeans IDE 6.5 Beta (Build 200808111757) VM: Java HotSpot(TM) 64-Bit Server VM, 1.6.0_05-b13-52, Java(TM) SE Runtime Environment, 1.6.0_05-b13-120 OS: Mac OS X, 10.5.4, x86_64 User Comments: Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:352) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:454) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:255) at org.netbeans.core.windows.WindowManagerImpl$Exclusive.run(WindowManagerImpl.java:1300) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 68057 [details]
stacktrace
Build: NetBeans IDE 6.5 Beta (Build 200808111757) VM: Java HotSpot(TM) Client VM, 1.5.0_11-b03, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_11-b03 OS: Windows XP, 5.1, x86 User Comments: After closing all documents and deploying main preoject at same time Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:352) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:454) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:255) at org.netbeans.core.windows.WindowManagerImpl$Exclusive.run(WindowManagerImpl.java:1300) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 68105 [details]
stacktrace
> I will need then some volunteer(s) to run IDE with enabled logging as so far I am not able to reproduce so far.
Count me in;)...
Well, I have reproduced the issue on 2 independent machines (jhorvath's Mac and my Ubuntu) with the build I mentioned.
(I also believe both machines were single core.)
Build: NetBeans IDE Dev (Build 200808210201) VM: Java HotSpot(TM) Client VM, 10.0-b23, Java(TM) SE Runtime Environment, 1.6.0_07-b06 OS: Linux, 2.6.24-21-generic, i386 User Comments: Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:352) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:454) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:255) at org.netbeans.core.windows.WindowManagerImpl$Exclusive.run(WindowManagerImpl.java:1300) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 68174 [details]
stacktrace
Build: NetBeans IDE Dev (Build 200808241401) VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_04-b12 OS: Linux, 2.6.22-15-generic, i386 User Comments: Closed all editors. Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:370) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:472) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:255) at org.netbeans.core.windows.WindowManagerImpl$Exclusive.run(WindowManagerImpl.java:1300) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 68207 [details]
stacktrace
I am able to reliably reproduce this using the steps above, however I have dropped out/overlooked one detail in the description. You have to invoke "Close All Documents" above the tab while "Opening main window" label is still visible in the lower left corner. Now I am able to reproduce it with steps given above. It is important that Start (known previously as Welcome) page is displayed after IDE restart. So do not uncheck Show On Startup checkbox. Reason for NPE is that org.netbeans.editor.Utilities.getEditorUI(JTextComponent target) returns null when target.getUI() returns class which is not instanceof org.netbeans.editor.BaseTextUI. In this case target returns javax.swing.plaf.basic.BasicEditorPaneUI. Passing to editor for evaluation. This may probably happen when editor initialization is in progress. Marku, this problem is in CloneableEditor.DoInitialize. It must NOT proceed with initialization of already closed editor panes. In this case after initNonVisual() is done, the initVisual() is scheduled to be done __after__ the window system is ready, but in the meantime the editor panes are closed (see the steps and joshis' comment about having the 'Opening main window' message in the status bar). At the time when initVisual() is called the editor panes have already been deinitialized and Netbeans editor kits have been uninstalled from them, which is why there is no EditorUI available. Also when using -J-Dorg.openide.text.CloneableEditor.oldInitialize=true the problem goes away. Please see the patch I'm going to attach. I'm not sure if it's correct or the best way of sorting this out, but it certainly helps. Created attachment 68242 [details]
The patch for CloneableEditor.DoInitialize
Actually I do not know if your condition CloneableEditor.this.pane != this.tmp is equivalent to closed editor pane. I will check that. I am on vacation net 2 days so I get to it on Thu or today evening. pane is set to null when componentClosed is called but using invokeLater. I will check if adding some state variable would be better. It would be set as closing editor is started in componentClosed. Build: NetBeans IDE 6.5 Beta (Build 200808111757) VM: Java HotSpot(TM) 64-Bit Server VM, 10.0-b23, Java(TM) SE Runtime Environment, 1.6.0_07-b06 OS: Linux, 2.6.26-1-amd64, amd64 User Comments: Using the 'close all windows' options just after starting up NetBeans. Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:352) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:454) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:255) at org.netbeans.core.windows.WindowManagerImpl$Exclusive.run(WindowManagerImpl.java:1300) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 68375 [details]
stacktrace
Vita's fix is ok. I can confirm that CloneableEditor.componentClosed is closed before initVisual and it results in this. Fix cancels initVisual when pane is changed. This problem is caused by winsys because winsys invokes componentShowing when all documents are closed. It is performance problem and I filed separate issue #145292. Fixed f07343a21381 Integrated into 'main-golden', available in build *200808280201* on http://bits.netbeans.org/dev/nightly/ Changeset: http://hg.netbeans.org/main/rev/f07343a21381 User: Marek Slama <mslama@netbeans.org> Log: #138686: Cancel CloneableEditor initialization when it is closed already. Reopening - reproduced in NetBeans IDE Dev (Build 200810041417) http://statistics.netbeans.org/exceptions/detail.do?id=124880 I cannot reproduce this new case. It was with ruby project and then all documents was closed. Unfortunately I do not have this project or contact to reporter so I do not know how to get more info. I cannot fix this just with NPE call stack without knowing what happens. I filed new issue #149771. The same symptoms but different cause even if it happens when documents are closed. Please help to find out steps to reproduce. Build: NetBeans IDE Dev (Build 081009) VM: Java HotSpot(TM) Client VM, 1.5.0_16-b02, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_16-b02 OS: Linux, 2.6.26-gentoo-r1, i386 User Comments: change project group (via File menu) Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:377) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:479) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:262) at org.netbeans.core.windows.WindowManagerImpl$Exclusive.run(WindowManagerImpl.java:1335) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 71554 [details]
stacktrace
verified in 6.5RC1 Reopening - reproduced in NetBeans IDE Dev (Build 081030) http://statistics.netbeans.org/exceptions/detail.do?id=134782 Closing as before. Another issue. Caught this today [1] after closing all editors immediately after starting the IDE. Worth reopening this one? Product Version: NetBeans IDE Dev (Build 081127) Java: 1.6.0_10; Java HotSpot(TM) Client VM 11.0-b15 System: Linux version 2.6.27-9-generic running on i386; UTF-8; de_DE (nb) Userdir: /home/kr/.netbeans/dev [1]http://statistics.netbeans.org/analytics/exception.do?id=145349 Reopening - reproduced in NetBeans IDE Dev (Build 200901250201) http://statistics.netbeans.org/exceptions/detail.do?id=67383 I need some way how to reproduce this issue with current dev build. All this is done in AWT thread so it cannot be race condition. Method initVisual sets our custom text ui and then initDocument invokes setEditorKit. Only chance is that initDocument is not finished correctly. Or if there is any volunteer able to reproduce this at least sometime I would send patched module openide.text. Please contact me directly. Or if you could send me your project for testing. I cannot reproduce it with java files so perhaps some other file types are better to reproduce this. I added logging to investigate this issue. core-main #0a72938abb71 ui class of pane is checked and if it is not expected org.netbeans.editor.BaseTextUI IllegalStateException is thrown and collected log is sent to logger so that it will be submitted to exception reporter. Please update to latest dev build (containing this changeset) and try to reproduce this issue. Submit exception report and let me know its number. Thanks. core-main #2b147373a112 Fix test failure Integrated into 'main-golden', will be available in build *200903191401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/0a72938abb71 User: Marek Slama <mslama@netbeans.org> Log: #138686: Add logging to investigate this issue. Both changes are in trunk build 200903191401 so please take this build or newer and try to reproduce and submit new exception report. *** Issue 158637 has been marked as a duplicate of this issue. *** core-main #a191ad5e6a18 Logging fixed. Previous version could cause OutOfMemoryError issue #161018 Integrated into 'main-golden', will be available in build *200903251400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/a191ad5e6a18 User: Marek Slama <mslama@netbeans.org> Log: #161018: Fix logging for #138686. *** Issue 149771 has been marked as a duplicate of this issue. *** reproduced on dev 090417 gorrus, we need exact or close-to-exact reproduction steps, please add them here. Thank you. It is ok. I have already enough new logs in issue #161902 and #149771. It should be fixed for 6.7. Problem is that CloneableTopComponent.canClose closes document from AWT thread and it sets editor kit to null while CloneableEditor.DoInitialize.initNonVisual is still running in another thread. It means additional synchronization must be added to avoid this. It is random and fortunately adding logging did not hide this. core-main #48637df6f189 Reason for this is that if someone calls CloneableTopComponent.canClose() it invokes closeLast and it calls CES.doCloseDocument() which messes with CloneableEditor initialization. Fix adds test for document and editor kit value in support and skips initVisual when document or editor kit are null. Actually current synchronization is wrong in this case as it allows call of canClose and closing document during or before initNonVisual. Integrated into 'main-golden', will be available in build *200904210201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/48637df6f189 User: Marek Slama <mslama@netbeans.org> Log: #138686, #161902, #149771: Cancel initialization when document was closed in the meantime Integrated into 'main-golden', will be available in build *200907230201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/458fb6978cd2 User: Marek Slama <mslama@netbeans.org> Log: #168959: Remove debug logging used to investigate #138686, #161902, #149771 this bug is pointed from 6.8 dev => reopening Build: NetBeans IDE Dev (Build 091019) VM: Java HotSpot(TM) Server VM, 14.1-b02, Java(TM) SE Runtime Environment, 1.6.0_15-b03 OS: SunOS, 5.11, x86 User Comments: Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:497) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:599) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:291) at org.netbeans.core.windows.WindowManagerImpl$Exclusive$1.run(WindowManagerImpl.java:1317) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 89694 [details]
stacktrace
This issue already has 500 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=67383 Build: NetBeans IDE 6.8 Beta (Build 200910171337) VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01 OS: Windows Vista, 6.0, x86 User Comments: Steps to reproduce: - start debugger - try to navigate to variable Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:497) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:599) at org.openide.text.CloneableEditor.getEditorPane(CloneableEditor.java:1067) at org.openide.text.CloneableEditorSupport.getOpenedPanes(CloneableEditorSupport.java:1098) at org.netbeans.modules.cnd.modelutil.CsmUtilities$3.run(CsmUtilities.java:695) Created attachment 89695 [details]
stacktrace
This issue already has 500 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=67383 Build: NetBeans IDE 6.8 Beta (Build 200910171337) VM: Java HotSpot(TM) 64-Bit Server VM, 14.1-b02-92, Java(TM) SE Runtime Environment, 1.6.0_15-b03-226 OS: Mac OS X, 10.5.8, x86_64 User Comments: Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:497) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:599) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:291) at org.netbeans.core.windows.WindowManagerImpl$Exclusive$1.run(WindowManagerImpl.java:1317) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 89702 [details]
stacktrace
This issue already has 501 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=67383 This issue already has 502 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=67383 *** This issue has been marked as a duplicate of 174856 *** Jarda, we can not close P1 as dup of P3 + THIS issue is used as target issue by "report exception" mechanism from IDE => let's leave it as open, because it's very confusing to see it as "fixed in 6.7, update to new version of IDE" *** Issue 174856 has been marked as a duplicate of this issue. *** Build: NetBeans IDE Dev (Build 091019) VM: Java HotSpot(TM) 64-Bit Server VM, 14.1-b02-90, Java(TM) SE Runtime Environment, 1.6.0_15-b03-219 OS: Mac OS X, 10.6.1, x86_64 User Comments: Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:497) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:599) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:291) at org.netbeans.core.windows.WindowManagerImpl$Exclusive$1.run(WindowManagerImpl.java:1317) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 89735 [details]
stacktrace
Build: NetBeans IDE Dev (Build 091019) VM: Java HotSpot(TM) 64-Bit Server VM, 14.1-b02-90, Java(TM) SE Runtime Environment, 1.6.0_15-b03-219 OS: Mac OS X, 10.6.1, x86_64 User Comments: Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:497) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:599) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:291) at org.netbeans.core.windows.WindowManagerImpl$Exclusive$1.run(WindowManagerImpl.java:1317) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 89739 [details]
stacktrace
Build: NetBeans IDE 6.8 Beta (Build 200910192001) VM: Java HotSpot(TM) 64-Bit Server VM, 14.1-b02-92, Java(TM) SE Runtime Environment, 1.6.0_15-b03-226 OS: Mac OS X, 10.5.8, x86_64 User Comments: Just created ruby project, main.rb was not opened in editor. NPE instead. Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:497) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:599) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:291) at org.netbeans.core.windows.WindowManagerImpl$Exclusive$1.run(WindowManagerImpl.java:1317) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 89745 [details]
stacktrace
*** Issue 174856 has been marked as a duplicate of this issue. *** I have improved something in http://hg.netbeans.org/core-main/rev/f8a05b77017b Added a check for null EditorUI (and possible throwing ISE) as http://hg.netbeans.org/jet-main/rev/6ee79a32740f but unfortunately under the dup issue 174856. Build: NetBeans IDE 6.8 Beta (Build 200910192001) VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01 OS: Windows XP, 5.1, x86 User Comments: Tried to open .txt document during the scanning of a project Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:497) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:599) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:291) at org.netbeans.core.windows.WindowManagerImpl$Exclusive$1.run(WindowManagerImpl.java:1317) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 89759 [details]
stacktrace
*** Issue 174979 has been marked as a duplicate of this issue. *** Build: NetBeans IDE Dev (Build 091019) VM: Java HotSpot(TM) 64-Bit Server VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01 OS: Linux, 2.6.28-15-generic, amd64 User Comments: opened php file Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:497) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:599) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:291) at org.netbeans.core.windows.WindowManagerImpl$Exclusive$1.run(WindowManagerImpl.java:1317) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 89771 [details]
stacktrace
Build: NetBeans IDE Dev (Build 091020) VM: Java HotSpot(TM) 64-Bit Server VM, 14.1-b02, Java(TM) SE Runtime Environment, 1.6.0_15-b03 OS: Linux, 2.6.30-gentoo-r5, amd64 User Comments: Happens when I start the IDE Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:497) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:599) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:291) at org.netbeans.core.windows.WindowManagerImpl$Exclusive$1.run(WindowManagerImpl.java:1317) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 89772 [details]
stacktrace
Build: NetBeans IDE Dev (Build 091019) VM: Java HotSpot(TM) Client VM, 1.5.0_19-b02, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_19-b02 OS: Windows Vista, 6.0, x86 User Comments: Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:497) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:599) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:291) at org.netbeans.core.windows.WindowManagerImpl$Exclusive$1.run(WindowManagerImpl.java:1317) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 89773 [details]
stacktrace
Build: NetBeans IDE Dev (Build 091020) VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33 OS: SunOS, 5.10, x86 User Comments: Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:497) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:599) at org.openide.text.CloneableEditor.getEditorPane(CloneableEditor.java:1067) at org.openide.text.CloneableEditorSupport.getOpenedPanes(CloneableEditorSupport.java:1098) at org.netbeans.modules.cnd.qnavigator.navigator.NavigatorModel.findCurrentJEditorPane(NavigatorModel.java:261) Created attachment 89780 [details]
stacktrace
Build: NetBeans IDE Dev (Build 200910191401) VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01 OS: Windows XP, 5.1, x86 User Comments: created new javaFX project Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.netbeans.modules.javafx.editor.JavaFXDocument.createEditor(JavaFXDocument.java:119) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:497) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:599) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:291) at org.netbeans.core.windows.WindowManagerImpl$Exclusive$1.run(WindowManagerImpl.java:1317) Created attachment 89782 [details]
stacktrace
Build: NetBeans IDE Dev (Build 091017) VM: Java HotSpot(TM) Client VM, 14.1-b02, Java(TM) SE Runtime Environment, 1.6.0_15-b03 OS: Linux, 2.6.28-15-generic, i386 User Comments: Opening a DTD. Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:497) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:599) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:291) at org.netbeans.core.windows.WindowManagerImpl$Exclusive$1.run(WindowManagerImpl.java:1317) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 89785 [details]
stacktrace
- Build: NetBeans IDE Dev (Build 091020) VM: Java HotSpot(TM) Client VM, 11.2-b01, Java(TM) SE Runtime Environment, 1.6.0_12-b04 OS: SunOS, 5.11, x86 User Comments: Profiling, click on Hot Spots before the app has finished (probably just when it has produced some data for stack view), and then double-click entry in stack view to go to source. Seen this exception a couple of time. Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:497) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:599) at org.openide.text.CloneableEditor.getEditorPane(CloneableEditor.java:1067) at org.openide.text.CloneableEditorSupport.getOpenedPanes(CloneableEditorSupport.java:1098) at org.netbeans.modules.cnd.gizmo.SourceSupportProviderImpl$1.run(SourceSupportProviderImpl.java:206) Created attachment 89793 [details]
stacktrace
Build: NetBeans IDE 6.8 Beta (Build 200910192001) VM: Java HotSpot(TM) 64-Bit Server VM, 14.1-b02-92, Java(TM) SE Runtime Environment, 1.6.0_15-b03-226 OS: Mac OS X, 10.5.8, x86_64 User Comments: Tried to open .php file from Favorites tab. When the PHP support went to be enabled the exception appeared... Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:497) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:599) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:291) at org.netbeans.core.windows.WindowManagerImpl$Exclusive$1.run(WindowManagerImpl.java:1317) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 89799 [details]
stacktrace
Build: NetBeans IDE Dev (Build 091021) VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01 OS: Linux, 2.6.24-24-generic, i386 User Comments: Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:497) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:599) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:291) at org.netbeans.core.windows.WindowManagerImpl$Exclusive$1.run(WindowManagerImpl.java:1317) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 89807 [details]
stacktrace
Build: NetBeans IDE Dev (Build 091021) VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01 OS: Linux, 2.6.24-24-generic, i386 User Comments: Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:497) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:599) at org.openide.text.CloneableEditor.getEditorPane(CloneableEditor.java:1067) at org.netbeans.core.multiview.MultiViewPeer.getEditorPane(MultiViewPeer.java:507) at org.netbeans.core.multiview.MultiViewPeer.isToolbarVisible(MultiViewPeer.java:645) Created attachment 89810 [details]
stacktrace
Build: NetBeans IDE Dev (Build 091019) VM: Java HotSpot(TM) 64-Bit Server VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01 OS: Linux, 2.6.28-15-generic, amd64 User Comments: opening a file Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:497) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:599) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:291) at org.netbeans.core.windows.WindowManagerImpl$Exclusive$1.run(WindowManagerImpl.java:1317) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 89811 [details]
stacktrace
Build: NetBeans IDE Dev (Build web-main-1851-on-091019) VM: Java HotSpot(TM) 64-Bit Server VM, 14.1-b02-92, Java(TM) SE Runtime Environment, 1.6.0_15-b03-226 OS: Mac OS X, 10.5.8, x86_64 User Comments: IDE statup with a couple Java files open. Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:497) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:599) at org.openide.text.CloneableEditor.getEditorPane(CloneableEditor.java:1067) at org.netbeans.core.multiview.MultiViewPeer.getEditorPane(MultiViewPeer.java:507) at org.netbeans.core.multiview.MultiViewPeer.isToolbarVisible(MultiViewPeer.java:645) Created attachment 89820 [details]
stacktrace
Build: NetBeans IDE 6.8 Beta (Build 200910192001) VM: Java HotSpot(TM) 64-Bit Server VM, 14.1-b02-92, Java(TM) SE Runtime Environment, 1.6.0_15-b03-226 OS: Mac OS X, 10.5.8, x86_64 User Comments: After the restart tried to open .php file from Favourites window and the exception appeared. Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:497) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:599) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:291) at org.netbeans.core.windows.WindowManagerImpl$Exclusive$1.run(WindowManagerImpl.java:1317) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 89821 [details]
stacktrace
I think I know what the cause is and have a hotfix for beta (see the attached patch). The proper fix is going to be a little bit more complicated. Marek and I are working on it. Created attachment 89830 [details]
Hotfix for 6.8beta
*** Issue 175071 has been marked as a duplicate of this issue. *** *** Issue 175076 has been marked as a duplicate of this issue. *** Build: NetBeans IDE 6.8 Beta (Build 200910202101) VM: Java HotSpot(TM) 64-Bit Server VM, 14.1-b02-90, Java(TM) SE Runtime Environment, 1.6.0_15-b03-219 OS: Mac OS X, 10.6.1, x86_64 User Comments: Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:497) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:599) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:291) at org.netbeans.core.windows.WindowManagerImpl$Exclusive$1.run(WindowManagerImpl.java:1317) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 89842 [details]
stacktrace
Build: NetBeans Platform 6.8 Beta (Build 200910202101) VM: Java HotSpot(TM) Client VM, 1.5.0_20-141, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_20-b02-315 OS: Mac OS X, 10.5.8, i386 User Comments: Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:497) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:599) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:291) at org.netbeans.core.windows.WindowManagerImpl$Exclusive$1.run(WindowManagerImpl.java:1317) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 89844 [details]
stacktrace
This issue already has 550 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=67383 This issue already has 551 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=67383 Build: NetBeans IDE Dev (Build 091021) VM: Java HotSpot(TM) 64-Bit Server VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01 OS: Linux, 2.6.28-15-generic, amd64 User Comments: ide started with several php files open Stacktrace: java.lang.IllegalStateException: NbEditorDocument.createEditor(): ui=javax.swing.plaf.basic.BasicEditorPaneUI@2aef0a03, kit=javax.swing.JEditorPane$PlainEditorKit@337a60fa, pane=org.openide.text.QuietEditorPane[,0,0,0x0,invalid,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.basic.BasicBorders$MarginBorder@2774d77d,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=sun.swing.PrintColorUIResource[r=51,g=51,b=51],disabledTextColor=javax.swing.plaf.ColorUIResource[r=184,g=207,b=229],editable=true,margin=javax.swing.plaf.InsetsUIResource[top=3,left=3,bottom=3,right=3],selectedTextColor=sun.swing.PrintColorUIResource[r=51,g=51,b=51],selectionColor=javax.swing.plaf.ColorUIResource[r=184,g=207,b=229],kit=javax.swing.JEditorPane$PlainEditorKit@337a60fa,typeHandlers=] at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:175) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:497) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:599) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:291) at org.netbeans.core.windows.WindowManagerImpl$Exclusive$1.run(WindowManagerImpl.java:1317) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 89847 [details]
stacktrace
This issue already has 552 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=67383 Build: NetBeans IDE 6.8 Beta (Build 200910202101) VM: Java HotSpot(TM) 64-Bit Server VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01 OS: Linux, 2.6.28-15-generic, amd64 User Comments: tried to open .sh file in second NB 6.8 Beta Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:497) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:599) at org.openide.text.CloneableEditor.getEditorPane(CloneableEditor.java:1067) at org.netbeans.modules.java.hints.infrastructure.HintAction.getCurrentFile(HintAction.java:112) at org.netbeans.modules.java.hints.infrastructure.HintAction.updateEnabled(HintAction.java:69) Created attachment 89850 [details]
stacktrace
This issue already has 553 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=67383 This issue already has 554 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=67383 The patch to beta seems ok, please integrate it Build: NetBeans IDE Dev (Build 091019) VM: Java HotSpot(TM) 64-Bit Server VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01 OS: Linux, 2.6.28-15-generic, amd64 User Comments: opening IDE with some files already opened Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:497) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:599) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:291) at org.netbeans.core.windows.WindowManagerImpl$Exclusive$1.run(WindowManagerImpl.java:1317) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 89856 [details]
stacktrace
- Build: NetBeans IDE Dev (Build nbms-and-javadoc-4129-on-091021) VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01 OS: Linux, 2.6.28-15-generic, i386 User Comments: Opening a file from the svn "Versioning Output" window Stacktrace: java.lang.IllegalStateException: NbEditorDocument.createEditor(): ui=javax.swing.plaf.synth.SynthEditorPaneUI@1656a6f, kit=javax.swing.JEditorPane$PlainEditorKit@12eb9d2, pane=org.openide.text.QuietEditorPane[,0,0,0x0,invalid,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.synth.SynthBorder@a9bcdd,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=javax.swing.plaf.ColorUIResource[r=0,g=0,b=0],disabledTextColor=javax.swing.plaf.ColorUIResource[r=177,g=165,b=152],editable=true,margin=javax.swing.plaf.InsetsUIResource[top=3,left=3,bottom=3,right=3],selectedTextColor=javax.swing.plaf.ColorUIResource[r=26,g=26,b=26],selectionColor=javax.swing.plaf.ColorUIResource[r=250,g=209,b=132],kit=javax.swing.JEditorPane$PlainEditorKit@12eb9d2,typeHandlers=] at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:175) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:497) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:599) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:291) at org.netbeans.core.windows.WindowManagerImpl$Exclusive$1.run(WindowManagerImpl.java:1317) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 89865 [details]
stacktrace
Build: NetBeans IDE 6.8 Beta (Build 200910202101) VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01 OS: Linux, 2.6.28-11-generic, i386 User Comments: Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:497) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:599) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:291) at org.netbeans.core.windows.WindowManagerImpl$Exclusive$1.run(WindowManagerImpl.java:1317) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 89866 [details]
stacktrace
Build: NetBeans IDE Dev (Build 091021) VM: Java HotSpot(TM) 64-Bit Server VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01 OS: Linux, 2.6.28-15-generic, amd64 User Comments: Stacktrace: java.lang.IllegalStateException: NbEditorDocument.createEditor(): ui=javax.swing.plaf.basic.BasicEditorPaneUI@429be960, kit=javax.swing.JEditorPane$PlainEditorKit@9f6bfca, pane=org.openide.text.QuietEditorPane[,0,0,0x0,invalid,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.basic.BasicBorders$MarginBorder@26a96be2,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=sun.swing.PrintColorUIResource[r=51,g=51,b=51],disabledTextColor=javax.swing.plaf.ColorUIResource[r=184,g=207,b=229],editable=true,margin=javax.swing.plaf.InsetsUIResource[top=3,left=3,bottom=3,right=3],selectedTextColor=sun.swing.PrintColorUIResource[r=51,g=51,b=51],selectionColor=javax.swing.plaf.ColorUIResource[r=184,g=207,b=229],kit=javax.swing.JEditorPane$PlainEditorKit@9f6bfca,typeHandlers=] at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:175) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:497) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:599) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:291) at org.netbeans.core.windows.WindowManagerImpl$Exclusive$1.run(WindowManagerImpl.java:1317) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 89867 [details]
stacktrace
I pushed the hotfix to: jet-main - http://hg.netbeans.org/jet-main/rev/d953ef1451f5 release68_beta - http://hg.netbeans.org/release68_beta/rev/f754c6b656b7 Created attachment 89878 [details]
Better fix - please review
Build: NetBeans IDE Dev (Build 200910191401) VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01 OS: Linux, 2.6.28-15-generic, i386 User Comments: Opening a model file from a Rails project. Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:497) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:599) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:291) at org.netbeans.core.windows.WindowManagerImpl$Exclusive$1.run(WindowManagerImpl.java:1317) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 89897 [details]
stacktrace
Build: NetBeans IDE Dev (Build nbms-and-javadoc-4132-on-091021) VM: Java HotSpot(TM) Client VM, 14.0-b16, Java(TM) SE Runtime Environment, 1.6.0_14-b08 OS: Windows XP, 5.1, x86 User Comments: Double-clicked on JSP in web project. Stacktrace: java.lang.IllegalStateException: NbEditorDocument.createEditor(): ui=com.sun.java.swing.plaf.windows.WindowsEditorPaneUI@1ce1eae, kit=javax.swing.JEditorPane$PlainEditorKit@14065b9, pane=org.openide.text.QuietEditorPane[,0,0,0x0,invalid,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.basic.BasicBorders$MarginBorder@8f329f,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=javax.swing.plaf.ColorUIResource[r=0,g=0,b=0],disabledTextColor=javax.swing.plaf.ColorUIResource[r=172,g=168,b=153],editable=true,margin=javax.swing.plaf.InsetsUIResource[top=3,left=3,bottom=3,right=3],selectedTextColor=javax.swing.plaf.ColorUIResource[r=255,g=255,b=255],selectionColor=javax.swing.plaf.ColorUIResource[r=49,g=106,b=197],kit=javax.swing.JEditorPane$PlainEditorKit@14065b9,typeHandlers=] at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:175) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:497) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:599) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:291) at org.netbeans.core.windows.WindowManagerImpl$Exclusive$1.run(WindowManagerImpl.java:1317) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 89908 [details]
stacktrace
Build: NetBeans IDE Dev (Build 091019) VM: Java HotSpot(TM) 64-Bit Server VM, 1.6.0_07-b06-57, Java(TM) SE Runtime Environment, 1.6.0_07-b06-153 OS: Mac OS X, 10.5.8, x86_64 User Comments: restarting IDE with some xhtml-s and java files opened Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:497) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:599) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:291) at org.netbeans.core.windows.WindowManagerImpl$Exclusive$1.run(WindowManagerImpl.java:1317) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 89913 [details]
stacktrace
verified in beta Build: NetBeans IDE Dev (Build 200910191401) VM: Java HotSpot(TM) 64-Bit Server VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01 OS: Linux, 2.6.28-15-generic, amd64 User Comments: opened IDE Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:497) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:599) at org.openide.text.CloneableEditor.getEditorPane(CloneableEditor.java:1067) at org.netbeans.core.multiview.MultiViewPeer.getEditorPane(MultiViewPeer.java:507) at org.netbeans.core.multiview.MultiViewPeer.isToolbarVisible(MultiViewPeer.java:645) Created attachment 89915 [details]
stacktrace
Build: NetBeans IDE Dev (Build 091022) VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33 OS: Windows XP, 5.1, x86 User Comments: cltr+click on #include <file> Stacktrace: java.lang.IllegalStateException: NbEditorDocument.createEditor(): ui=com.sun.java.swing.plaf.windows.WindowsEditorPaneUI@ab30c0, kit=javax.swing.JEditorPane$PlainEditorKit@10db8ad, pane=org.openide.text.QuietEditorPane[,0,0,0x0,invalid,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.basic.BasicBorders$MarginBorder@160bf69,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=javax.swing.plaf.ColorUIResource[r=0,g=0,b=0],disabledTextColor=javax.swing.plaf.ColorUIResource[r=172,g=168,b=153],editable=true,margin=javax.swing.plaf.InsetsUIResource[top=3,left=3,bottom=3,right=3],selectedTextColor=javax.swing.plaf.ColorUIResource[r=255,g=255,b=255],selectionColor=javax.swing.plaf.ColorUIResource[r=49,g=106,b=197],kit=javax.swing.JEditorPane$PlainEditorKit@10db8ad,typeHandlers=] at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:175) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:497) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:599) at org.openide.text.CloneableEditor.getEditorPane(CloneableEditor.java:1067) at org.openide.text.CloneableEditorSupport.getOpenedPanes(CloneableEditorSupport.java:1098) at org.netbeans.modules.cnd.modelutil.CsmUtilities$3.run(CsmUtilities.java:715) Created attachment 89918 [details]
stacktrace
Last patch looks ok to me. I will commit it ASAP (once I finish fixing of #175093) Integrated into 'main-golden', will be available in build *200910221401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/d953ef1451f5 User: Vita Stejskal <vstejskal@netbeans.org> Log: #138686: hotfix for NPE while opening editors Build: NetBeans IDE Dev (Build 200910191401) VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01 OS: Linux, 2.6.28-15-generic, i386 User Comments: Opening the first file (a Rails View file) after launching the IDE with a clean or dirty userdir. Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:497) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:599) at org.openide.text.CloneableEditor$DoInitialize.run(CloneableEditor.java:291) at org.netbeans.core.windows.WindowManagerImpl$Exclusive$1.run(WindowManagerImpl.java:1317) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) Created attachment 89951 [details]
stacktrace
This issue already has 602 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=67383 The hotfix is available as of build 200910221401, please use newer builds if you are still affected by this issue. Build: NetBeans IDE Dev (Build 200910151401) VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03 OS: Linux, 2.6.29.6-desktop-2mnb, i386 User Comments: opening a pom.xml file within a maven archetype project resources Stacktrace: java.lang.NullPointerException at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:170) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:497) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:599) at org.openide.text.CloneableEditor.getEditorPane(CloneableEditor.java:1067) at org.netbeans.modules.java.hints.infrastructure.HintAction.getCurrentFile(HintAction.java:112) at org.netbeans.modules.java.hints.infrastructure.HintAction.updateEnabled(HintAction.java:69) Created attachment 89962 [details]
stacktrace
This issue already has 604 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=67383 Build: NetBeans IDE Dev (Build 091020) VM: Java HotSpot(TM) Client VM, 11.0-b16, Java(TM) SE Runtime Environment, 1.6.0_11-b03 OS: Linux, 2.6.28-11-generic, i386 User Comments: Stacktrace: java.lang.IllegalStateException: NbEditorDocument.createEditor(): ui=javax.swing.plaf.basic.BasicEditorPaneUI@14a5cc6, kit=javax.swing.JEditorPane$PlainEditorKit@110f8f6, pane=org.openide.text.QuietEditorPane[,0,0,0x0,invalid,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.basic.BasicBorders$MarginBorder@159c7f2,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=sun.swing.PrintColorUIResource[r=51,g=51,b=51],disabledTextColor=javax.swing.plaf.ColorUIResource[r=184,g=207,b=229],editable=true,margin=javax.swing.plaf.InsetsUIResource[top=3,left=3,bottom=3,right=3],selectedTextColor=sun.swing.PrintColorUIResource[r=51,g=51,b=51],selectionColor=javax.swing.plaf.ColorUIResource[r=184,g=207,b=229],kit=javax.swing.JEditorPane$PlainEditorKit@110f8f6,typeHandlers=] at org.netbeans.modules.editor.NbEditorDocument.createEditor(NbEditorDocument.java:175) at org.openide.text.CloneableEditor$DoInitialize.initCustomEditor(CloneableEditor.java:497) at org.openide.text.CloneableEditor$DoInitialize.initVisual(CloneableEditor.java:599) at org.openide.text.CloneableEditor.getEditorPane(CloneableEditor.java:1067) at org.netbeans.modules.java.hints.infrastructure.HintAction.getCurrentFile(HintAction.java:112) at org.netbeans.modules.java.hints.infrastructure.HintAction.updateEnabled(HintAction.java:69) Created attachment 89963 [details]
stacktrace
This issue already has 604 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=67383 core-main #013c4862a792 Very clever fix. Integrated into 'main-golden', will be available in build *200910280201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/013c4862a792 User: Marek Slama <mslama@netbeans.org> Log: #138686: Keep reference to document in prepareDocument task so that doc is not gc'ed too soon. v. |