Issue in opening some of the project files in new version of IntelliJ (2022.1)

Answered

I am currently using IntelliJ IDE (2022.1) and having issues in opening some of the Java project files. It used to work in older version of IntelliJ (2021). It just keep loading the file......

This is the log error in IntelliJ : 

java.lang.NoSuchMethodError: 'int com.intellij.psi.PsiJavaCodeReferenceElement.getTypeParameterCount()'
        at com.intellij.psi.impl.source.PsiClassReferenceType.getParameterCount(PsiClassReferenceType.java:212)
        at com.intellij.psi.impl.TypeCorrector.correctType(TypeCorrector.java:42)
        at com.intellij.psi.impl.PsiClassImplUtil.correctType(PsiClassImplUtil.java:688)
        at com.intellij.psi.impl.ScopedClassHierarchy.calcImmediateSupersWithCapturing(ScopedClassHierarchy.java:156)
        at com.intellij.psi.impl.ScopedClassHierarchy.lambda$getImmediateSupersWithCapturing$2(ScopedClassHierarchy.java:139)
        at com.intellij.openapi.util.RecursionManager$1.computePreventingRecursion(RecursionManager.java:114)
        at com.intellij.openapi.util.RecursionGuard.doPreventingRecursion(RecursionGuard.java:44)
        at com.intellij.openapi.util.RecursionManager.doPreventingRecursion(RecursionManager.java:68)
        at com.intellij.psi.impl.ScopedClassHierarchy.getImmediateSupersWithCapturing(ScopedClassHierarchy.java:139)
        at com.intellij.psi.impl.PsiClassImplUtil.getScopeCorrectedSuperTypes(PsiClassImplUtil.java:695)
        at com.intellij.psi.impl.PsiSuperMethodImplUtil.buildMethodHierarchy(PsiSuperMethodImplUtil.java:178)
        at com.intellij.psi.impl.PsiSuperMethodImplUtil.lambda$static$1(PsiSuperMethodImplUtil.java:33)
        at com.intellij.util.containers.ConcurrentFactoryMap$2.create(ConcurrentFactoryMap.java:174)
        at com.intellij.util.containers.ConcurrentFactoryMap.get(ConcurrentFactoryMap.java:40)
        at com.intellij.psi.impl.PsiSuperMethodImplUtil.lambda$getHierarchicalMethodSignature$3(PsiSuperMethodImplUtil.java:363)
        at com.intellij.util.containers.ConcurrentFactoryMap$2.create(ConcurrentFactoryMap.java:174)
        at com.intellij.util.containers.ConcurrentFactoryMap.get(ConcurrentFactoryMap.java:40)
        at com.intellij.psi.impl.PsiSuperMethodImplUtil.getHierarchicalMethodSignature(PsiSuperMethodImplUtil.java:372)
        at com.intellij.psi.impl.PsiSuperMethodImplUtil.getHierarchicalMethodSignature(PsiSuperMethodImplUtil.java:352)
        at com.intellij.psi.impl.compiled.ClsMethodImpl.getHierarchicalMethodSignature(ClsMethodImpl.java:98)
        at com.intellij.codeInsight.AnnotationUtil.lambda$getSuperAnnotationOwners$4(AnnotationUtil.java:190)
        at com.intellij.psi.util.CachedValuesManager$1.compute(CachedValuesManager.java:158)
        at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:39)
        at com.intellij.util.CachedValueBase.lambda$getValueWithLock$3(CachedValueBase.java:227)
        at com.intellij.util.CachedValueBase.computeData(CachedValueBase.java:42)
        at com.intellij.util.CachedValueBase.lambda$getValueWithLock$4(CachedValueBase.java:227)
        at com.intellij.openapi.util.RecursionManager$1.computePreventingRecursion(RecursionManager.java:114)
        at com.intellij.openapi.util.RecursionGuard.doPreventingRecursion(RecursionGuard.java:44)
        at com.intellij.openapi.util.RecursionManager.doPreventingRecursion(RecursionManager.java:68)
        at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:228)
        at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:28)
        at com.intellij.util.CachedValuesManagerImpl.getCachedValue(CachedValuesManagerImpl.java:72)
        at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:155)
        at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:121)
        at com.intellij.codeInsight.AnnotationUtil.getSuperAnnotationOwners(AnnotationUtil.java:186)
        at com.intellij.codeInsight.AnnotationUtil.findAnnotationAndOwnerInHierarchy(AnnotationUtil.java:244)
        at com.intellij.codeInsight.AnnotationUtil.findAnnotationInHierarchy(AnnotationUtil.java:223)
        at com.intellij.codeInsight.AnnotationUtil.findAnnotationInHierarchy(AnnotationUtil.java:217)
