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.
Sorry, this bug just happened and I have not identified a pattern to reproduce it. I am going to email the ide.log in a few seconds. Thank you for your attention. Here it is the error message for now: java.lang.NullPointerException at org.netbeans.modules.java.JavaEditor$JavaEditorComponent.co mponentActivated(JavaEditor.java:1163) at org.openide.windows.WindowManager.activateComponent (WindowManager.java:186) at org.netbeans.core.windows.WindowManagerImpl.activateCompone nt(WindowManagerImpl.java:942) at org.netbeans.core.windows.frames.DefaultContainerImpl.doAct ivateComponent(DefaultContainerImpl.java:854) at org.netbeans.core.windows.frames.DefaultContainerImpl.react ivateSelectedComponent(DefaultContainerImpl.java:1089) [catch] at org.netbeans.core.windows.frames.DefaultContainerImpl$3.run (DefaultContainerImpl.java:1261) at java.awt.event.InvocationEvent.dispatch (InvocationEvent.java:178) at java.awt.EventQueue.dispatchEvent (EventQueue.java:448) at java.awt.EventDispatchThread.pumpOneEventForHierarchy (EventDispatchThread.java:197) at java.awt.EventDispatchThread.pumpEventsForHierarchy (EventDispatchThread.java:150) at java.awt.EventDispatchThread.pumpEvents (EventDispatchThread.java:144) at java.awt.EventDispatchThread.pumpEvents (EventDispatchThread.java:136) at java.awt.EventDispatchThread.run (EventDispatchThread.java:99)
Created attachment 8448 [details] Mauricio's ide.log file
Created attachment 8449 [details] NPE IDE log.
Reassigning to java module.
It seems that protected field "EditorSupport.Editor.pane" is still null when the componentActivated() event arrives to JavaEditor.EditorComponent instance. AFAIK (learned from Peter Z.) componentActivated() should be called after componentShowing() call - which is supposed to fill the "pane" field, right ? As for reproduction, my guess is that it happens after restart w/ opened editor windows or when switching workspaces (?)
Reassigning to OpenIDE for evaluation of the CloneableEditorSupp part; lowering priority to P3 - it does not happen every time a file is opened.
I'm not able to reproduce it and from the exception I'm not able to found where could be the problem. I'm moving to window system whether guys there have an idea what could went wrong. As Svata wrote, it looks that componentActivated() is called before componentShowing().
*** Issue 29613 has been marked as a duplicate of this issue. ***
Check also issue 29613 which I just closed as duplicate of this one. It is about exactly the same problem but in XML editor. Do you have an idea what might be wrong?
If you look at the issue I filed 29613 which is marked as a duplicate of this you will see something not entirely source editor related to me. *********** Exception occurred ************ at Tue Dec 17 22:32:36 EST 2002 Annotation: Root C:\j2sdk1.4.0_02\jre\classes does not exist. java.lang. this path is been created out of thin air. The classes subdirectory is bizarre. I have such a subdirectory in one of my projects which is often deleted and recreated by my ant script. NB does have problems with deleting directories it has mounted on occasion. it could be related to mounts of filesystems getting paths mixed up for some reason. When this happens it did seem to happen upon opening the IDE. Never when switching projects though.
Its coming back to me now. It has happened since so it took time to remeber back to this incident. When I was working with web modules, I had an ant script that would delete certain xml files, then recreate them. of course if the build fails, the xml files are no longer present. I think its related to the timing of when files get deleted / recreated during the build process. at least for me it seemed that way.
The problem is like Svata descibed, there is missing componentShowing call. Reproducible case is necessary to find out, so I could find out the cause.
*** This issue has been marked as a duplicate of 27899 ***
verified, closed - it's duplicate.