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 207563

Summary: [71cat] IllegalStateException: Annotation not added: org-netbeans-spi-editor-hints-parser_annotation_verifierVariable $mv_um02 seems to be unused in its scope ---- (Alt-Enter shows hints)
Product: editor Reporter: paolosca <paolosca>
Component: -- Other --Assignee: Milutin Kristofic <mkristofic>
Status: RESOLVED WORKSFORME    
Severity: normal CC: boblau8686, dagguh, exceptions_reporter, flobee, jamiepeloquin_nf, jglick, marfous, mkristofic, mmirilovic, phpguru, prasadr24, rgw21, szmitek, thesnob, tmysik, tobypinder, vinaykrsharma1986
Priority: P2    
Version: 7.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 184600
Attachments: stacktrace
stacktrace

Description paolosca 2012-01-20 11:51:11 UTC
This bug was originally marked as duplicate of bug 197717, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201201180601)
VM: OpenJDK Client VM, 21.0-b17, OpenJDK Runtime Environment, 1.7.0_147-icedtea-b147
OS: Linux

User Comments:
paolosca: Editing a php file.




Stacktrace: 
java.lang.IllegalStateException: Annotation not added: org-netbeans-spi-editor-hints-parser_annotation_verifierVariable $mv_um02 seems to be unused in its scope
----
(Alt-Enter shows hints)
   at org.netbeans.modules.editor.NbEditorDocument.removeAnnotation(NbEditorDocument.java:256)
   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:300)
   at org.netbeans.modules.editor.hints.AnnotationHolder.detachAnnotation(AnnotationHolder.java:279)
   at org.netbeans.modules.editor.hints.AnnotationHolder.updateAnnotationOnLine(AnnotationHolder.java:706)
Comment 1 paolosca 2012-01-20 11:51:14 UTC
Created attachment 115110 [details]
stacktrace
Comment 2 Jan Lahoda 2012-04-20 13:26:02 UTC
*** Bug 207678 has been marked as a duplicate of this bug. ***
Comment 3 Jan Lahoda 2012-04-20 13:26:34 UTC
*** Bug 210934 has been marked as a duplicate of this bug. ***
Comment 4 Jan Lahoda 2012-04-20 13:47:58 UTC
Note sure why this happens - the spi.editor.hints' ParseErrorAnnotation seems safe (it runs attach/detach under a lock, and keeps flag whether the attach method was called - might be better to set the flag after the annotation has been attached, though), but so seems the code in NbEditorDocument.

Bug #211256 may be related - the client is different, so the bug can either be in that client (and a similar bug in spi.editor.hints), or there could be a bug in NbED causing both of these problems.
Comment 5 Quality Engineering 2012-05-05 10:20:59 UTC
Integrated into 'main-golden', will be available in build *201205050400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/c768cc8a4a15
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #207563: adding some more logging.
Comment 6 Jan Lahoda 2012-08-07 15:13:32 UTC
More debugging:
http://hg.netbeans.org/jet-main/rev/a07459a90c41

Let see where this gets us.
Comment 7 Quality Engineering 2012-08-10 02:25:13 UTC
Integrated into 'main-golden', will be available in build *201208100001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/a07459a90c41
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #207563: trying to prevent detaching form a different Document + assert.
Comment 8 Tomas Mysik 2012-08-10 07:30:46 UTC
Created attachment 122969 [details]
stacktrace
Comment 9 Milutin Kristofic 2012-10-26 12:21:55 UTC
*** Bug 217593 has been marked as a duplicate of this bug. ***
Comment 10 Milutin Kristofic 2012-12-10 15:03:29 UTC
*** Bug 223352 has been marked as a duplicate of this bug. ***
Comment 11 Marian Mirilovic 2013-01-03 14:08:40 UTC
158 dups, tens from 7.3 Beta 2 ... and still coming -> P2
Comment 12 Milutin Kristofic 2013-01-07 14:28:13 UTC
Fixed after beta 2 in Bug #221639.
Comment 13 Milutin Kristofic 2013-01-08 11:29:12 UTC
*** Bug 224585 has been marked as a duplicate of this bug. ***
Comment 14 Milutin Kristofic 2013-01-08 11:29:27 UTC
*** Bug 224591 has been marked as a duplicate of this bug. ***
Comment 15 Milutin Kristofic 2013-01-21 15:32:15 UTC
*** Bug 224900 has been marked as a duplicate of this bug. ***
Comment 16 Milutin Kristofic 2013-01-21 15:35:13 UTC
*** Bug 224742 has been marked as a duplicate of this bug. ***
Comment 17 Milutin Kristofic 2013-01-22 14:31:57 UTC
*** Bug 225185 has been marked as a duplicate of this bug. ***
Comment 18 Milutin Kristofic 2013-01-23 13:49:55 UTC
*** Bug 225199 has been marked as a duplicate of this bug. ***
Comment 19 Milutin Kristofic 2013-01-24 11:21:09 UTC
*** Bug 225276 has been marked as a duplicate of this bug. ***
Comment 20 Milutin Kristofic 2013-01-28 16:00:44 UTC
*** Bug 225420 has been marked as a duplicate of this bug. ***
Comment 21 Milutin Kristofic 2013-01-30 10:10:23 UTC
*** Bug 225514 has been marked as a duplicate of this bug. ***
Comment 22 Milutin Kristofic 2013-02-04 11:47:01 UTC
*** Bug 225624 has been marked as a duplicate of this bug. ***
Comment 23 Milutin Kristofic 2013-02-07 10:56:33 UTC
*** Bug 225816 has been marked as a duplicate of this bug. ***
Comment 24 Milutin Kristofic 2013-02-11 10:49:17 UTC
*** Bug 225934 has been marked as a duplicate of this bug. ***
Comment 25 Milutin Kristofic 2013-02-12 16:34:55 UTC
*** Bug 226020 has been marked as a duplicate of this bug. ***
Comment 26 Milutin Kristofic 2013-02-14 11:10:17 UTC
*** Bug 226103 has been marked as a duplicate of this bug. ***
Comment 27 Milutin Kristofic 2013-02-18 09:43:03 UTC
*** Bug 226202 has been marked as a duplicate of this bug. ***
Comment 28 Milutin Kristofic 2013-02-25 09:20:41 UTC
*** Bug 226613 has been marked as a duplicate of this bug. ***
Comment 29 Milutin Kristofic 2013-02-25 12:20:02 UTC
*** Bug 226647 has been marked as a duplicate of this bug. ***
Comment 30 Milutin Kristofic 2013-02-25 15:03:05 UTC
*** Bug 226658 has been marked as a duplicate of this bug. ***
Comment 31 Milutin Kristofic 2013-03-04 11:24:28 UTC
*** Bug 226935 has been marked as a duplicate of this bug. ***
Comment 32 Milutin Kristofic 2013-03-10 17:21:00 UTC
*** Bug 227231 has been marked as a duplicate of this bug. ***