0
11 comments

Hi, I saw that you have already created a ticket with the same question. Let's use one place (here or that ticket) for communication so we don't need to reply with the same info in the two places.

Could you please try to disable all downloaded plugins from Settings/Preferences | Plugins | gear icon in the right of the "Installed" Tab | Disable All Downloaded Plugins and restart the IDEA to see whether a plugin causes this problem? (You could reenable them all together in the same place)
If it doesn't help, please share the IDE logs from IDE main menu Help | Show Log in , upload it https://uploads.jetbrains.com/, and tell us the upload id. Thanks.

0

I see the same issue on MacOS and am not able to find any resolution. Can you please point me to the resolution. Thanks.

-----------------------------------

IntelliJ IDEA 2022.1.3 (Ultimate Edition)
Build #IU-221.5921.22, built on June 21, 2022
Runtime version: 11.0.15+10-b2043.56 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 13.1
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 10

Kotlin: 221-1.6.21-release-337-IJ5921.22

----------------------------------

2023-01-20 16:58:13,218 [ 222011] SEVERE - #c.i.c.d.i.PassExecutorService - 'int com.intellij.psi.PsiJavaCodeReferenceElement.getTypeParameterCount()'
java.lang.NoSuchMethodError: 'int com.intellij.psi.PsiJavaCodeReferenceElement.getTypeParameterCount()'
at com.intellij.psi.impl.source.PsiClassReferenceType.getParameterCount(PsiClassReferenceType.java:212)
at com.intellij.psi.impl.TypeCorrector.correctType(TypeCorrector.java:42)
at com.intellij.psi.impl.PsiClassImplUtil.correctType(PsiClassImplUtil.java:688)
at com.intellij.psi.impl.ScopedClassHierarchy.visitType(ScopedClassHierarchy.java:70)
at com.intellij.psi.impl.ScopedClassHierarchy.getSuperClassSubstitutor(ScopedClassHierarchy.java:106)
at com.intellij.psi.impl.JavaClassSupersImpl.getSuperSubstitutorWithCaching(JavaClassSupersImpl.java:95)
at com.intellij.psi.impl.JavaClassSupersImpl.getSuperClassSubstitutor(JavaClassSupersImpl.java:55)
at com.intellij.psi.util.TypeConversionUtil.isClassAssignable(TypeConversionUtil.java:1088)
at com.intellij.psi.util.TypeConversionUtil.isAssignable(TypeConversionUtil.java:980)
at com.intellij.psi.util.TypeConversionUtil.isAssignable(TypeConversionUtil.java:825)
at com.intellij.psi.infos.MethodCandidateInfo.checkFunctionalInterfaceAcceptance(MethodCandidateInfo.java:231)
at com.intellij.psi.infos.MethodCandidateInfo.lambda$getPertinentApplicabilityLevelInner$1(MethodCandidateInfo.java:161)
at com.intellij.psi.util.PsiUtil.getApplicabilityLevel(PsiUtil.java:590)
at com.intellij.psi.infos.MethodCandidateInfo.lambda$getPertinentApplicabilityLevelInner$2(MethodCandidateInfo.java:160)
at com.intellij.psi.infos.MethodCandidateInfo.lambda$computeWithKnownTargetType$9(MethodCandidateInfo.java:200)
at com.intellij.psi.ThreadLocalTypes.lambda$performWithTypes$0(ThreadLocalTypes.java:60)
at com.intellij.openapi.util.RecursionManager$1.computePreventingRecursion(RecursionManager.java:114)
at com.intellij.openapi.util.RecursionGuard.doPreventingRecursion(RecursionGuard.java:44)
at com.intellij.psi.ThreadLocalTypes.performWithTypes(ThreadLocalTypes.java:60)
at com.intellij.psi.infos.MethodCandidateInfo.computeWithKnownTargetType(MethodCandidateInfo.java:193)
at com.intellij.psi.infos.MethodCandidateInfo.lambda$getPertinentApplicabilityLevelInner$3(MethodCandidateInfo.java:150)
at com.intellij.openapi.util.RecursionManager$1.computePreventingRecursion(RecursionManager.java:114)
at com.intellij.openapi.util.RecursionGuard.doPreventingRecursion(RecursionGuard.java:44)
at com.intellij.psi.infos.MethodCandidateInfo.getPertinentApplicabilityLevelInner(MethodCandidateInfo.java:168)
at com.intellij.psi.infos.MethodCandidateInfo.getPertinentApplicabilityLevel(MethodCandidateInfo.java:122)
at com.intellij.psi.scope.conflictResolvers.JavaMethodsConflictResolver.getPertinentApplicabilityLevel(JavaMethodsConflictResolver.java:410)
at com.intellij.psi.scope.conflictResolvers.JavaMethodsConflictResolver.checkApplicability(JavaMethodsConflictResolver.java:385)
at com.intellij.psi.scope.conflictResolvers.JavaMethodsConflictResolver.guardedOverloadResolution(JavaMethodsConflictResolver.java:83)
at com.intellij.psi.scope.conflictResolvers.JavaMethodsConflictResolver.resolveConflict(JavaMethodsConflictResolver.java:54)
at com.intellij.psi.scope.processor.ConflictFilterProcessor.getResult(ConflictFilterProcessor.java:76)
at com.intellij.psi.impl.source.tree.java.PsiReferenceExpressionImpl.resolveToMethod(PsiReferenceExpressionImpl.java:302)
at com.intellij.psi.impl.source.tree.java.PsiReferenceExpressionImpl.resolve(PsiReferenceExpressionImpl.java:276)
at com.intellij.psi.impl.source.tree.java.PsiReferenceExpressionImpl.access$000(PsiReferenceExpressionImpl.java:45)
at com.intellij.psi.impl.source.tree.java.PsiReferenceExpressionImpl$OurGenericsResolver.resolve(PsiReferenceExpressionImpl.java:183)
at com.intellij.psi.impl.source.tree.java.PsiReferenceExpressionImpl$OurGenericsResolver.resolve(PsiReferenceExpressionImpl.java:173)
at com.intellij.psi.impl.source.resolve.ResolveCache.lambda$resolveWithCaching$2(ResolveCache.java:184)
at com.intellij.openapi.util.Computable.get(Computable.java:16)
at com.intellij.psi.impl.source.resolve.ResolveCache.lambda$loggingResolver$4(ResolveCache.java:260)
at com.intellij.openapi.util.RecursionManager$1.computePreventingRecursion(RecursionManager.java:114)
at com.intellij.openapi.util.RecursionGuard.doPreventingRecursion(RecursionGuard.java:44)
at com.intellij.openapi.util.RecursionManager.doPreventingRecursion(RecursionManager.java:68)
at com.intellij.psi.impl.source.resolve.ResolveCache.resolve(ResolveCache.java:237)
at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:184)
at com.intellij.psi.impl.PsiImplUtil.multiResolveImpl(PsiImplUtil.java:798)
at com.intellij.psi.impl.PsiImplUtil.multiResolveImpl(PsiImplUtil.java:790)
at com.intellij.psi.impl.PsiImplUtil.multiResolveImpl(PsiImplUtil.java:766)
at com.intellij.psi.impl.source.tree.java.PsiReferenceExpressionImpl.multiResolve(PsiReferenceExpressionImpl.java:339)
at com.intellij.psi.impl.source.tree.java.PsiReferenceExpressionImpl.advancedResolve(PsiReferenceExpressionImpl.java:492)
at com.intellij.psi.impl.source.tree.java.PsiMethodCallExpressionImpl.resolveMethodGenerics(PsiMethodCallExpressionImpl.java:51)
at com.intellij.codeInsight.hints.JavaInlayHintsProvider.hints(JavaHintUtils.kt:65)
at com.intellij.codeInsight.hints.JavaInlayParameterHintsProvider.getParameterHints(JavaInlayParameterHintsProvider.kt:33)
at com.intellij.codeInsight.hints.InlayParameterHintsProvider.getParameterHints(InlayParameterHintsProvider.java:42)
at com.intellij.codeInsight.hints.ParameterHintsPass.process(ParameterHintsPass.java:124)
at com.intellij.codeInsight.hints.ParameterHintsPass.lambda$doCollectInformation$2(ParameterHintsPass.java:116)
at java.base/java.lang.Iterable.forEach(Iterable.java:75)
at com.intellij.codeInsight.hints.ParameterHintsPass.doCollectInformation(ParameterHintsPass.java:116)
at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:57)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$1(PassExecutorService.java:419)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1152)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$2(PassExecutorService.java:412)
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.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.doRun(PassExecutorService.java:411)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$run$0(PassExecutorService.java:387)
at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:174)
at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:213)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:385)
at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:184)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
0
Pathan, is the issue reproducible with all of the downloaded plugins disabled and IDE restarted? 'Preferences | Plugins | ⚙ | Disable all downloaded plugins'

