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 197717

Summary: IllegalStateException: Annotation not added: null
Product: editor Reporter: paolosca <paolosca>
Component: Hints & AnnotationsAssignee: Jan Lahoda <jlahoda>
Status: RESOLVED FIXED    
Severity: normal CC: cyhelsky, efbiaiinzinz, exceptions_reporter, gameshas, jakubsacha, LOBsTerr, michbarsinai, ovrabec, richard798, twistedmind, vinaykrsharma1986, vkvashin, yuriy_lalym
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 178026
Attachments: stacktrace
stacktrace
stacktrace
stacktrace

Description paolosca 2011-04-13 17:55:05 UTC
Build: NetBeans IDE Dev (Build nbms-and-javadoc-6677-on-110218)
VM: Java HotSpot(TM) Client VM, 19.1-b02, Java(TM) SE Runtime Environment, 1.6.0_24-b07
OS: Linux

User Comments:
paolosca: deleted a characted in a php file

paolosca: Editing a php file, copied a word with ctrl+c, double clicked on another word and pasted with ctrl+v to replace it.




Stacktrace: 
java.lang.IllegalStateException: Annotation not added: null
   at org.netbeans.modules.editor.NbEditorDocument.removeAnnotation(NbEditorDocument.java:252)
   at org.openide.text.NbDocument.removeAnnotation(NbDocument.java:519)
   at org.netbeans.modules.editor.hints.ParseErrorAnnotation.detachAnnotation(ParseErrorAnnotation.java:156)
   at org.netbeans.modules.editor.hints.AnnotationHolder$NbDocumentAttacher.detachAnnotation(AnnotationHolder.java:247)
   at org.netbeans.modules.editor.hints.AnnotationHolder.detachAnnotation(AnnotationHolder.java:226)
   at org.netbeans.modules.editor.hints.AnnotationHolder.updateAnnotationOnLine(AnnotationHolder.java:691)
Comment 1 paolosca 2011-04-13 17:55:11 UTC
Created attachment 107733 [details]
stacktrace
Comment 2 Ondrej Vrabec 2011-05-18 14:11:25 UTC
Created attachment 108377 [details]
stacktrace
Comment 3 Exceptions Reporter 2011-05-18 14:11:41 UTC
This bug already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=178026
Comment 4 Miloslav Metelka 2011-05-19 12:15:03 UTC
*** Bug 196792 has been marked as a duplicate of this bug. ***
Comment 5 Miloslav Metelka 2011-05-19 12:15:08 UTC
*** Bug 196880 has been marked as a duplicate of this bug. ***
Comment 6 Miloslav Metelka 2011-05-19 12:15:13 UTC
*** Bug 196976 has been marked as a duplicate of this bug. ***
Comment 7 Jan Lahoda 2011-05-23 14:22:27 UTC
Not quite sure what is the root cause. I have found on occurrence of incorrect synchronization, fixed by:
http://hg.netbeans.org/jet-main/rev/95e6d607b5a4

Lets see if the bug will go away or not.
Comment 8 Quality Engineering 2011-05-24 10:37:53 UTC
Integrated into 'main-golden', will be available in build *201105240400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/95e6d607b5a4
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #197717: fixing incorrect synchronization - possible cause of the an IllegalStateException.
Comment 9 Petr Cyhelsky 2011-06-01 15:44:56 UTC
Created attachment 108657 [details]
stacktrace
Comment 10 Petr Cyhelsky 2011-06-01 15:50:56 UTC
Created attachment 108658 [details]
stacktrace
Comment 11 Jan Lahoda 2011-06-08 19:08:23 UTC
I added the synchronization fix to release701:
http://hg.netbeans.org/releases/rev/145c949cab8d

Lets see if that helps.
Comment 12 Milutin Kristofic 2011-11-24 10:45:59 UTC
*** Bug 205465 has been marked as a duplicate of this bug. ***
Comment 13 Milutin Kristofic 2012-06-14 16:01:25 UTC
*** Bug 214211 has been marked as a duplicate of this bug. ***