microsoft / microsoft/azure-tools-for-java
[IntelliJ][ReportedByUser] Uncaught Exception SparkJobRunAction#update@EditorPopup (com.microsoft.azure.hdinsight.spark.run.action.SparkJobRunAction), actionId=SparkJobRun, text='SparkJobRun' java.lang.NoClassDefFoundError: Could not initialize class com.intellij.psi.impl.java.stubs.index.JavaStubIndexKeys
Open
Nobody has claimed this yet.
Module: HDInsight
- Dominant language
- Java
- Stars
- 262
- Forks
- 185
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 1
Description
IntelliJ build version: 2022.2.3 IU-222.4345.14
OS: Windows 10
JDK: JetBrains s.r.o. 17.0.4.1
Plugin version: 3.70.1-2022.2
Additional Info: None
Parent component:
com.intellij.openapi.wm.impl.IdeRootPane[,8,8,1921x1040,layout=com.intellij.openapi.wm.impl.IdeRootPane$MyRootLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=449,maximumSize=,minimumSize=,preferredSize=]
Error message:
IdeaLoggingEvent[message=SparkJobRunAction#update@EditorPopup (com.microsoft.azure.hdinsight.spark.run.action.SparkJobRunAction), actionId=SparkJobRun, text='SparkJobRun', throwable=java.lang.NoClassDefFoundError: Could not initialize class com.intellij.psi.impl.java.stubs.index.JavaStubIndexKeys
at com.intellij.psi.impl.java.stubs.index.JavaFullClassNameIndex.getKey(JavaFullClassNameIndex.java:29)
at com.microsoft.azure.hdinsight.spark.run.SparkContextUtilsKt.findJavaMainClass(SparkContextUtils.kt:94)
at com.microsoft.azure.hdinsight.spark.run.SparkContextUtilsKt.getSparkMainClassWithElement(SparkContextUtils.kt:83)
at com.microsoft.azure.hdinsight.spark.run.SparkContextUtilsKt.getSparkConfigurationContext(SparkContextUtils.kt
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reported stack trace at SparkContextUtilsKt.findJavaMainClass and JavaFullClassNameIndex.getKey, using the listed IntelliJ, JDK, OS, and plugin versions. Investigate the JavaStubIndexKeys initialization failure during the SparkJobRun action update. Done means the action no longer raises this NoClassDefFoundError in the reported environment.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100