If it doesn't help, close the IDE, remove the .idea directory and any .iml files in the project root, then open IDEA and reopen the project.
0

Hi Arina,

yes to both suggestions. After disabling downloaded plugins, I see the following and the file still does not open in the editor -

2023-01-24 16:18:59,888 [  41476] SEVERE - #c.i.c.d.i.PassExecutorService - Cannot create class com.intellij.codeInspection.javaapi.JavaApiUsageInspection (classloader=PluginClassLoader(plugin=PluginDescriptor(name=Java, id=com.intellij.java, descriptorPath=plugin.xml, path=/Applications/IntelliJ IDEA.app/Contents/plugins/java, version=221.5921.22, package=null, isBundled=true), packagePrefix=null, instanceId=13, state=active))
com.intellij.diagnostic.PluginException: Cannot create class com.intellij.codeInspection.javaapi.JavaApiUsageInspection (classloader=PluginClassLoader(plugin=PluginDescriptor(name=Java, id=com.intellij.java, descriptorPath=plugin.xml, path=/Applications/IntelliJ IDEA.app/Contents/plugins/java, version=221.5921.22, package=null, isBundled=true), packagePrefix=null, instanceId=13, state=active))
at com.intellij.serviceContainer.ComponentManagerImpl.instantiateClass(ComponentManagerImpl.kt:884)
at com.intellij.serviceContainer.ComponentManagerImpl.instantiateClass(ComponentManagerImpl.kt:901)
at com.intellij.serviceContainer.LazyExtensionInstance.createInstance(LazyExtensionInstance.java:55)
at com.intellij.openapi.extensions.CustomLoadingExtensionPointBean.createInstance(CustomLoadingExtensionPointBean.java:29)
at com.intellij.codeInspection.InspectionEP.instantiateTool(InspectionEP.java:208)
at com.intellij.codeInspection.ex.InspectionToolWrapper.getTool(InspectionToolWrapper.java:81)
at com.intellij.codeInspection.ex.InspectionProfileWrapper.checkInspectionsDuplicates(InspectionProfileWrapper.java:64)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.getInspectionTools(LocalInspectionsPass.java:448)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.collectInformationWithProgress(LocalInspectionsPass.java:115)
at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:97)
at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:57)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$1(PassExecutorService.java:419)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1152)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$2(PassExecutorService.java:412)
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.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.doRun(PassExecutorService.java:411)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$run$0(PassExecutorService.java:387)
at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:174)
at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:213)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:385)
at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:184)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
Caused by: java.lang.NoSuchMethodError: 'java.util.Set com.intellij.openapi.module.LanguageLevelUtil.loadSignatureList(java.net.URL)'
at com.intellij.codeInspection.javaapi.JavaApiUsageInspection.<clinit>(JavaApiUsageInspection.kt:245)
at java.base/jdk.internal.misc.Unsafe.allocateInstance(Native Method)
at java.base/java.lang.invoke.DirectMethodHandle.allocateInstance(DirectMethodHandle.java:482)
at com.intellij.serviceContainer.ComponentManagerImpl.instantiateClass(ComponentManagerImpl.kt:845)
... 29 more

