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.
today many tests fails, because IDE log contains such exception in messages.log INFO [org.netbeans.spi.lexer.MutableTextInput]: !!WARNING!! Missing READ-LOCK when accessing TokenHierarchy: input-source:org.netbeans.modules.editor.NbEditorDocument@53cf68, mimeType='text/x-c++', kitClass=null, length=329, version=2, file=org.netbeans.modules.cnd.source.CCDataObject@192de7f[/export1/hudson/workspace/ss-test-intel-S2-1/tests/build/test/qa-functional/data/cnd/editor/EnumTestCase/file.cc@f5f9c701:11ea763] 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.api.lexer.TokenHierarchy.embeddedTokenSequences(TokenHierarchy.java:265) at org.netbeans.cnd.api.lexer.CndLexerUtilities.getCppTokenSequence(CndLexerUtilities.java:137) at org.netbeans.modules.cnd.completion.cplusplus.ext.CompletionSupport.isIncludeCompletionEnabled(CompletionSupport.java:158) at org.netbeans.modules.cnd.completion.cplusplus.ext.CompletionSupport.isPreprocCompletionEnabled(CompletionSupport.java:134) at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery._checkCondition(CsmCompletionQuery.java:256) at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery.checkCondition(CsmCompletionQuery.java:235) at org.netbeans.modules.cnd.completion.cplusplus.CsmCompletionProvider.createTask(CsmCompletionProvider.java:116) at org.netbeans.modules.editor.completion.CompletionImpl.completionQuery(CompletionImpl.java:697) at org.netbeans.modules.editor.completion.CompletionImpl.showCompletion(CompletionImpl.java:901) at org.netbeans.modules.editor.completion.CompletionImpl.showCompletion(CompletionImpl.java:872) at org.netbeans.api.editor.completion.Completion.showCompletion(Completion.java:85) at org.netbeans.jellytools.modules.editor.CompletionJListOperator$2.run(CompletionJListOperator.java:217) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199) at java.awt.EventQueue.dispatchEvent(EventQueue.java:597) at org.netbeans.jemmy.QueueTool$JemmyQueue.dispatchEvent(QueueTool.java:609) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161) at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Scenario: - Create C/C++ Application project in Oracle Solaris Studio - Check messages.log ==> other but same exception INFO [org.netbeans.spi.lexer.MutableTextInput]: !!WARNING!! Missing READ-LOCK when accessing TokenHierarchy: input-source:org.netbeans.modules.editor.NbEditorDocument@1ee3d8e, mimeType='text/x-c++', kitClass=null, length=201, version=34, file=null java.lang.Exception at org.netbeans.lib.lexer.TokenHierarchyOperation.ensureReadLocked(TokenHierarchyOperation.java:397) at org.netbeans.lib.lexer.TokenHierarchyOperation.tokenSequenceList(TokenHierarchyOperation.java:434) at org.netbeans.api.lexer.TokenHierarchy.tokenSequenceList(TokenHierarchy.java:229) at org.netbeans.modules.editor.indent.TaskHandler$MimeItem.indentRegions(TaskHandler.java:433) at org.netbeans.modules.editor.indent.spi.Context.indentRegions(Context.java:258) at org.netbeans.modules.cnd.editor.reformat.Reformatter.reformat(Reformatter.java:104) at org.netbeans.modules.editor.indent.TaskHandler$MimeItem.runTask(TaskHandler.java:548) at org.netbeans.modules.editor.indent.TaskHandler.runTasks(TaskHandler.java:316) at org.netbeans.modules.editor.indent.IndentImpl.reformat(IndentImpl.java:357) at org.netbeans.modules.editor.indent.api.Reformat.reformat(Reformat.java:154) at org.netbeans.modules.cnd.source.SourceAbstractDataLoader$CndFormat.createFromTemplate(SourceAbstractDataLoader.java:270)
A similar error has already been fixed. Maybe you can adopt the solution? Have a look at http://netbeans.org/bugzilla/show_bug.cgi?id=220312#c1
*** Bug 221172 has been marked as a duplicate of this bug. ***
There several similar issues with the same stacktrace - see http://netbeans.org/bugzilla/buglist.cgi?list_id=113249&short_desc=%20Missing%20READ-LOCK%20when%20accessing%20TokenHierarchy&query_format=advanced&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=STARTED&bug_status=REOPENED&bug_status=RESOLVED&bug_status=VERIFIED&bug_status=CLOSED&short_desc_type=allwordssubstr So i like to see this issue given more priority. P2-Canidate?
I'll leave two issues in two different bugs, just renamed them to reflect caller
*** This bug has been marked as a duplicate of bug 220309 ***