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 75538 - Random NPE .
Summary: Random NPE .
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Tomasz Slota
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2006-04-26 09:59 UTC by Peter Pis
Modified: 2006-08-22 14:36 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exception stack trace (1.18 KB, text/plain)
2006-06-12 13:36 UTC, Max Sauer
Details
exception beta2 (1.11 KB, text/plain)
2006-07-14 08:30 UTC, Peter Pis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Pis 2006-04-26 09:59:31 UTC
NetBeans 5.5 (200604260200), jdk1.5.0_06

Occasionaly there is NPE thrown. I don't have any j2ee project opened. Working
with j2se projects only.

Exception:
java.lang.RuntimeException: java.lang.NullPointerException: Passed null to
FileOwnerQuery.getOwner(FileObject)
	at
org.netbeans.modules.j2ee.verification.JEEVerificationAnnotationProvider.processDocument(JEEVerificationAnnotationProvider.java:230)
	at
org.netbeans.modules.j2ee.verification.JEEVerificationAnnotationProvider.access$100(JEEVerificationAnnotationProvider.java:63)
	at
org.netbeans.modules.j2ee.verification.JEEVerificationAnnotationProvider$MDRListener$1.run(JEEVerificationAnnotationProvider.java:319)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:493)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:926)
Caused by: java.lang.NullPointerException: Passed null to
FileOwnerQuery.getOwner(FileObject)
	at org.netbeans.api.project.FileOwnerQuery.getOwner(FileOwnerQuery.java:59)
	at
org.netbeans.modules.j2ee.verification.ejb.EJBAPIProblemFinder.isApplicable(EJBAPIProblemFinder.java:84)
	at
org.netbeans.modules.j2ee.verification.ejb.EJBAPIProblemFinder.parseDocument(EJBAPIProblemFinder.java:56)
	at
org.netbeans.modules.j2ee.verification.JEEVerificationAnnotationProvider.processDocument(JEEVerificationAnnotationProvider.java:215)
	... 4 more
Comment 1 Peter Pis 2006-04-26 12:15:45 UTC
Still don't have reproducible steps, but it happens more frequently.
Comment 2 Pavel Buzek 2006-04-26 21:11:05 UTC
Tomasz, is it you or Sahoo?
Comment 3 Tomasz Slota 2006-04-27 13:25:58 UTC
it's Sahoo's code, but I will fix it. 
Comment 4 Tomasz Slota 2006-04-27 14:07:14 UTC
It's extremely strange that JavaModel.getFileObject() returns null for non-null
resource, it would be great if there was a way to reproduce this bug
Comment 5 Tomasz Slota 2006-05-01 12:33:47 UTC
I haven't been able to reproduce this issue. I have commited a workaround to the
'realease55' and 'realease55_beta' braches. If the abnormal situation occurs  a
debug message is logged (informational exception) and it encourages to report
the circumstances of the occurance to this issue thread. 

This problem is no longer a nuisance to the end user - decreasing priority. Will
change to WORSFORME if no re-occurences are reported.

Checking in EJBAPIProblemFinder.java;
/cvs/j2ee/verification/src/org/netbeans/modules/j2ee/verification/ejb/Attic/EJBAPIProblemFinder.java,v
 <--  EJBAPIProblemFinder.java
new revision: 1.1.2.7; previous revision: 1.1.2.6

Checking in EJBAPIProblemFinder.java;
/cvs/j2ee/verification/src/org/netbeans/modules/j2ee/verification/ejb/Attic/EJBAPIProblemFinder.java,v
 <--  EJBAPIProblemFinder.java
new revision: 1.1.2.6.2.1; previous revision: 1.1.2.6
Comment 6 Tomasz Slota 2006-05-30 08:56:41 UTC
Unable to reproduce, see the previous comment
Comment 7 Max Sauer 2006-06-12 13:35:14 UTC
I was told by stack trace to report this:) 

java.lang.NullPointerException: Unable to retrieve FileObject for class class
javaapplication1.NewClass1
Please report occurence of this exception at
http://www.netbeans.org/issues/show_bug.cgi?id=75538
        at
org.netbeans.modules.j2ee.verification.ejb.EJBAPIProblemFinder.isApplicable(EJBAPIProblemFinder.java:106)
        at
org.netbeans.modules.j2ee.verification.ejb.EJBAPIProblemFinder.parseDocument(EJBAPIProblemFinder.java:57)
..
(whole stack trace attached)

It happened when I deleted a Junit test from inside of a j2se project. Sorry, no
steps to reproduce.

----------
NetBeans 5.5Dev 200606120200
JDK 1.6.0-rc-b87
Solaris 10/sparc
Comment 8 Max Sauer 2006-06-12 13:36:08 UTC
Created attachment 30968 [details]
exception stack trace
Comment 9 Peter Pis 2006-07-14 08:30:30 UTC
Created attachment 31878 [details]
exception beta2
Comment 10 Peter Pis 2006-07-14 08:32:02 UTC
Happened again. But still can't find any reproducible steps. 

Product Version         = NetBeans 5.5 Beta 2 (Build 200607121600)
Operating System        = Windows XP version 5.1 running on x86
Java; VM; Vendor; Home  = 1.5.0_07; Java HotSpot(TM) Client VM 1.5.0_07-b03; Sun
Microsystems Inc.; d:\Java\jdk1.5.0_07
Comment 11 Tomasz Slota 2006-08-03 14:34:42 UTC
fixed together with issue 81604.

Checking in ejb/EJBApiHelper.java;
/cvs/j2ee/verification/src/org/netbeans/modules/j2ee/verification/ejb/Attic/EJBApiHelper.java,v  <--  
EJBApiHelper.java
new revision: 1.1.2.8; previous revision: 1.1.2.7
done
Checking in ejb/EJBAPIProblemFinder.java;
/cvs/j2ee/verification/src/org/netbeans/modules/j2ee/verification/ejb/Attic/
EJBAPIProblemFinder.java,v  <--  EJBAPIProblemFinder.java
new revision: 1.1.2.10; previous revision: 1.1.2.9
done
Checking in persistence/PersistenceAPIHelper.java;
/cvs/j2ee/verification/src/org/netbeans/modules/j2ee/verification/persistence/Attic/
PersistenceAPIHelper.java,v  <--  PersistenceAPIHelper.java
new revision: 1.1.2.12; previous revision: 1.1.2.11
done
Comment 12 Peter Pis 2006-08-22 14:36:44 UTC
Haven't seen for ages. Verified.