com.intellij.psi.PsiInvalidElementAccessException: Element class com.intellij.psi.impl.source.tree.java.ClassElement of type CLASS

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by gavinking
, 1 year ago
Element class com.intellij.psi.impl.source.tree.java.ClassElement of type CLASS
via GitHub by kumbayo
, 4 months ago
Element class com.intellij.psi.impl.source.tree.CompositeElement of type PATH (class org.rust.lang.core.stubs.RsPathStub$Type)
via GitHub by neuro159
, 3 months ago
Element class com.intellij.psi.impl.source.tree.CompositeElement of type Class (class com.jetbrains.php.lang.psi.stubs.PhpClassElementType)
via GitHub by Haehnchen
, 4 months ago
Element class com.intellij.psi.impl.source.tree.CompositeElement of type Class (class com.jetbrains.php.lang.psi.stubs.PhpClassElementType)
com.intellij.psi.PsiInvalidElementAccessException: Element class com.intellij.psi.impl.source.tree.java.ClassElement of type CLASS
at com.intellij.psi.PsiInvalidElementAccessException.createByNode(PsiInvalidElementAccessException.java:93)
at com.intellij.psi.impl.source.SubstrateRef$2.getContainingFile(SubstrateRef.java:96)
at org.intellij.plugins.ceylon.ide.ceylonCode.model.PSIPackage$1.$call$(PSIPackage.ceylon:21)
at org.intellij.plugins.ceylon.ide.ceylonCode.model.PSIPackage$1.$call$(PSIPackage.ceylon:20)
at org.intellij.plugins.ceylon.ide.ceylonCode.model.concurrencyManager_$2.$call$(concurrencyManager.ceylon:108)
at ceylon.interop.java.JavaRunnable.run(JavaRunnable.ceylon:7)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:494)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:443)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
at org.intellij.plugins.ceylon.ide.ceylonCode.model.concurrencyManager_.needReadAccess$canonical$(concurrencyManager.ceylon:115)
at org.intellij.plugins.ceylon.ide.ceylonCode.model.concurrencyManager_.needReadAccess(concurrencyManager.ceylon:102)
at org.intellij.plugins.ceylon.ide.ceylonCode.model.PSIPackage.getQualifiedName(PSIPackage.ceylon:20)
at com.redhat.ceylon.model.loader.AbstractModelLoader.getPackageNameForQualifiedClassName(AbstractModelLoader.java:734)
at com.redhat.ceylon.model.loader.AbstractModelLoader.convertToDeclaration(AbstractModelLoader.java:667)
at com.redhat.ceylon.model.loader.AbstractModelLoader.convertToDeclaration(AbstractModelLoader.java:662)
at com.redhat.ceylon.ide.common.model.BaseIdeModelLoader.convertToDeclaration(IdeModelLoader.ceylon:521)
at com.redhat.ceylon.ide.common.model.IdeModelLoader$3$1.$call$(IdeModelLoader.ceylon:811)
at ceylon.language.Iterable$impl.each(Iterable.ceylon:352)
at ceylon.language.impl.BaseIterable.each(bases.ceylon)
at com.redhat.ceylon.ide.common.model.IdeModelLoader$3.$call$(IdeModelLoader.ceylon:805)
at com.redhat.ceylon.ide.common.model.IdeModelLoader$3.$call$(IdeModelLoader.ceylon:767)
at com.redhat.ceylon.ide.common.model.BaseIdeModelLoader$1anonymous_0_.call(IdeModelLoader.ceylon:133)
at com.redhat.ceylon.model.loader.AbstractModelLoader$1.call(AbstractModelLoader.java:345)
at org.intellij.plugins.ceylon.ide.ceylonCode.model.IdeaModelLoader.embeddingSync(IdeaModelLoader.ceylon:122)
at com.redhat.ceylon.model.loader.AbstractModelLoader.synchronizedCall(AbstractModelLoader.java:341)
at com.redhat.ceylon.ide.common.model.BaseIdeModelLoader.callWithLock(IdeModelLoader.ceylon:132)
at com.redhat.ceylon.ide.common.model.IdeModelLoader.loadPackage(IdeModelLoader.ceylon:824)
at com.redhat.ceylon.model.loader.model.LazyPackage$2.call(LazyPackage.java:207)
at com.redhat.ceylon.model.loader.model.LazyPackage$2.call(LazyPackage.java:203)
at com.redhat.ceylon.model.loader.AbstractModelLoader$1.call(AbstractModelLoader.java:345)
at org.intellij.plugins.ceylon.ide.ceylonCode.model.IdeaModelLoader$1$1.$call$(IdeaModelLoader.ceylon:105)
at org.intellij.plugins.ceylon.ide.ceylonCode.model.concurrencyManager_.withIndexStrategy$priv$(concurrencyManager.ceylon:207)
at org.intellij.plugins.ceylon.ide.ceylonCode.model.concurrencyManager_.outsideDumbMode(concurrencyManager.ceylon:238)
at org.intellij.plugins.ceylon.ide.ceylonCode.model.IdeaModelLoader$1.$call$(IdeaModelLoader.ceylon:104)
at ceylon.interop.java.JavaRunnable.run(JavaRunnable.ceylon:7)
at com.intellij.openapi.project.DumbService$2.compute(DumbService.java:125)
at com.intellij.openapi.project.DumbService$2.compute(DumbService.java:119)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:871)
at org.intellij.plugins.ceylon.ide.ceylonCode.model.IdeaModelLoader.embeddingSync(IdeaModelLoader.ceylon:101)
at com.redhat.ceylon.model.loader.AbstractModelLoader.synchronizedCall(AbstractModelLoader.java:341)
at com.redhat.ceylon.model.loader.model.LazyPackage.getMembers(LazyPackage.java:203)
at com.redhat.ceylon.ide.common.vfs.FileVirtualFile$impl.getUnit(interfaces.ceylon:252)
at org.intellij.plugins.ceylon.ide.ceylonCode.vfs.VirtualFileVirtualFile.getUnit(ideaVfs.ceylon)
at com.redhat.ceylon.ide.common.model.CeylonProjectBuild.getDependentsOf$priv$(CeylonProjectBuild.ceylon:1274)
at com.redhat.ceylon.ide.common.model.CeylonProjectBuild.access$2100(CeylonProjectBuild.ceylon:122)
at com.redhat.ceylon.ide.common.model.CeylonProjectBuild$1searchForNewDependencies_$1$1.$iterator$2(CeylonProjectBuild.ceylon:1332)
at com.redhat.ceylon.ide.common.model.CeylonProjectBuild$1searchForNewDependencies_$1$1.dependingFilePath(CeylonProjectBuild.ceylon:1332)
at com.redhat.ceylon.ide.common.model.CeylonProjectBuild$1searchForNewDependencies_$1$1.$next$3(CeylonProjectBuild.ceylon:1332)
at com.redhat.ceylon.ide.common.model.CeylonProjectBuild$1searchForNewDependencies_$1$1.next(CeylonProjectBuild.ceylon:1333)
at ceylon.language.Array.createArrayFromIterable(Array.java:164)
at ceylon.language.Array.(Array.java:112)
at ceylon.language.Iterable$impl.sequence(Iterable.ceylon:278)
at ceylon.language.impl.BaseIterable.sequence(bases.ceylon)
at com.redhat.ceylon.ide.common.model.CeylonProjectBuild$1searchForNewDependencies_.searchForNewDependencies(CeylonProjectBuild.ceylon:1335)
at com.redhat.ceylon.ide.common.model.CeylonProjectBuild.searchForDependantFiles$priv$(CeylonProjectBuild.ceylon:1337)
at com.redhat.ceylon.ide.common.model.CeylonProjectBuild.calculateDependencies$priv$(CeylonProjectBuild.ceylon:1172)
at com.redhat.ceylon.ide.common.model.CeylonProjectBuild.consumeModelChanges(CeylonProjectBuild.ceylon:1125)
at com.redhat.ceylon.ide.common.model.CeylonProjectBuild.performBuild$canonical$(CeylonProjectBuild.ceylon:599)
at com.redhat.ceylon.ide.common.model.CeylonProjectBuild.performBuild(CeylonProjectBuild.ceylon:577)
at org.intellij.plugins.ceylon.ide.ceylonCode.model.CeylonModelManager$2$2$1anonymous_4_$1.$call$(CeylonModelManager.ceylon:433)
at org.intellij.plugins.ceylon.ide.ceylonCode.model.concurrencyManager_.withIndexStrategy$priv$(concurrencyManager.ceylon:207)
at org.intellij.plugins.ceylon.ide.ceylonCode.model.concurrencyManager_.withUpToDateIndexes(concurrencyManager.ceylon:228)
at org.intellij.plugins.ceylon.ide.ceylonCode.model.CeylonModelManager$2$2$1anonymous_4_.run(CeylonModelManager.ceylon:428)
at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:635)
at com.intellij.openapi.progress.impl.CoreProgressManager$3.run(CoreProgressManager.java:170)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:494)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:443)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:155)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$1.run(ProgressManagerImpl.java:128)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.