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 230508 - Missing READ-LOCK when accessing TokenHierarchy
Summary: Missing READ-LOCK when accessing TokenHierarchy
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: JAX-WS (show other bugs)
Version: 7.3.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: issues@webservices
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-30 09:23 UTC by Jiri Skrivanek
Modified: 2013-08-19 10:10 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack traces. (55.01 KB, text/plain)
2013-05-30 09:23 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2013-05-30 09:23:02 UTC
Created attachment 135115 [details]
Stack traces.

While executing automated tests there were printed exceptions about missing READ-LOCK. The test was adding web service client call to Servlet, JSP, Java file.

INFO [org.netbeans.spi.lexer.MutableTextInput]: !!WARNING!! Missing READ-LOCK when accessing TokenHierarchy: input-source:org.netbeans.modules.editor.NbEditorDocument@7ff08c03, mimeType='text/x-java', kitClass=null, length=3330, version=3, file=org.netbeans.modules.java.JavaDataObject@75c520f5[D:\hg\releases\websvc.kit\build\test\qa-functional\work\JAVAEE6\MvnWsClientInWeb\src\main\java\org\mycompany\servlets\NewServlet.java@df31cccf:3b9f3915]
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.java.source.save.Reindenter.reindent(Reindenter.java:134)
	at org.netbeans.modules.editor.indent.TaskHandler$MimeItem.runTask(TaskHandler.java:546)
	at org.netbeans.modules.editor.indent.TaskHandler.runTasks(TaskHandler.java:316)
	at org.netbeans.modules.editor.indent.IndentImpl.reindent(IndentImpl.java:291)
	at org.netbeans.modules.editor.indent.api.Indent.reindent(Indent.java:171)
	at org.netbeans.modules.maven.jaxws.actions.JaxWsCodeGenerator.insertMethod(JaxWsCodeGenerator.java:746)
Comment 1 Milan Kuchtiak 2013-08-12 15:08:30 UTC
Fixed:

http://hg.netbeans.org/web-main/rev/357c3050d423