also see the following exceptions in the log

2023-01-24 16:19:39,388 [  80976] SEVERE - #o.j.c.AsyncPromise - Could not initialize class com.intellij.lang.java.parser.JavadocParser
java.lang.NoClassDefFoundError: Could not initialize class com.intellij.lang.java.parser.JavadocParser
at com.intellij.psi.impl.source.tree.JavaDocElementType$3.lambda$$0(JavaDocElementType.java:83)
at com.intellij.lang.java.parser.JavaParserUtil.parseFragment(JavaParserUtil.java:208)
at com.intellij.lang.java.parser.JavaParserUtil.parseFragment(JavaParserUtil.java:192)
at com.intellij.psi.impl.source.tree.JavaDocElementType$3.parseContents(JavaDocElementType.java:93)
at com.intellij.psi.impl.source.tree.LazyParseableElement.lambda$ensureParsed$2(LazyParseableElement.java:175)
at com.intellij.psi.impl.DebugUtil.performPsiModification(DebugUtil.java:481)
at com.intellij.psi.impl.source.tree.LazyParseableElement.ensureParsed(LazyParseableElement.java:174)
at com.intellij.psi.impl.source.tree.LazyParseableElement.getFirstChildNode(LazyParseableElement.java:226)
at com.intellij.psi.impl.source.tree.LazyParseableElement.getFirstChildNode(LazyParseableElement.java:24)
at com.intellij.lang.folding.CustomFoldingBuilder.addCustomFoldingRegionsRecursively(CustomFoldingBuilder.java:76)
at com.intellij.lang.folding.CustomFoldingBuilder.addCustomFoldingRegionsRecursively(CustomFoldingBuilder.java:95)
at com.intellij.lang.folding.CustomFoldingBuilder.addCustomFoldingRegionsRecursively(CustomFoldingBuilder.java:95)
at com.intellij.lang.folding.CustomFoldingBuilder.addCustomFoldingRegionsRecursively(CustomFoldingBuilder.java:95)
at com.intellij.lang.folding.CustomFoldingBuilder.buildFoldRegions(CustomFoldingBuilder.java:41)
at com.intellij.lang.folding.LanguageFolding.buildFoldingDescriptorsNoPlaceholderCaching(LanguageFolding.java:89)
at com.intellij.lang.folding.CompositeFoldingBuilder.buildFoldRegions(CompositeFoldingBuilder.java:36)
at com.intellij.lang.folding.LanguageFolding.buildFoldingDescriptorsNoPlaceholderCaching(LanguageFolding.java:89)
at com.intellij.lang.folding.LanguageFolding.buildFoldingDescriptors(LanguageFolding.java:72)
at com.intellij.codeInsight.folding.impl.FoldingUpdate.getFoldingsFor(FoldingUpdate.java:272)
at com.intellij.codeInsight.folding.impl.FoldingUpdate.getFoldingsFor(FoldingUpdate.java:238)
at com.intellij.codeInsight.folding.impl.CodeFoldingManagerImpl.buildInitialFoldings(CodeFoldingManagerImpl.java:135)
at com.intellij.openapi.fileEditor.impl.text.PsiAwareTextEditorImpl.loadEditorInBackground(PsiAwareTextEditorImpl.java:58)
at com.intellij.openapi.fileEditor.impl.text.AsyncEditorLoader.lambda$scheduleLoading$0(AsyncEditorLoader.java:95)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:803)
at com.intellij.openapi.fileEditor.impl.text.AsyncEditorLoader.lambda$scheduleLoading$1(AsyncEditorLoader.java:93)
at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.insideReadAction(NonBlockingReadActionImpl.java:536)
at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.lambda$attemptComputation$3(NonBlockingReadActionImpl.java:501)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1152)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runInReadActionWithWriteActionPriority$0(ProgressIndicatorUtils.java:75)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runActionAndCancelBeforeWrite(ProgressIndicatorUtils.java:158)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runWithWriteActionPriority$1(ProgressIndicatorUtils.java:115)
at com.intellij.openapi.progress.ProgressManager.lambda$runProcess$0(ProgressManager.java:58)
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.ProgressManager.runProcess(ProgressManager.java:58)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runWithWriteActionPriority(ProgressIndicatorUtils.java:112)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runInReadActionWithWriteActionPriority(ProgressIndicatorUtils.java:75)
at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.attemptComputation(NonBlockingReadActionImpl.java:501)
at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.lambda$transferToBgThread$1(NonBlockingReadActionImpl.java:408)
at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:241)
at com.intellij.util.concurrency.BoundedTaskExecutor.access$200(BoundedTaskExecutor.java:31)
at com.intellij.util.concurrency.BoundedTaskExecutor$1.execute(BoundedTaskExecutor.java:214)
at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:212)
at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:203)
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)


