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 39202 - Exception after closing Java file w/ close button on editor tab
Summary: Exception after closing Java file w/ close button on editor tab
Status: RESOLVED DUPLICATE of bug 38321
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-25 10:49 UTC by _ tboudreau
Modified: 2007-09-26 09:14 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ tboudreau 2004-01-25 10:49:20 UTC
I closed a file and the following exception appeared; I've 
seen it before a couple of times, but it doesn't happen every 
time.  May be an editor bug - it looks like the editor UI is 
trying to calculate Implemented/Overridden method 
annotations for something that is not there.

Annotation: Exception occurred in Request Processor
java.lang.NullPointerException
	at 
org.netbeans.modules.java.JavaEditor.findOverridenMethods
(JavaEditor.java:522)
	at 
org.netbeans.modules.java.JavaEditor.findOverridenMethods
(JavaEditor.java:559)
	at 
org.netbeans.modules.java.JavaEditor.processOverridenAnn
otation(JavaEditor.java:569)
	at 
org.netbeans.modules.java.JavaEditor.objectParsed(JavaEdit
or.java:328)
	at 
org.netbeans.modules.java.JavaEditor$WParsingListener.obj
ectParsed(JavaEditor.java:2742)
	at 
org.netbeans.modules.java.Parsing.fireEvent(Parsing.java:
61)
	at 
org.netbeans.modules.java.parser.ParsingSupport$1.run(Par
singSupport.java:370)
	at org.openide.util.Task.run(Task.java:136)
	at 
org.openide.util.RequestProcessor$Task.run(RequestProces
sor.java:330)
[catch] at 
org.openide.util.RequestProcessor$Processor.run(RequestPr
ocessor.java:680)
Comment 1 Marian Petras 2004-01-29 13:13:14 UTC
I encountered the same exception when I invoked action "Close All
Documents" on an editor tab. The error message dialog appeared at the
moment all the documents were closed. I think all the tabs contained
Java source code files.

I was using my own build (source code from 28/01/2004) with the
following configuration:

    Linux - Fedora (Red Hat 9)
    JDK 1.4.2_03
Comment 2 _ tboudreau 2004-01-29 14:48:59 UTC
FYI, I see this exception several times a day.
Comment 3 _ tboudreau 2004-01-29 15:00:37 UTC
FYI, I see this exception several times a day.

Adding Martin to cc - not sure if this is really a java bug or an editor bug and the Java 
module just triggers it.  Either way, we shouldn't ship with the editor randomly 
throwing exceptions.  Raising priority to P2.
Comment 4 Jan Pokorsky 2004-01-29 15:29:32 UTC
It is a java bug. IMO it is duplicate of the #issue 38321. I have not
been able to reproduce it in last week. Anyway I'll look at it ASAP.

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