From 81026e8dca5222ee1517c8730955c6400a0528c4 Mon Sep 17 00:00:00 2001 From: Jeremy Long Date: Sat, 20 Feb 2016 08:18:00 -0500 Subject: [PATCH] isolate the analyze method to try and resolve multiple threads hitting the Lucene query parsers at the same time per issue #388 --- .../java/org/owasp/dependencycheck/analyzer/CPEAnalyzer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dependency-check-core/src/main/java/org/owasp/dependencycheck/analyzer/CPEAnalyzer.java b/dependency-check-core/src/main/java/org/owasp/dependencycheck/analyzer/CPEAnalyzer.java index 8f660801e..dc53ee3cd 100644 --- a/dependency-check-core/src/main/java/org/owasp/dependencycheck/analyzer/CPEAnalyzer.java +++ b/dependency-check-core/src/main/java/org/owasp/dependencycheck/analyzer/CPEAnalyzer.java @@ -481,7 +481,7 @@ public class CPEAnalyzer implements Analyzer { * @throws AnalysisException is thrown if there is an issue analyzing the dependency. */ @Override - public void analyze(Dependency dependency, Engine engine) throws AnalysisException { + public synchronized void analyze(Dependency dependency, Engine engine) throws AnalysisException { try { determineCPE(dependency); } catch (CorruptIndexException ex) {