and

2023-01-24 16:19:39,340 [  80928] SEVERE - #o.j.c.AsyncPromise - DOC_TAG_VALUE_COLON
java.lang.NoSuchFieldError: DOC_TAG_VALUE_COLON
at com.intellij.lang.java.parser.JavadocParser.<clinit>(JavadocParser.java:19)
at com.intellij.psi.impl.source.tree.JavaDocElementType$3.lambda$$0(JavaDocElementType.java:83)
at com.intellij.lang.java.parser.JavaParserUtil.parseFragment(JavaParserUtil.java:208)
at com.intellij.lang.java.parser.JavaParserUtil.parseFragment(JavaParserUtil.java:192)
at com.intellij.psi.impl.source.tree.JavaDocElementType$3.parseContents(JavaDocElementType.java:93)
at com.intellij.psi.impl.source.tree.LazyParseableElement.lambda$ensureParsed$2(LazyParseableElement.java:175)
at com.intellij.psi.impl.DebugUtil.performPsiModification(DebugUtil.java:481)
at com.intellij.psi.impl.source.tree.LazyParseableElement.ensureParsed(LazyParseableElement.java:174)
at com.intellij.psi.impl.source.tree.LazyParseableElement.getFirstChildNode(LazyParseableElement.java:226)
at com.intellij.psi.impl.source.tree.CompositeElement.countChildren(CompositeElement.java:415)
at com.intellij.psi.impl.source.tree.CompositeElement.getChildren(CompositeElement.java:362)
at com.intellij.psi.formatter.FormatterUtil.containsWhiteSpacesOnly(FormatterUtil.java:273)
at com.intellij.psi.formatter.java.AbstractJavaBlock.composeCodeBlock(AbstractJavaBlock.java:1294)
at com.intellij.psi.formatter.java.CodeBlockBlock.buildChildren(CodeBlockBlock.java:132)
at com.intellij.psi.formatter.java.CodeBlockBlock.buildChildren(CodeBlockBlock.java:106)
at com.intellij.psi.formatter.common.AbstractBlock.getSubBlocks(AbstractBlock.java:48)
at com.intellij.psi.formatter.common.NewLineBlocksIterator.pushAll(NewLineBlocksIterator.java:135)
at com.intellij.psi.formatter.common.NewLineBlocksIterator.next(NewLineBlocksIterator.java:105)
at com.intellij.psi.codeStyle.autodetect.FormatterBasedLineIndentInfoBuilder.getBlocksStartingNewLine(FormatterBasedLineIndentInfoBuilder.java:130)
at com.intellij.psi.codeStyle.autodetect.FormatterBasedLineIndentInfoBuilder.build(FormatterBasedLineIndentInfoBuilder.java:54)
at com.intellij.psi.codeStyle.autodetect.IndentOptionsDetectorImpl.calcLineIndentInfo(IndentOptionsDetectorImpl.java:88)
at com.intellij.psi.codeStyle.autodetect.IndentOptionsDetectorImpl.getIndentOptionsAdjuster(IndentOptionsDetectorImpl.java:52)
at com.intellij.psi.codeStyle.DetectAndAdjustIndentOptionsTask.calcIndentAdjuster(DetectAndAdjustIndentOptionsTask.java:67)
at com.intellij.psi.codeStyle.DetectAndAdjustIndentOptionsTask.lambda$scheduleInBackgroundForCommittedDocument$1(DetectAndAdjustIndentOptionsTask.java:104)
at com.intellij.openapi.progress.ProgressManager.lambda$runProcess$0(ProgressManager.java:58)
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.ProgressManager.runProcess(ProgressManager.java:58)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.withTimeout(ProgressIndicatorUtils.java:317)
at com.intellij.psi.codeStyle.DetectAndAdjustIndentOptionsTask.lambda$scheduleInBackgroundForCommittedDocument$2(DetectAndAdjustIndentOptionsTask.java:103)
at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.insideReadAction(NonBlockingReadActionImpl.java:536)
at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.lambda$attemptComputation$3(NonBlockingReadActionImpl.java:501)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1152)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runInReadActionWithWriteActionPriority$0(ProgressIndicatorUtils.java:75)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runActionAndCancelBeforeWrite(ProgressIndicatorUtils.java:158)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runWithWriteActionPriority$1(ProgressIndicatorUtils.java:115)
at com.intellij.openapi.progress.ProgressManager.lambda$runProcess$0(ProgressManager.java:58)
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.ProgressManager.runProcess(ProgressManager.java:58)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runWithWriteActionPriority(ProgressIndicatorUtils.java:112)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runInReadActionWithWriteActionPriority(ProgressIndicatorUtils.java:75)
at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.attemptComputation(NonBlockingReadActionImpl.java:501)
at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.lambda$transferToBgThread$1(NonBlockingReadActionImpl.java:408)
at com.intellij.util.concurrency.BoundedTaskExecutor.doRun(BoundedTaskExecutor.java:241)
at com.intellij.util.concurrency.BoundedTaskExecutor.access$200(BoundedTaskExecutor.java:31)
at com.intellij.util.concurrency.BoundedTaskExecutor$1.execute(BoundedTaskExecutor.java:214)
at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:212)
at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:203)
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)

 

