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 29780 - Null Pointer Exception at JavaEditor$JavaEditorComponent
Summary: Null Pointer Exception at JavaEditor$JavaEditorComponent
Status: CLOSED DUPLICATE of bug 27899
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Peter Zavadsky
URL:
Keywords: RANDOM
: 29613 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-01-05 01:59 UTC by mgomes
Modified: 2008-12-22 19:56 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Mauricio's ide.log file (178.28 KB, text/plain)
2003-01-06 09:04 UTC, Martin Roskanin
Details
NPE IDE log. (176.04 KB, text/plain)
2003-01-06 09:05 UTC, ehucka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mgomes 2003-01-05 01:59:06 UTC
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)
Comment 1 Martin Roskanin 2003-01-06 09:04:50 UTC
Created attachment 8448 [details]
Mauricio's ide.log file
Comment 2 ehucka 2003-01-06 09:05:31 UTC
Created attachment 8449 [details]
NPE IDE log.
Comment 3 Martin Roskanin 2003-01-06 09:07:53 UTC
Reassigning to java module.
Comment 4 Svata Dedic 2003-01-06 11:02:57 UTC
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 (?)
Comment 5 Svata Dedic 2003-01-08 12:29:26 UTC
Reassigning to OpenIDE for evaluation of the CloneableEditorSupp part;
lowering priority to P3 - it does not happen every time a file is opened.
Comment 6 David Konecny 2003-01-20 13:40:24 UTC
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().
Comment 7 David Konecny 2003-01-20 13:57:57 UTC
*** Issue 29613 has been marked as a duplicate of this issue. ***
Comment 8 David Konecny 2003-01-20 14:00:05 UTC
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? 
Comment 9 dnoyeB 2003-01-20 23:11:01 UTC
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.
Comment 10 dnoyeB 2003-01-20 23:35:43 UTC
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.
Comment 11 Peter Zavadsky 2003-01-29 10:18:25 UTC
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.
Comment 12 Peter Zavadsky 2003-02-20 15:33:09 UTC

*** This issue has been marked as a duplicate of 27899 ***
Comment 13 Marian Mirilovic 2003-07-22 14:31:33 UTC
verified, closed - it's duplicate.
Comment 14 Jan Chalupa 2003-11-03 17:45:42 UTC

*** This issue has been marked as a duplicate of 27899 ***