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 77054

Summary: [verification] NPE from the 'AttributeNotAllowedOnInterfaces' assertion
Product: javaee Reporter: Jindrich Sedek <jsedek>
Component: EditorAssignee: Tomasz Slota <tslota>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: project with wrong syntax that is throwing an exception
log file

Description Jindrich Sedek 2006-05-30 10:01:18 UTC
Open the attatched project and open file "Source packages/test/NewWebService.java"
after few seconds java.lang.RuntimeException: java.lang.NullPointerException occurs
Comment 1 Jindrich Sedek 2006-05-30 10:03:06 UTC
Created attachment 30654 [details]
project with wrong syntax that is throwing an exception
Comment 2 Jindrich Sedek 2006-05-30 10:03:29 UTC
Created attachment 30655 [details]
log file
Comment 3 Tomasz Slota 2006-06-02 11:31:35 UTC
The interesting part of the stack trace is

java.lang.NullPointerException
	at java.util.TreeMap.compare(TreeMap.java:1093)
	at java.util.TreeMap.getEntry(TreeMap.java:347)
	at java.util.TreeMap.containsKey(TreeMap.java:204)
	at java.util.TreeSet.contains(TreeSet.java:196)
	at 
org.netbeans.modules.j2ee.verification.ws.checks.AttributeNotAllowedOnInterfaces.parseDocument
(AttributeNotAllowedOnInterfaces.java:53)
	at org.netbeans.modules.j2ee.verification.JEEVerificationAnnotationProvider.processDocument
(JEEVerificationAnnotationProvider.java:240)
	at org.netbeans.modules.j2ee.verification.JEEVerificationAnnotationProvider.access$100
(JEEVerificationAnnotationProvider.java:68)
	at org.netbeans.modules.j2ee.verification.JEEVerificationAnnotationProvider$ChangeListener
$1.run(JEEVerificationAnnotationProvider.java:344)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:493)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:926)
Comment 4 Tomasz Slota 2006-06-02 13:42:24 UTC
Fixed. Change log:

http://j2ee.netbeans.org/source/browse/j2ee/verification/src/org/netbeans/modules/j2ee/verification/
ws/checks/AttributeNotAllowedOnInterfaces.java?r1=1.1.2.3&r2=1.1.2.4
Comment 5 Jindrich Sedek 2006-06-05 14:14:06 UTC
verified NetBeans 5.5Dev 200606050200