Closed bric3 closed 3 years ago
Original comment by Alexander Bartash (Bitbucket: AlexanderBartash, GitHub: AlexanderBartash):
Issue #36 was marked as a duplicate of this issue.
Original comment by Alexandre Teterin (Bitbucket: senleft, GitHub: senleft):
#!xml
2014-07-11 20:54:09,329 [26667219] ERROR - .psi.impl.compiled.ClsFileImpl - IntelliJ IDEA 13.1.3 Build #IU-135.909
2014-07-11 20:54:09,329 [26667219] ERROR - .psi.impl.compiled.ClsFileImpl - JDK: 1.7.0_45
2014-07-11 20:54:09,329 [26667219] ERROR - .psi.impl.compiled.ClsFileImpl - VM: Java HotSpot(TM) 64-Bit Server VM
2014-07-11 20:54:09,329 [26667219] ERROR - .psi.impl.compiled.ClsFileImpl - Vendor: Oracle Corporation
2014-07-11 20:54:09,329 [26667219] ERROR - .psi.impl.compiled.ClsFileImpl - OS: Linux
2014-07-11 20:54:09,329 [26667219] ERROR - .psi.impl.compiled.ClsFileImpl - Last Action: EditorChooseLookupItem
2014-07-11 20:54:09,329 [26667219] ERROR - .psi.impl.compiled.ClsFileImpl - Current Command: Choose Lookup Item
Stacktrace: http://pastebin.com/3ELqc0PD
Original comment by Danila Galimov (Bitbucket: dgalimov, GitHub: dgalimov):
IDEA version 14 shows this exception:
2014-07-07 17:45:36,403 [266870799] ERROR - .psi.impl.compiled.ClsFileImpl - F:/apache/maven_2/repo/org/mvel/mvel2/2.0.15-e1/mvel2-2.0.15-e1.jar!/org/mvel2/MVEL.class
com.intellij.diagnostic.PluginException: BOOLEAN_KEYWORD != JAVA_CODE_REFERENCE [Plugin: jd-intellij]
at com.intellij.psi.impl.compiled.ClsFileImpl.a(ClsFileImpl.java:361)
at com.intellij.psi.impl.compiled.ClsFileImpl.getMirror(ClsFileImpl.java:343)
at com.intellij.psi.impl.compiled.ClsElementImpl.getText(ClsElementImpl.java:226)
at com.intellij.psi.impl.compiled.ClsElementImpl.getTextLength(ClsElementImpl.java:174)
at com.intellij.psi.impl.PsiDocumentManagerBase.getDocument(PsiDocumentManagerBase.java:170)
at com.intellij.debugger.SourcePosition$SourcePositionCache.calcLine(SourcePosition.java:165)
at com.intellij.debugger.SourcePosition$SourcePositionCache.getLine(SourcePosition.java:138)
at com.intellij.debugger.impl.DebuggerUtilsEx.toXSourcePosition(DebuggerUtilsEx.java:625)
at com.intellij.debugger.engine.JavaStackFrame$1.compute(JavaStackFrame.java:108)
at com.intellij.debugger.engine.JavaStackFrame$1.compute(JavaStackFrame.java:104)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:964)
at com.intellij.debugger.engine.JavaStackFrame.a(JavaStackFrame.java:104)
at com.intellij.debugger.engine.JavaStackFrame.
Original comment by Danila Galimov (Bitbucket: dgalimov, GitHub: dgalimov):
15:49:17 PluginException: C:/Program Files/Java/jdk1.7.0_55/jre/lib/rt.jar!/java/util/HashMap.class: stub:[PsiTypeParameter:K, PsiTypeParameter:V]; mirror:[] [Plugin: jd-intellij] 16:45:21 PluginException: C:/Program Files/Java/jdk1.7.0_55/jre/lib/rt.jar!/java/util/ArrayList.class: stub:[PsiParameter, PsiParameter, PsiParameter, PsiParameter]; mirror:[PsiParameter:paramInt1, PsiParameter:paramInt2, PsiParameter:paramInt3] [Plugin: jd-intellij] 16:45:34 PluginException: C:/Program Files/Java/jdk1.7.0_55/jre/lib/rt.jar!/java/util/HashMap.class: stub:[PsiTypeParameter:K, PsiTypeParameter:V]; mirror:[] [Plugin: jd-intellij] 18:20:22 PluginException: C:/Program Files/Java/jdk1.7.0_55/jre/lib/rt.jar!/java/util/ArrayList.class: stub:[PsiParameter, PsiParameter, PsiParameter, PsiParameter]; mirror:[PsiParameter:paramInt1, PsiParameter:paramInt2, PsiParameter:paramInt3] [Plugin: jd-intellij]
Original comment by Brice Dutheil (Bitbucket: bric3, GitHub: bric3):
I created an issue on IntelliJ tracker : http://youtrack.jetbrains.com/issue/IDEA-124548
Original comment by Brice Dutheil (Bitbucket: bric3, GitHub: bric3):
Ok, I now see it also on OSX, I'll ask an IntelliJ developer as I don't think the plugin is in cause there. On the bright side, this issue shouldn't cause any problem when using the plugin but the annoying PluginException
which happen from time to time.
Original comment by Brice Dutheil (Bitbucket: bric3, GitHub: bric3):
I can't reproduce the error on OSX, IntelliJ 13.1. From the issues raised here, it seems only happening on Windows. I need to check on my windows machine, when free time is available.
Also it may be an issue within IntelliJ.
Caused by: com.intellij.psi.impl.compiled.ClsElementImpl$InvalidMirrorException: stub:[PsiParameter, PsiParameter, PsiParameter, PsiParameter]; mirror:[PsiParameter:paramInt1, PsiParameter:paramInt2, PsiParameter:paramInt3]
Have you tried to invalidate IntelliJ caches ?
Original comment by Alexander Kriegisch (Bitbucket: kriegaex, GitHub: kriegaex):
@chludwig_haufe: Well, my stacktrace above also shows that it happens under 1.7.0_51. ;-)
Here are a few more error messages without full traces, only one-liners:
10:33:26 PluginException: C:/Program Files/Java/jdk1.7.0_51/jre/lib/rt.jar!/java/lang/Thread.class: stub:com.intellij.psi.impl.compiled.ClsDocCommentImpl@7885bbce; mirror:null [Plugin: jd-intellij]
10:52:35 PluginException: C:/Program Files/Java/jdk1.7.0_51/jre/lib/rt.jar!/java/util/ArrayList.class: stub:[PsiParameter, PsiParameter, PsiParameter, PsiParameter]; mirror:[PsiParameter:paramInt1, PsiParameter:paramInt2, PsiParameter:paramInt3] [Plugin: jd-intellij]
10:53:29 PluginException: C:/Program Files/Java/jdk1.7.0_51/jre/lib/rt.jar!/java/util/WeakHashMap.class: stub:[PsiTypeParameter:K, PsiTypeParameter:V]; mirror:[] [Plugin: jd-intellij]
10:53:46 PluginException: C:/Program Files/Java/jdk1.7.0_51/jre/lib/rt.jar!/java/util/HashMap.class: stub:[PsiTypeParameter:K, PsiTypeParameter:V]; mirror:[] [Plugin: jd-intellij]
11:48:24 PluginException: C:/Program Files/Java/jdk1.7.0_51/jre/lib/rt.jar!/java/util/ArrayList.class: stub:[PsiParameter, PsiParameter, PsiParameter, PsiParameter]; mirror:[PsiParameter:paramInt1, PsiParameter:paramInt2, PsiParameter:paramInt3] [Plugin: jd-intellij]
Original comment by Christoph Ludwig (Bitbucket: chludwig_haufe, GitHub: Unknown):
Hi,
I don't know whether this information helps pinning down the exception's cause, but just in case:
Regards Christoph
Original comment by Alexander Kriegisch (Bitbucket: kriegaex, GitHub: kriegaex):
Same here, no matter if I start idea.exe or idea64.exe. My call stack looks slightly different, but probably the reason is the same:
#!text
C:/Program Files/Java/jdk1.7.0_51/jre/lib/rt.jar!/java/util/ArrayList.class: stub:[PsiParameter, PsiParameter, PsiParameter, PsiParameter]; mirror:[PsiParameter:paramInt1, PsiParameter:paramInt2, PsiParameter:paramInt3] [Plugin: jd-intellij]
com.intellij.diagnostic.PluginException: stub:[PsiParameter, PsiParameter, PsiParameter, PsiParameter]; mirror:[PsiParameter:paramInt1, PsiParameter:paramInt2, PsiParameter:paramInt3] [Plugin: jd-intellij]
at com.intellij.psi.impl.compiled.ClsFileImpl.a(ClsFileImpl.java:349)
at com.intellij.psi.impl.compiled.ClsFileImpl.getMirror(ClsFileImpl.java:331)
at com.intellij.psi.impl.compiled.ClsElementImpl.getMirror(ClsElementImpl.java:154)
at com.intellij.psi.impl.compiled.ClsElementImpl.getText(ClsElementImpl.java:226)
at com.intellij.psi.PsiDiamondTypeImpl$2.fun(PsiDiamondTypeImpl.java:228)
at com.intellij.psi.PsiDiamondTypeImpl$2.fun(PsiDiamondTypeImpl.java:225)
at com.intellij.openapi.util.text.StringUtil.join(StringUtil.java:1267)
at com.intellij.openapi.util.text.StringUtil.join(StringUtil.java:1247)
at com.intellij.openapi.util.text.StringUtil.join(StringUtil.java:1239)
at com.intellij.psi.PsiDiamondTypeImpl.a(PsiDiamondTypeImpl.java:225)
at com.intellij.psi.PsiDiamondTypeImpl.access$200(PsiDiamondTypeImpl.java:44)
at com.intellij.psi.PsiDiamondTypeImpl$1.compute(PsiDiamondTypeImpl.java:145)
at com.intellij.psi.PsiDiamondTypeImpl$1.compute(PsiDiamondTypeImpl.java:139)
at com.intellij.openapi.util.RecursionManager$2.doPreventingRecursion(RecursionManager.java:112)
at com.intellij.psi.PsiDiamondTypeImpl.resolveInferredTypesNoCheck(PsiDiamondTypeImpl.java:139)
at com.intellij.psi.PsiDiamondTypeImpl.resolveInferredTypes(PsiDiamondTypeImpl.java:130)
at com.intellij.psi.PsiDiamondTypeImpl.resolveInferredTypes(PsiDiamondTypeImpl.java:112)
at com.intellij.psi.PsiDiamondTypeImpl.resolveInferredTypes(PsiDiamondTypeImpl.java:108)
at com.intellij.psi.impl.PsiImplUtil.typesByTypeElements(PsiImplUtil.java:284)
at com.intellij.psi.impl.PsiImplUtil.typesByReferenceParameterList(PsiImplUtil.java:274)
at com.intellij.psi.impl.source.tree.java.PsiReferenceParameterListImpl.getTypeArguments(PsiReferenceParameterListImpl.java:47)
at com.intellij.codeInsight.folding.impl.JavaFoldingBuilderBase.a(JavaFoldingBuilderBase.java:321)
at com.intellij.codeInsight.folding.impl.JavaFoldingBuilderBase.access$400(JavaFoldingBuilderBase.java:44)
at com.intellij.codeInsight.folding.impl.JavaFoldingBuilderBase$1.visitNewExpression(JavaFoldingBuilderBase.java:717)
at com.intellij.psi.impl.source.tree.java.PsiNewExpressionImpl.accept(PsiNewExpressionImpl.java:382)
at com.intellij.psi.PsiWalkingState.visit(PsiWalkingState.java:61)
at com.intellij.psi.PsiWalkingState.visit(PsiWalkingState.java:26)
at com.intellij.util.WalkingState.walkChildren(WalkingState.java:65)
at com.intellij.util.WalkingState.elementStarted(WalkingState.java:52)
at com.intellij.psi.PsiWalkingState.elementStarted(PsiWalkingState.java:70)
at com.intellij.psi.JavaRecursiveElementWalkingVisitor.visitElement(JavaRecursiveElementWalkingVisitor.java:34)
at com.intellij.psi.JavaElementVisitor.visitCodeBlock(JavaElementVisitor.java:68)
at com.intellij.psi.impl.source.tree.java.PsiCodeBlockImpl.accept(PsiCodeBlockImpl.java:202)
at com.intellij.codeInsight.folding.impl.JavaFoldingBuilderBase.a(JavaFoldingBuilderBase.java:696)
at com.intellij.codeInsight.folding.impl.JavaFoldingBuilderBase.a(JavaFoldingBuilderBase.java:545)
at com.intellij.codeInsight.folding.impl.JavaFoldingBuilderBase.buildLanguageFoldRegions(JavaFoldingBuilderBase.java:484)
at com.intellij.lang.folding.CustomFoldingBuilder.buildFoldRegions(CustomFoldingBuilder.java:34)
at com.intellij.lang.folding.LanguageFolding.buildFoldingDescriptors(LanguageFolding.java:83)
at com.intellij.lang.folding.CompositeFoldingBuilder.buildFoldRegions(CompositeFoldingBuilder.java:57)
at com.intellij.lang.folding.LanguageFolding.buildFoldingDescriptors(LanguageFolding.java:83)
at com.intellij.codeInsight.folding.impl.FoldingUpdate.a(FoldingUpdate.java:205)
at com.intellij.codeInsight.folding.impl.FoldingUpdate.a(FoldingUpdate.java:118)
at com.intellij.codeInsight.folding.impl.FoldingUpdate.access$000(FoldingUpdate.java:52)
at com.intellij.codeInsight.folding.impl.FoldingUpdate$2.compute(FoldingUpdate.java:104)
at com.intellij.codeInsight.folding.impl.FoldingUpdate$2.compute(FoldingUpdate.java:99)
at com.intellij.psi.impl.PsiParameterizedCachedValue.doCompute(PsiParameterizedCachedValue.java:53)
at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:199)
at com.intellij.psi.impl.PsiParameterizedCachedValue.getValue(PsiParameterizedCachedValue.java:43)
at com.intellij.psi.util.CachedValuesManager.getParameterizedCachedValue(CachedValuesManager.java:77)
at com.intellij.codeInsight.folding.impl.FoldingUpdate.updateFoldRegions(FoldingUpdate.java:98)
at com.intellij.codeInsight.folding.impl.CodeFoldingManagerImpl.a(CodeFoldingManagerImpl.java:303)
at com.intellij.codeInsight.folding.impl.CodeFoldingManagerImpl.updateFoldRegionsAsync(CodeFoldingManagerImpl.java:295)
at com.intellij.codeInsight.daemon.impl.CodeFoldingPass.doCollectInformation(CodeFoldingPass.java:46)
at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:61)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1$1.run(PassExecutorService.java:380)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1153)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1.run(PassExecutorService.java:371)
at com.intellij.openapi.progress.ProgressManager.executeProcessUnderProgress(ProgressManager.java:209)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:212)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.a(PassExecutorService.java:368)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:344)
at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask.exec(JobLauncherImpl.java:193)
at jsr166e.ForkJoinTask.doExec(ForkJoinTask.java:260)
at jsr166e.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:858)
at jsr166e.ForkJoinPool.scan(ForkJoinPool.java:1687)
at jsr166e.ForkJoinPool.runWorker(ForkJoinPool.java:1642)
at jsr166e.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:109)
Caused by: com.intellij.psi.impl.compiled.ClsElementImpl$InvalidMirrorException: stub:[PsiParameter, PsiParameter, PsiParameter, PsiParameter]; mirror:[PsiParameter:paramInt1, PsiParameter:paramInt2, PsiParameter:paramInt3]
at com.intellij.psi.impl.compiled.ClsElementImpl.setMirrors(ClsElementImpl.java:321)
at com.intellij.psi.impl.compiled.ClsElementImpl.setMirrors(ClsElementImpl.java:312)
at com.intellij.psi.impl.compiled.ClsParameterListImpl.setMirror(ClsParameterListImpl.java:65)
at com.intellij.psi.impl.compiled.ClsElementImpl.setMirror(ClsElementImpl.java:299)
at com.intellij.psi.impl.compiled.ClsMethodImpl.setMirror(ClsMethodImpl.java:242)
at com.intellij.psi.impl.compiled.ClsElementImpl.setMirror(ClsElementImpl.java:299)
at com.intellij.psi.impl.compiled.ClsElementImpl.setMirrors(ClsElementImpl.java:324)
at com.intellij.psi.impl.compiled.ClsClassImpl.setMirror(ClsClassImpl.java:421)
at com.intellij.psi.impl.compiled.ClsElementImpl.setMirror(ClsElementImpl.java:299)
at com.intellij.psi.impl.compiled.ClsElementImpl.setMirrors(ClsElementImpl.java:324)
at com.intellij.psi.impl.compiled.ClsClassImpl.setMirror(ClsClassImpl.java:422)
at com.intellij.psi.impl.compiled.ClsElementImpl.setMirror(ClsElementImpl.java:299)
at com.intellij.psi.impl.compiled.ClsElementImpl.setMirrors(ClsElementImpl.java:324)
at com.intellij.psi.impl.compiled.ClsElementImpl.setMirrors(ClsElementImpl.java:312)
at com.intellij.psi.impl.compiled.ClsFileImpl.setMirror(ClsFileImpl.java:280)
at com.intellij.psi.impl.compiled.ClsFileImpl.getMirror(ClsFileImpl.java:328)
... 65 more
Let's close this issue, as I don't know if this will be reproduced with recent IntelliJ and newer JD-Core
Another one on hotspot 8 (AdoptOpenJdk), with jdk.internal.dynalink.DefaultBootstrapper
In the stack trace below, the message indicate the following different between the stub (which is how IJ interracts with a class like navigating, autocompletion, etc.), and the mirror which is the decompiled text.
I this case, like in many we see the stub has a default constructor (DefaultBootstrapper
), but the mirror don't have it (jd skips the default constructor if there's no instructions).
stub:[PsiMethod:DefaultBootstrapper, PsiMethod:bootstrap, PsiMethod:publicBootstrap, PsiMethod:bootstrapInternal];
mirror:[PsiMethod:bootstrap, PsiMethod:publicBootstrap, PsiMethod:bootstrapInternal]
ClsFileImpl.decompile
(stub) version of jdk.internal.dynalink.DefaultBootstrapper
jdk.internal.dynalink.DefaultBootstrapper
Originally reported by: Christoph Ludwig (Bitbucket: chludwig_haufe, GitHub: Unknown)
Hi,
today, IntelliJ 13.1 (build #IU-135.480) prompted me to update the JD-IntelliJ plugin to version 0.6. Since the update, IntelliJ reports an internal error on every startup:
The plugin still decompiles class files when I open them in the IDE, but the error makes me worry for the IDE's stability...
Please let me know if you need any additional information.
Regards, Christoph