0
Hi Pathan,

Do you have this problem in a single project or are other projects affected too?

What kind of files are affected? Java classes?

Is the problem reproducible in the latest version 2022.3.1? https://www.jetbrains.com/idea/download

Does it help if you perform 'File | Invalidate Caches & Restart'?

If not, please provide the logs: **Help | Collect Logs and Diagnostics Data** (entire archive). You can upload them privately to https://uploads.jetbrains.com and provide the upload id here.
0

Hi Arina,

"File | invalidate Caches & Restart" did not help.

the problem with this particular project is opening Java classes. For another simple project, I can open Java class files fine. But still see multiple exceptions in the log. Unfortunately, this is the only version I can install and use as per the company policy.  Uploaded the logs and diagnostics data - Upload ID: 2023_01_25_p1cyBsZqTHM83qZnC6o9Px

0
Thanks Pathan.

Did this project work before? What changes did you make in the IDE or OS that might have prompted the errors?

Does it happen with all Java files in that project, even newly created?

Does it help if you open Project Structure, remove the JDK currently used by the project, save settings, then reopen and choose a different JDK?

Does the problem persist if you restore the IDE settings to defaults? **File | Manage IDE Settings | Restore Default Settings** (a backup copy of your current settings will be saved)

Looks like your CPU architecture is x86_64 (Intel)? Make sure you downloaded and installed the appropriate version of the IDE distro package (Intel vs Apple Silicon/M1): https://www.jetbrains.com/idea/download/other.html
0

