Hi,
Provided ZAP serves as a daemon service, Java code was written to concurrently issue multiple spider crawling in different threads, each of which creates a new session using api.core.newSession(apiKey, <differentPath>, "False"); However, ClientApiException was thrown indicating Scan In Progress (scan_in_progress). Only the first thread finished the spider scanning while others got failed. My question is, is it possible now for ZAP to run several scanning simultaneously within multiple threads? If not, is there any work-around ? Please advise. Thank you.
Exceptions stack trace as follows:
org.zaproxy.clientapi.core.ClientApiException: Scan In Progress (scan_in_progress)
at org.zaproxy.clientapi.core.ApiResponseFactory.getResponse(Unknown Source)
at org.zaproxy.clientapi.core.ClientApi.callApi(Unknown Source)
at org.zaproxy.clientapi.gen.Spider.scan(Spider.java:164)
at sogou.bizdev.aquarius.service.ZAPThread.scan(ZAPThread.java:154)
at sogou.bizdev.aquarius.service.ZAPThread.run(ZAPThread.java:217)
at java.lang.Thread.run(Unknown Source)