Skip to content
This repository has been archived by the owner on Oct 27, 2024. It is now read-only.

Intellij Plugin throws java exception when it finds issues. #123

Open
schematis opened this issue Jul 15, 2022 · 0 comments
Open

Intellij Plugin throws java exception when it finds issues. #123

schematis opened this issue Jul 15, 2022 · 0 comments

Comments

@schematis
Copy link

schematis commented Jul 15, 2022

When I save a terraform file that has issues in Intellij I see this stacktrace:

java.lang.ClassCastException: class java.lang.String cannot be cast to class org.json.JSONObject (java.lang.String is in module java.base of loader 'bootstrap'; org.json.JSONObject is in unnamed module of loader com.intellij.ide.plugins.cl.PluginClassLoader @684c23c5)
	at com.bridgecrew.CheckovResultKt.getFailedChecksFromResultString(CheckovResult.kt:50)
	at com.bridgecrew.services.CheckovScanService.getGroupedResults(CheckovScanService.kt:138)
	at com.bridgecrew.services.CheckovScanService.analyzeScan(CheckovScanService.kt:110)
	at com.bridgecrew.services.CheckovScanService.access$analyzeScan(CheckovScanService.kt:40)
	at com.bridgecrew.services.CheckovScanService$ScanTask.run(CheckovScanService.kt:165)
	at com.intellij.openapi.progress.impl.CoreProgressManager.startTask(CoreProgressManager.java:442)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.startTask(ProgressManagerImpl.java:114)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcessWithProgressAsynchronously$5(CoreProgressManager.java:493)
	at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$3(ProgressRunner.java:244)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:189)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$12(CoreProgressManager.java:608)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:683)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:639)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:607)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:60)
	at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:176)
	at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:244)
	at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
	at java.base/java.lang.Thread.run(Thread.java:829)

Plugin version: 0.0.20
Intellij version: 2022.1.2 (Ultimate Edition)
OS: macOS
Java Version: 11.0.15

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant