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 134282 - NullPointerException at org.netbeans.modules.editor.hints.AnnotationHolder.setErrorDescriptionsImpl
Summary: NullPointerException at org.netbeans.modules.editor.hints.AnnotationHolder.se...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: Max Sauer
URL: http://statistics.netbeans.org/except...
Keywords:
: 148912 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-04-30 18:33 UTC by rptmaestro
Modified: 2009-07-21 08:09 UTC (History)
7 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 17392


Attachments
stacktrace (994 bytes, text/plain)
2008-04-30 18:33 UTC, rptmaestro
Details
stacktrace (994 bytes, text/plain)
2008-06-03 14:30 UTC, wildrower
Details
stacktrace (994 bytes, text/plain)
2008-07-18 22:43 UTC, wrprice
Details
stacktrace (994 bytes, text/plain)
2008-08-15 00:46 UTC, shche123
Details
stacktrace (989 bytes, text/plain)
2009-04-27 18:01 UTC, brettryan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rptmaestro 2008-04-30 18:33:04 UTC
Build: NetBeans IDE 6.1 (Build 200804211638)
VM: Java HotSpot(TM) Client VM, 1.6.0_03-b05, Java(TM) SE Runtime Environment, 1.6.0_03-b05
OS: Windows XP, 5.1, x86

User Comments: 
I had just checked in a java source file into subversion.
Comment 1 rptmaestro 2008-04-30 18:33:10 UTC
Created attachment 60892 [details]
stacktrace
Comment 2 Jan Becicka 2008-05-15 13:25:57 UTC
Max volunteered :)
Comment 3 Exceptions Reporter 2008-05-22 16:46:07 UTC
This issue has already 5 duplicates 
Comment 4 wildrower 2008-06-03 14:30:23 UTC
Created attachment 62318 [details]
stacktrace
Comment 5 wrprice 2008-07-18 22:43:53 UTC
Build: NetBeans IDE 6.1 (Build 200804211638)
VM: Java HotSpot(TM) Client VM, 1.6.0_01-b06, Java(TM) SE Runtime Environment, 1.6.0_01-b06
OS: Windows XP, 5.1, x86

User Comments: 
Comment 6 wrprice 2008-07-18 22:44:03 UTC
Created attachment 65003 [details]
stacktrace
Comment 7 shche123 2008-08-15 00:46:39 UTC
Build: NetBeans IDE 6.1 (Build 200804211638)
VM: Java HotSpot(TM) Client VM, 10.0-b23, Java(TM) SE Runtime Environment, 1.6.0_07-b06
OS: Windows XP, 5.1, x86

User Comments: 
Something about Fixing Imports after @PersistenceContext annotation is used. Keep imports as is, without using .*; ???

Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.editor.hints.AnnotationHolder.setErrorDescriptionsImpl(AnnotationHolder.java:827)
        at org.netbeans.modules.editor.hints.AnnotationHolder.access$1200(AnnotationHolder.java:110)
        at org.netbeans.modules.editor.hints.AnnotationHolder$4.run(AnnotationHolder.java:801)
        at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1217)
        at org.netbeans.modules.editor.hints.AnnotationHolder.setErrorDescriptions(AnnotationHolder.java:798)
        at org.netbeans.modules.editor.hints.HintsControllerImpl.setErrorsImpl(HintsControllerImpl.java:105)
Comment 8 shche123 2008-08-15 00:46:43 UTC
Created attachment 67482 [details]
stacktrace
Comment 9 Max Sauer 2008-10-02 09:57:02 UTC
*** Issue 148912 has been marked as a duplicate of this issue. ***
Comment 10 Max Sauer 2008-10-02 09:57:38 UTC
Another stacktrace, same reason (lines == null).

java.lang.AssertionError
        at org.netbeans.modules.editor.hints.AnnotationHolder.setErrorDescriptionsImpl(AnnotationHolder.java:823)
        at org.netbeans.modules.editor.hints.AnnotationHolder.access$1200(AnnotationHolder.java:110)
        at org.netbeans.modules.editor.hints.AnnotationHolder$4.run(AnnotationHolder.java:801)
        at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1362)
        at org.netbeans.modules.editor.hints.AnnotationHolder.setErrorDescriptions(AnnotationHolder.java:798)
        at org.netbeans.modules.editor.hints.HintsControllerImpl.setErrorsImpl(HintsControllerImpl.java:105)
        at org.netbeans.modules.editor.hints.HintsControllerImpl.setErrors(HintsControllerImpl.java:87)
        at org.netbeans.spi.editor.hints.HintsController$1.run(HintsController.java:73)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)
Comment 11 brettryan 2009-04-27 18:00:58 UTC
Build: NetBeans IDE Dev (Build 200904270201)
VM: Java HotSpot(TM) 64-Bit Server VM, 1.6.0_07-b06-57, Java(TM) SE Runtime Environment, 1.6.0_07-b06-153
OS: Mac OS X, 10.5.6, x86_64

User Comments: 
Editing a java file.

Stacktrace: 
java.lang.AssertionError
        at org.netbeans.modules.editor.hints.AnnotationHolder.setErrorDescriptionsImpl(AnnotationHolder.java:823)
        at org.netbeans.modules.editor.hints.AnnotationHolder.access$1300(AnnotationHolder.java:107)
        at org.netbeans.modules.editor.hints.AnnotationHolder$4.run(AnnotationHolder.java:801)
        at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1366)
        at org.netbeans.modules.editor.hints.AnnotationHolder.setErrorDescriptions(AnnotationHolder.java:798)
        at org.netbeans.modules.editor.hints.HintsControllerImpl.setErrorsImpl(HintsControllerImpl.java:105)
Comment 12 brettryan 2009-04-27 18:01:07 UTC
Created attachment 80999 [details]
stacktrace
Comment 13 Max Sauer 2009-04-29 12:24:40 UTC
Fixed, adding logging.
---
http://hg.netbeans.org/jet-main/rev/f57184826b1f
Comment 14 Quality Engineering 2009-04-30 07:33:06 UTC
Integrated into 'main-golden', will be available in build *200904300201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/f57184826b1f
User: Max Sauer <msauer@netbeans.org>
Log: #134282: NPE at o.n.m.editor.hints.AnnotationHolder.setErrorDescriptionsImpl