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 221037 - !!WARNING!! Missing READ-LOCK when accessing TokenHierarchy
Summary: !!WARNING!! Missing READ-LOCK when accessing TokenHierarchy
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-29 15:49 UTC by Tomas Mysik
Modified: 2012-11-02 03:29 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Mysik 2012-10-29 15:49:33 UTC
Just noticed this message in the IDE log. Please evaluate, thanks.

INFO [org.netbeans.spi.lexer.MutableTextInput]: !!WARNING!! Missing READ-LOCK when accessing TokenHierarchy: input-source:org.netbeans.modules.editor.NbEditorDocument@1fdcb677, mimeType='text/html', kitClass=null, length=758, version=1, file=org.netbeans.modules.html.HtmlDataObject@c9046b1[/home/gapon/NetBeansProjects/AngularJS/app/index.html@117bd5fc:58c04c2b]
Comment 1 Marek Fukala 2012-11-01 14:43:06 UTC
As there's no stacktrace showing the culprit, I assume you faced this:

INFO [org.netbeans.spi.lexer.MutableTextInput]: !!WARNING!! Missing READ-LOCK when accessing TokenHierarchy: input-source:org.netbeans.modules.editor.NbEditorDocument@563d7a, mimeType='text/html', kitClass=null, length=4521, version=1, file=org.netbeans.modules.html.HtmlDataObject@1cf7aa0[/Users/marekfukala/NetBeansProjects/EaselDemo/public_html/about.html@2541dc01:1be818e]
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.html.editor.api.Utils.getJoinedHtmlSequence(Utils.java:71)
	at org.netbeans.modules.html.editor.refactoring.RefactoringContext.findInlinedStyles(RefactoringContext.java:194)
	at org.netbeans.modules.html.editor.refactoring.HtmlSpecificRefactoringsProvider.canExtractInlineStyle(HtmlSpecificRefactoringsProvider.java:94)
...

which is the only I can reproduce (happens if you invoke popup on html file and expand the refactor submenu).
Comment 2 Marek Fukala 2012-11-01 14:51:35 UTC
fixed in web-main#57dc94229834
Comment 3 Quality Engineering 2012-11-02 03:29:13 UTC
Integrated into 'main-golden', will be available in build *201211020001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/57dc94229834
User: Marek Fukala <mfukala@netbeans.org>
Log: #221037 - !!WARNING!! Missing READ-LOCK when accessing TokenHierarchy