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 - [verification] NPE from the 'AttributeNotAllowedOnInterfaces' assertion
Summary: [verification] NPE from the 'AttributeNotAllowedOnInterfaces' assertion
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Editor (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Tomasz Slota
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-30 10:01 UTC by Jindrich Sedek
Modified: 2006-06-05 14:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
project with wrong syntax that is throwing an exception (11.83 KB, application/octet-stream)
2006-05-30 10:03 UTC, Jindrich Sedek
Details
log file (18.01 KB, text/plain)
2006-05-30 10:03 UTC, Jindrich Sedek
Details

Note You need to log in before you can comment on or make changes to this bug.
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