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 226639

Summary: !!WARNING!! Missing READ-LOCK when accessing TokenHierarchy: input-source:org.netbeans.modules.csl.core.GsfDocument@12c7e20a
Product: php Reporter: Tomas Mysik <tmysik>
Component: DebuggerAssignee: Ondrej Brejla <obrejla>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 7.3   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Tomas Mysik 2013-02-25 10:54:02 UTC
Just noticed it in the IDE log [1].

Thanks.

Product Version: NetBeans IDE Dev (Build 20130225-6b9492f3b28c)
Updates: Updates available
Java: 1.6.0_41; Java HotSpot(TM) 64-Bit Server VM 20.14-b01
Runtime: Java(TM) SE Runtime Environment 1.6.0_41-b02
System: Linux version 3.5.0-25-generic running on amd64; UTF-8; cs_CZ (nb)

[1]
INFO [org.netbeans.spi.lexer.MutableTextInput]: !!WARNING!! Missing READ-LOCK when accessing TokenHierarchy: input-source:org.netbeans.modules.csl.core.GsfDocument@12c7e20a, mimeType='text/x-php5', kitClass=null, length=5993, version=11, file=org.netbeans.modules.csl.core.GsfDataObject@74d8130f[/home/gapon/NetBeansProjects/_important/TodoList/www/index.php@46c4d7a0:5fa63fa]
java.lang.Exception
        at org.netbeans.lib.lexer.TokenHierarchyOperation.ensureReadLocked(TokenHierarchyOperation.java:397)
        at org.netbeans.lib.lexer.TokenHierarchyOperation.tokenSequence(TokenHierarchyOperation.java:422)
        at org.netbeans.lib.lexer.TokenHierarchyOperation.tokenSequence(TokenHierarchyOperation.java:418)
        at org.netbeans.api.lexer.TokenHierarchy.tokenSequence(TokenHierarchy.java:186)
        at org.netbeans.modules.php.dbgp.annotations.BrkpntAnnotation.getAnnotationType(BrkpntAnnotation.java:103)
        at org.netbeans.modules.editor.NbEditorDocument$AnnotationDescDelegate.getAnnotationType(NbEditorDocument.java:335)
        at org.netbeans.editor.GlyphGutter$GutterMouseListener.computeAnnotationTypesToAnalyze(GlyphGutter.java:986)
        at org.netbeans.editor.GlyphGutter$GutterMouseListener.mouseClicked(GlyphGutter.java:939)
        at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:252)
Comment 1 Milutin Kristofic 2013-02-27 13:26:55 UTC
I thing php is not taking read-lock. 

org.netbeans.modules.php.dbgp.annotations.BrkpntAnnotation.getAnnotationType(BrkpntAnnotation.java:103)
Comment 2 Ondrej Brejla 2013-02-28 08:14:23 UTC
Fixed in web-main #2c1aeb6ad3d8
Comment 3 Quality Engineering 2013-03-01 02:02:03 UTC
Integrated into 'main-golden', will be available in build *201302282300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/2c1aeb6ad3d8
User: Ondrej Brejla <obrejla@netbeans.org>
Log: #226639 - !!WARNING!! Missing READ-LOCK when accessing TokenHierarchy: input-source:org.netbeans.modules.csl.core.GsfDocument@12c7e20a