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 - IllegalStateException: JsIndexer.postScanTask can be called only from scanner thread.
Summary: IllegalStateException: JsIndexer.postScanTask can be called only from scanner...
Status: NEW
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Petr Pisl
Depends on:
Reported: 2016-07-12 13:43 UTC by Martin Fousek
Modified: 2018-03-09 17:59 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 225190

stacktrace (4.51 KB, text/plain)
2016-07-12 13:43 UTC, Martin Fousek
stacktrace (4.51 KB, text/plain)
2016-09-23 11:52 UTC, Jiri Skrivanek
stacktrace (4.51 KB, text/plain)
2017-09-07 11:05 UTC, aldobrucale

Note You need to log in before you can comment on or make changes to this bug.
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

java.lang.IllegalStateException: JsIndexer.postScanTask can be called only from scanner thread.
   at org.netbeans.modules.javascript2.editor.index.JsIndexer$Factory.addPostScanTask(
   at org.netbeans.modules.javascript2.editor.index.JsIndexer$PostScanProvider.addPostScanTask(
   at org.netbeans.modules.html.angular.index.AngularJsIndexer.index(
   at org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor$
   at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.runIndexer(
   at org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor.index(
Comment 1 Martin Fousek 2016-07-12 13:43:12 UTC
Created attachment 160356 [details]
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]

Scanning ABCS project.
Comment 4 Exceptions Reporter 2017-03-30 14:10:09 UTC
This bug already has 5 duplicates 
Comment 5 aldobrucale 2017-09-07 11:05:13 UTC
Created attachment 165103 [details]

Opening a json file