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.
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
Still don't have reproducible steps, but it happens more frequently.
Tomasz, is it you or Sahoo?
it's Sahoo's code, but I will fix it.
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
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
Unable to reproduce, see the previous comment
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
Created attachment 30968 [details] exception stack trace
Created attachment 31878 [details] exception beta2
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
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
Haven't seen for ages. Verified.