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 262781

Summary: IllegalStateException: JsIndexer.postScanTask can be called only from scanner thread.
Product: javascript Reporter: Martin Fousek <marfous>
Component: EditorAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: normal CC: aldobrucale, jskrivanek, mps77, toben
Priority: P3    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 225190
Attachments: stacktrace
stacktrace
stacktrace

Description Martin Fousek 2016-07-12 13:43:10 UTC
Build: NetBeans IDE Dev (Build 20160712-acf03bd04ba3)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.5-b02, Java(TM) SE Runtime Environment, 1.8.0_05-b13
OS: Linux

User Comments:
marfous: scanning of the JS project




Stacktrace: 
java.lang.IllegalStateException: JsIndexer.postScanTask can be called only from scanner thread.
   at org.netbeans.modules.javascript2.editor.index.JsIndexer$Factory.addPostScanTask(JsIndexer.java:436)
   at org.netbeans.modules.javascript2.editor.index.JsIndexer$PostScanProvider.addPostScanTask(JsIndexer.java:471)
   at org.netbeans.modules.html.angular.index.AngularJsIndexer.index(AngularJsIndexer.java:186)
   at org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor$3.run(Indexable.java:248)
   at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.runIndexer(RepositoryUpdater.java:298)
   at org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor.index(Indexable.java:246)
Comment 1 Martin Fousek 2016-07-12 13:43:12 UTC
Created attachment 160356 [details]
stacktrace
Comment 2 Petr Pisl 2016-08-05 09:36:00 UTC
This is really strange. It could not happened according the stacktrace. Only if the indexing is called outside scanning.
Comment 3 Jiri Skrivanek 2016-09-23 11:52:03 UTC
Created attachment 162187 [details]
stacktrace

Scanning ABCS project.
Comment 4 Exceptions Reporter 2017-03-30 14:10:09 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=225190
Comment 5 aldobrucale 2017-09-07 11:05:13 UTC
Created attachment 165103 [details]
stacktrace

Opening a json file