Hi Arina,

Not sure if this is an automated response or otherwise. Every time I provide some information there is another set of questions.

- It happens with all Java files in the project

- I am using the JDK packaged with IntelliJ; that is supposed to work out of the box

- Yes, problem persists if I restore IDE settings to default

- I am aware of the CPU architecture; but the version I am using supports it. As I said earlier, I cannot download and install anything from the Internet as per the company policy. Have to use the version that is provided.

Did you get a chance to look at the logs and see what is wrong?

0

@Pathan Arif Hi, in your log, I saw some bundled plugins are from the 2022.1 version but some are from the 2021.3 for some reason (maybe there was an issue when updating the IDEA). This could cause some problems.

>  com.intellij.tracing.ide (221.5921.22), Microservices UAST (213.6777.52)

Try to remove the `/Applications/IntelliJ IDEA.app` and `/Users/your_system_name/Library/Application Support/JetBrains/IntelliJIdea2022.1/plugins` folder. Then reinstall the IDEA from your company's provided version. Would it help?

If it doesn't help, use a tool to calculate your company provided 2022.1.3 (221.5921.22)'s dmg sha256 to see if the same as our official one from (https://www.jetbrains.com/idea/download/other.html)

The official 2022.1.3 x86-64 dmg's SHA256 is 6eadf5d683e03e0eab64aa0a17945f9d

0

Thanks Lejia. Will give that a try and provide updates.

0

That was it. I eventually got to following the above steps and it resolved the issue. Thanks Lejia!

0

Please sign in to leave a comment.