Exception in the PsiAnnotation.getQualifiedName() method

What are conditions for the Exception below?

Assertion failed: class is not valid while looking for :
org.apache.tapestry.annotations.Component
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:89)
at com.intellij.psi.impl.file.impl.FileManagerImpl.a(FileManagerImpl.java:12)
at com.intellij.psi.impl.file.impl.FileManagerImpl.findClass(FileManagerImpl.java:112)
at com.intellij.psi.impl.PsiManagerImpl$PsiElementFinderImpl.findClass(PsiManagerImpl.java:20)
at com.intellij.psi.impl.PsiManagerImpl.findClass(PsiManagerImpl.java:505)
at com.intellij.psi.impl.source.PsiJavaCodeReferenceElementImpl.c(PsiJavaCodeReferenceElementImpl.java:327)
at com.intellij.psi.impl.source.PsiJavaCodeReferenceElementImpl.access$000(PsiJavaCodeReferenceElementImpl.java:49)
at com.intellij.psi.impl.source.PsiJavaCodeReferenceElementImpl$OurGenericsResolver._resolve(PsiJavaCodeReferenceElementImpl.java:20)
at com.intellij.psi.impl.source.PsiJavaCodeReferenceElementImpl$OurGenericsResolver.resolve(PsiJavaCodeReferenceElementImpl.java:3)
at com.intellij.psi.impl.source.PsiJavaCodeReferenceElementImpl$OurGenericsResolver.resolve(PsiJavaCodeReferenceElementImpl.java:14)
at com.intellij.psi.impl.source.resolve.ResolveCache.a(ResolveCache.java:103)
at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:13)
at com.intellij.psi.impl.source.PsiJavaCodeReferenceElementImpl.multiResolve(PsiJavaCodeReferenceElementImpl.java:193)
at com.intellij.psi.impl.source.PsiJavaCodeReferenceElementImpl.advancedResolve(PsiJavaCodeReferenceElementImpl.java:195)
at com.intellij.psi.impl.source.PsiJavaCodeReferenceElementImpl.resolve(PsiJavaCodeReferenceElementImpl.java:375)
at com.intellij.psi.impl.source.PsiImportStatementBaseImpl.resolve(PsiImportStatementBaseImpl.java:7)
at com.intellij.psi.impl.source.PsiJavaFileBaseImpl.a(PsiJavaFileBaseImpl.java:202)
at com.intellij.psi.impl.source.PsiJavaFileBaseImpl.processDeclarations(PsiJavaFileBaseImpl.java:17)
at com.intellij.psi.scope.util.PsiScopesUtil.processScope(PsiScopesUtil.java:38)
at com.intellij.psi.scope.util.PsiScopesUtil.treeWalkUp(PsiScopesUtil.java:118)
at com.intellij.psi.scope.util.PsiScopesUtil.resolveAndWalk(PsiScopesUtil.java:22)
at com.intellij.psi.scope.util.PsiScopesUtil.resolveAndWalk(PsiScopesUtil.java:205)
at com.intellij.psi.impl.source.PsiJavaCodeReferenceElementImpl.c(PsiJavaCodeReferenceElementImpl.java:217)
at com.intellij.psi.impl.source.PsiJavaCodeReferenceElementImpl.access$000(PsiJavaCodeReferenceElementImpl.java:49)
at com.intellij.psi.impl.source.PsiJavaCodeReferenceElementImpl$OurGenericsResolver._resolve(PsiJavaCodeReferenceElementImpl.java:20)
at com.intellij.psi.impl.source.PsiJavaCodeReferenceElementImpl$OurGenericsResolver.resolve(PsiJavaCodeReferenceElementImpl.java:3)
at com.intellij.psi.impl.source.PsiJavaCodeReferenceElementImpl$OurGenericsResolver.resolve(PsiJavaCodeReferenceElementImpl.java:14)
at com.intellij.psi.impl.source.resolve.ResolveCache.a(ResolveCache.java:103)
at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:13)
at com.intellij.psi.impl.source.PsiJavaCodeReferenceElementImpl.multiResolve(PsiJavaCodeReferenceElementImpl.java:193)
at com.intellij.psi.impl.source.PsiJavaCodeReferenceElementImpl.advancedResolve(PsiJavaCodeReferenceElementImpl.java:195)
at com.intellij.psi.impl.source.PsiJavaCodeReferenceElementImpl.resolve(PsiJavaCodeReferenceElementImpl.java:375)
at com.intellij.psi.impl.source.PsiJavaCodeReferenceElementImpl.getCanonicalText(PsiJavaCodeReferenceElementImpl.java:262)
at com.intellij.psi.impl.source.tree.java.PsiAnnotationImpl.getQualifiedName(PsiAnnotationImpl.java:27)

1 comment

Hello Alex,

This is an internal problem with IntelliJ IDEA - most likely it's not caused
by any third-party plugin. Unfortunately we don't have a way to reproduce
this reliably.

What are conditions for the Exception below?

Assertion failed: class is not valid while looking for :
org.apache.tapestry.annotations.Component
java.lang.Throwable
at
com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:89)
at
com.intellij.psi.impl.file.impl.FileManagerImpl.a(FileManagerImpl.java
:12)




--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.