Autocompletion not working in IU-98.311

Autocompletion has stopped working for me in IdeaX IU-98.311 and I'm constantly getting the exception below.
Mac OS X 10.6.4, JDK 1.6.0_22
Any ideas what's going on?

Argument 0 for @NotNull parameter of com/intellij/psi/PsiElementRef.real must not be null: Argument 0 for @NotNull parameter of com/intellij/psi/PsiElementRef.real must not be null
java.lang.IllegalArgumentException: Argument 0 for @NotNull parameter of com/intellij/psi/PsiElementRef.real must not be null
 at com.intellij.psi.PsiElementRef.real(PsiElementRef.java)
 at com.intellij.jam.JamClassGeneratorImpl$JamReferenceHolderImpl.$$$getPsiRef$$$(JamClassGeneratorImpl.java:286)
 at com.intellij.jam.JamClassGeneratorImpl.b(JamClassGeneratorImpl.java:265)
 at com.intellij.jam.JamClassGeneratorImpl.access$200(JamClassGeneratorImpl.java:33)
 at com.intellij.jam.JamClassGeneratorImpl$5.intercept(JamClassGeneratorImpl.java:64)
 at com.intellij.jpa.model.annotations.mapping.NamedQueryBaseImpl$NamedImpl$$EnhancerByCGLIB$$7dd671fa.hashCode(<generated>)
 at java.util.HashMap.put(HashMap.java:372)
 at java.util.HashSet.add(HashSet.java:200)
 at java.util.AbstractCollection.addAll(AbstractCollection.java:305)
 at com.intellij.semantic.SemServiceImpl.getSemElements(SemServiceImpl.java:199)
 at com.intellij.semantic.SemService.getSemElement(SemService.java:37)
 at com.intellij.jam.JamService.getJamElement(JamService.java:67)
 at com.intellij.jam.reflect.JamAnnotationAttributeMeta$Collection.getJam(JamAnnotationAttributeMeta.java:137)
 at com.intellij.jam.reflect.JamAnnotationAttributeMeta$Collection.access$200(JamAnnotationAttributeMeta.java:120)
 at com.intellij.jam.reflect.JamAnnotationAttributeMeta$Collection$1.fun(JamAnnotationAttributeMeta.java:129)
 at com.intellij.jam.reflect.JamAnnotationAttributeMeta$Collection$1.fun(JamAnnotationAttributeMeta.java:127)
 at com.intellij.jam.reflect.JamAttributeMeta.getCollectionJam(JamAttributeMeta.java:64)
 at com.intellij.jam.reflect.JamAnnotationAttributeMeta$Collection.getJam(JamAnnotationAttributeMeta.java:127)
 at com.intellij.jam.reflect.JamAnnotationAttributeMeta$Collection.getJam(JamAnnotationAttributeMeta.java:120)
 at com.intellij.jam.reflect.JamAnnotationMeta.getAttribute(JamAnnotationMeta.java:66)
 at com.intellij.jam.reflect.JamAnnotationMeta.getAttribute(JamAnnotationMeta.java:61)
 at com.intellij.javaee.util.JamCommonUtil.getElementsIncludingSingle(JamCommonUtil.java:440)
 at com.intellij.jpa.model.annotations.mapping.EntityBaseImpl.getNamedQueries(EntityBaseImpl.java:77)
 at com.intellij.persistence.roles.PersistenceRoleHolderImpl.processMappings(PersistenceRoleHolderImpl.java:120)
 at com.intellij.persistence.roles.PersistenceRoleHolderImpl.calculateMergedRoles(PersistenceRoleHolderImpl.java:89)
 at com.intellij.persistence.roles.PersistenceRoleHolderImpl.access$200(PersistenceRoleHolderImpl.java:27)
 at com.intellij.persistence.roles.PersistenceRoleHolderImpl$2.compute(PersistenceRoleHolderImpl.java:42)
 at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:45)
 at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:217)
 at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:36)
 at com.intellij.persistence.roles.PersistenceRoleHolderImpl.getMergedRoles(PersistenceRoleHolderImpl.java:63)
 at com.intellij.jpa.util.JpaUtil.getPersistenceRoles(JpaUtil.java:178)
 at com.intellij.jpa.highlighting.JpaClassAnnotator.annotate(JpaClassAnnotator.java:58)
 at com.intellij.codeInsight.daemon.impl.analysis.DefaultHighlightVisitor.a(DefaultHighlightVisitor.java:125)
 at com.intellij.codeInsight.daemon.impl.analysis.DefaultHighlightVisitor.visit(DefaultHighlightVisitor.java:70)
 at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass$7.run(GeneralHighlightingPass.java:557)
 at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:601)
 at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.access$3200(GeneralHighlightingPass.java:74)
 at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass$8.run(GeneralHighlightingPass.java:607)
 at com.intellij.codeInsight.daemon.impl.analysis.DefaultHighlightVisitor.analyze(DefaultHighlightVisitor.java:76)
 at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:604)
 at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.access$3200(GeneralHighlightingPass.java:74)
 at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass$8.run(GeneralHighlightingPass.java:607)
 at com.intellij.codeInsight.daemon.impl.RefCountHolder.analyze(RefCountHolder.java:238)
 at com.intellij.codeInsight.daemon.impl.analysis.HighlightVisitorImpl.analyze(HighlightVisitorImpl.java:134)
 at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:604)
 at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:596)
 at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.collectInformationWithProgress(GeneralHighlightingPass.java:190)
 at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:57)
 at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:56)
 at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1$1.run(PassExecutorService.java:337)
 at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:996)
 at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1.run(PassExecutorService.java:329)
 at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:233)
 at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:327)
 at com.intellij.concurrency.JobUtil$3.call(JobUtil.java:148)
 at com.intellij.concurrency.JobUtil$3.call(JobUtil.java:145)
 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
 at java.util.concurrent.FutureTask.run(FutureTask.java:138)
 at com.intellij.concurrency.PrioritizedFutureTask.access$101(PrioritizedFutureTask.java:31)
 at com.intellij.concurrency.PrioritizedFutureTask$1.run(PrioritizedFutureTask.java:70)
 at com.intellij.concurrency.PrioritizedFutureTask.run(PrioritizedFutureTask.java:113)
 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:680)



java.lang.IllegalArgumentException: Argument 0 for @NotNull parameter of com/intellij/psi/PsiElementRef.real must not be null
 at com.intellij.psi.PsiElementRef.real(PsiElementRef.java)
 at com.intellij.jam.JamClassGeneratorImpl$JamReferenceHolderImpl.$$$getPsiRef$$$(JamClassGeneratorImpl.java:286)
 at com.intellij.jam.JamClassGeneratorImpl.b(JamClassGeneratorImpl.java:265)
 at com.intellij.jam.JamClassGeneratorImpl.access$200(JamClassGeneratorImpl.java:33)
 at com.intellij.jam.JamClassGeneratorImpl$5.intercept(JamClassGeneratorImpl.java:64)
 at com.intellij.jpa.model.annotations.mapping.NamedQueryBaseImpl$NamedImpl$$EnhancerByCGLIB$$7dd671fa.hashCode(<generated>)
 at java.util.HashMap.put(HashMap.java:372)
 at java.util.HashSet.add(HashSet.java:200)
 at java.util.AbstractCollection.addAll(AbstractCollection.java:305)
 at com.intellij.semantic.SemServiceImpl.getSemElements(SemServiceImpl.java:199)
 at com.intellij.semantic.SemService.getSemElement(SemService.java:37)
 at com.intellij.jam.JamService.getJamElement(JamService.java:67)
 at com.intellij.jam.reflect.JamAnnotationAttributeMeta$Collection.getJam(JamAnnotationAttributeMeta.java:137)
 at com.intellij.jam.reflect.JamAnnotationAttributeMeta$Collection.access$200(JamAnnotationAttributeMeta.java:120)
 at com.intellij.jam.reflect.JamAnnotationAttributeMeta$Collection$1.fun(JamAnnotationAttributeMeta.java:129)
 at com.intellij.jam.reflect.JamAnnotationAttributeMeta$Collection$1.fun(JamAnnotationAttributeMeta.java:127)
 at com.intellij.jam.reflect.JamAttributeMeta.getCollectionJam(JamAttributeMeta.java:64)
 at com.intellij.jam.reflect.JamAnnotationAttributeMeta$Collection.getJam(JamAnnotationAttributeMeta.java:127)
 at com.intellij.jam.reflect.JamAnnotationAttributeMeta$Collection.getJam(JamAnnotationAttributeMeta.java:120)
 at com.intellij.jam.reflect.JamAnnotationMeta.getAttribute(JamAnnotationMeta.java:66)
 at com.intellij.jam.reflect.JamAnnotationMeta.getAttribute(JamAnnotationMeta.java:61)
 at com.intellij.javaee.util.JamCommonUtil.getElementsIncludingSingle(JamCommonUtil.java:440)
 at com.intellij.jpa.model.annotations.mapping.EntityBaseImpl.getNamedQueries(EntityBaseImpl.java:77)
 at com.intellij.persistence.roles.PersistenceRoleHolderImpl.processMappings(PersistenceRoleHolderImpl.java:120)
 at com.intellij.persistence.roles.PersistenceRoleHolderImpl.calculateMergedRoles(PersistenceRoleHolderImpl.java:89)
 at com.intellij.persistence.roles.PersistenceRoleHolderImpl.access$200(PersistenceRoleHolderImpl.java:27)
 at com.intellij.persistence.roles.PersistenceRoleHolderImpl$2.compute(PersistenceRoleHolderImpl.java:42)
 at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:45)
 at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:217)
 at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:36)
 at com.intellij.persistence.roles.PersistenceRoleHolderImpl.getMergedRoles(PersistenceRoleHolderImpl.java:63)
 at com.intellij.jpa.util.JpaUtil.getPersistenceRoles(JpaUtil.java:178)
 at com.intellij.jpa.inspections.AbstractJpaInspection.checkClass(AbstractJpaInspection.java:35)
 at com.intellij.codeInspection.BaseJavaLocalInspectionTool$1.visitClass(BaseJavaLocalInspectionTool.java:97)
 at com.intellij.psi.JavaElementVisitor.visitAnonymousClass(JavaElementVisitor.java:24)
 at com.intellij.psi.impl.source.PsiAnonymousClassImpl.accept(PsiAnonymousClassImpl.java:168)
 at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.a(LocalInspectionsPass.java:270)
 at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.access$100(LocalInspectionsPass.java:75)
 at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$1.process(LocalInspectionsPass.java:236)
 at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$1.process(LocalInspectionsPass.java:221)
 at com.intellij.concurrency.JobUtil$2$1.run(JobUtil.java:129)
 at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:233)
 at com.intellij.concurrency.JobUtil$2.process(JobUtil.java:127)
 at com.intellij.concurrency.JobUtil$1.run(JobUtil.java:65)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
 at java.util.concurrent.FutureTask.run(FutureTask.java:138)
 at com.intellij.concurrency.PrioritizedFutureTask.access$101(PrioritizedFutureTask.java:31)
 at com.intellij.concurrency.PrioritizedFutureTask$1.run(PrioritizedFutureTask.java:70)
 at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:996)
 at com.intellij.concurrency.PrioritizedFutureTask.run(PrioritizedFutureTask.java:97)
 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:680)



java.lang.IllegalArgumentException: Argument 0 for @NotNull parameter of com/intellij/psi/PsiElementRef.real must not be null
 at com.intellij.psi.PsiElementRef.real(PsiElementRef.java)
 at com.intellij.jam.JamClassGeneratorImpl$JamReferenceHolderImpl.$$$getPsiRef$$$(JamClassGeneratorImpl.java:286)
 at com.intellij.jam.JamClassGeneratorImpl.b(JamClassGeneratorImpl.java:265)
 at com.intellij.jam.JamClassGeneratorImpl.access$200(JamClassGeneratorImpl.java:33)
 at com.intellij.jam.JamClassGeneratorImpl$5.intercept(JamClassGeneratorImpl.java:64)
 at com.intellij.jpa.model.annotations.mapping.NamedQueryBaseImpl$NamedImpl$$EnhancerByCGLIB$$7dd671fa.hashCode(<generated>)
 at java.util.HashMap.put(HashMap.java:372)
 at java.util.HashSet.add(HashSet.java:200)
 at java.util.AbstractCollection.addAll(AbstractCollection.java:305)
 at com.intellij.semantic.SemServiceImpl.getSemElements(SemServiceImpl.java:199)
 at com.intellij.semantic.SemService.getSemElement(SemService.java:37)
 at com.intellij.jam.JamService.getJamElement(JamService.java:67)
 at com.intellij.jam.reflect.JamAnnotationAttributeMeta$Collection.getJam(JamAnnotationAttributeMeta.java:137)
 at com.intellij.jam.reflect.JamAnnotationAttributeMeta$Collection.access$200(JamAnnotationAttributeMeta.java:120)
 at com.intellij.jam.reflect.JamAnnotationAttributeMeta$Collection$1.fun(JamAnnotationAttributeMeta.java:129)
 at com.intellij.jam.reflect.JamAnnotationAttributeMeta$Collection$1.fun(JamAnnotationAttributeMeta.java:127)
 at com.intellij.jam.reflect.JamAttributeMeta.getCollectionJam(JamAttributeMeta.java:64)
 at com.intellij.jam.reflect.JamAnnotationAttributeMeta$Collection.getJam(JamAnnotationAttributeMeta.java:127)
 at com.intellij.jam.reflect.JamAnnotationAttributeMeta$Collection.getJam(JamAnnotationAttributeMeta.java:120)
 at com.intellij.jam.reflect.JamAnnotationMeta.getAttribute(JamAnnotationMeta.java:66)
 at com.intellij.jam.reflect.JamAnnotationMeta.getAttribute(JamAnnotationMeta.java:61)
 at com.intellij.javaee.util.JamCommonUtil.getElementsIncludingSingle(JamCommonUtil.java:440)
 at com.intellij.jpa.model.annotations.mapping.EntityBaseImpl.getNamedQueries(EntityBaseImpl.java:77)
 at com.intellij.persistence.roles.PersistenceRoleHolderImpl.processMappings(PersistenceRoleHolderImpl.java:120)
 at com.intellij.persistence.roles.PersistenceRoleHolderImpl.calculateMergedRoles(PersistenceRoleHolderImpl.java:89)
 at com.intellij.persistence.roles.PersistenceRoleHolderImpl.access$200(PersistenceRoleHolderImpl.java:27)
 at com.intellij.persistence.roles.PersistenceRoleHolderImpl$2.compute(PersistenceRoleHolderImpl.java:42)
 at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:45)
 at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:217)
 at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:36)
 at com.intellij.persistence.roles.PersistenceRoleHolderImpl.getMergedRoles(PersistenceRoleHolderImpl.java:63)
 at com.intellij.jpa.util.JpaUtil.getPersistenceRoles(JpaUtil.java:178)
 at com.intellij.jpa.inspections.AbstractJpaInspection.checkClass(AbstractJpaInspection.java:35)
 at com.intellij.codeInspection.BaseJavaLocalInspectionTool$1.visitClass(BaseJavaLocalInspectionTool.java:97)
 at com.intellij.psi.JavaElementVisitor.visitAnonymousClass(JavaElementVisitor.java:24)
 at com.intellij.psi.impl.source.PsiAnonymousClassImpl.accept(PsiAnonymousClassImpl.java:168)
 at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.a(LocalInspectionsPass.java:270)
 at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.access$100(LocalInspectionsPass.java:75)
 at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$1.process(LocalInspectionsPass.java:236)
 at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$1.process(LocalInspectionsPass.java:221)
 at com.intellij.concurrency.JobUtil$2$1.run(JobUtil.java:129)
 at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:233)
 at com.intellij.concurrency.JobUtil$2.process(JobUtil.java:127)
 at com.intellij.concurrency.JobUtil$1.run(JobUtil.java:65)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
 at java.util.concurrent.FutureTask.run(FutureTask.java:138)
 at com.intellij.concurrency.PrioritizedFutureTask.access$101(PrioritizedFutureTask.java:31)
 at com.intellij.concurrency.PrioritizedFutureTask$1.run(PrioritizedFutureTask.java:70)
 at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:996)
 at com.intellij.concurrency.PrioritizedFutureTask.run(PrioritizedFutureTask.java:97)
 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:680)



java.lang.IllegalArgumentException: Argument 0 for @NotNull parameter of com/intellij/psi/PsiElementRef.real must not be null
 at com.intellij.psi.PsiElementRef.real(PsiElementRef.java)
 at com.intellij.jam.JamClassGeneratorImpl$JamReferenceHolderImpl.$$$getPsiRef$$$(JamClassGeneratorImpl.java:286)
 at com.intellij.jam.JamClassGeneratorImpl.b(JamClassGeneratorImpl.java:265)
 at com.intellij.jam.JamClassGeneratorImpl.access$200(JamClassGeneratorImpl.java:33)
 at com.intellij.jam.JamClassGeneratorImpl$5.intercept(JamClassGeneratorImpl.java:64)
 at com.intellij.jpa.model.annotations.mapping.NamedQueryBaseImpl$NamedImpl$$EnhancerByCGLIB$$7dd671fa.hashCode(<generated>)
 at java.util.HashMap.put(HashMap.java:372)
 at java.util.HashSet.add(HashSet.java:200)
 at java.util.AbstractCollection.addAll(AbstractCollection.java:305)
 at com.intellij.semantic.SemServiceImpl.getSemElements(SemServiceImpl.java:199)
 at com.intellij.semantic.SemService.getSemElement(SemService.java:37)
 at com.intellij.jam.JamService.getJamElement(JamService.java:67)
 at com.intellij.jam.reflect.JamAnnotationAttributeMeta$Collection.getJam(JamAnnotationAttributeMeta.java:137)
 at com.intellij.jam.reflect.JamAnnotationAttributeMeta$Collection.access$200(JamAnnotationAttributeMeta.java:120)
 at com.intellij.jam.reflect.JamAnnotationAttributeMeta$Collection$1.fun(JamAnnotationAttributeMeta.java:129)
 at com.intellij.jam.reflect.JamAnnotationAttributeMeta$Collection$1.fun(JamAnnotationAttributeMeta.java:127)
 at com.intellij.jam.reflect.JamAttributeMeta.getCollectionJam(JamAttributeMeta.java:64)
 at com.intellij.jam.reflect.JamAnnotationAttributeMeta$Collection.getJam(JamAnnotationAttributeMeta.java:127)
 at com.intellij.jam.reflect.JamAnnotationAttributeMeta$Collection.getJam(JamAnnotationAttributeMeta.java:120)
 at com.intellij.jam.reflect.JamAnnotationMeta.getAttribute(JamAnnotationMeta.java:66)
 at com.intellij.jam.reflect.JamAnnotationMeta.getAttribute(JamAnnotationMeta.java:61)
 at com.intellij.javaee.util.JamCommonUtil.getElementsIncludingSingle(JamCommonUtil.java:440)
 at com.intellij.jpa.model.annotations.mapping.EntityBaseImpl.getNamedQueries(EntityBaseImpl.java:77)
 at com.intellij.persistence.roles.PersistenceRoleHolderImpl.processMappings(PersistenceRoleHolderImpl.java:120)
 at com.intellij.persistence.roles.PersistenceRoleHolderImpl.calculateMergedRoles(PersistenceRoleHolderImpl.java:89)
 at com.intellij.persistence.roles.PersistenceRoleHolderImpl.access$200(PersistenceRoleHolderImpl.java:27)
 at com.intellij.persistence.roles.PersistenceRoleHolderImpl$2.compute(PersistenceRoleHolderImpl.java:42)
 at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:45)
 at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:217)
 at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:36)
 at com.intellij.persistence.roles.PersistenceRoleHolderImpl.getMergedRoles(PersistenceRoleHolderImpl.java:63)
 at com.intellij.jpa.util.JpaUtil.getPersistenceRoles(JpaUtil.java:178)
 at com.intellij.jpa.highlighting.JpaClassAnnotator.annotate(JpaClassAnnotator.java:58)
 at com.intellij.codeInsight.daemon.impl.analysis.DefaultHighlightVisitor.a(DefaultHighlightVisitor.java:125)
 at com.intellij.codeInsight.daemon.impl.analysis.DefaultHighlightVisitor.visit(DefaultHighlightVisitor.java:70)
 at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass$7.run(GeneralHighlightingPass.java:557)
 at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:601)
 at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.access$3200(GeneralHighlightingPass.java:74)
 at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass$8.run(GeneralHighlightingPass.java:607)
 at com.intellij.codeInsight.daemon.impl.analysis.DefaultHighlightVisitor.analyze(DefaultHighlightVisitor.java:76)
 at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:604)
 at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.access$3200(GeneralHighlightingPass.java:74)
 at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass$8.run(GeneralHighlightingPass.java:607)
 at com.intellij.codeInsight.daemon.impl.RefCountHolder.analyze(RefCountHolder.java:238)
 at com.intellij.codeInsight.daemon.impl.analysis.HighlightVisitorImpl.analyze(HighlightVisitorImpl.java:134)
 at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:604)
 at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:596)
 at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.collectInformationWithProgress(GeneralHighlightingPass.java:190)
 at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:57)
 at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:56)
 at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1$1.run(PassExecutorService.java:337)
 at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:996)
 at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1.run(PassExecutorService.java:329)
 at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:233)
 at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:327)
 at com.intellij.concurrency.JobUtil$3.call(JobUtil.java:148)
 at com.intellij.concurrency.JobUtil$3.call(JobUtil.java:145)
 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
 at java.util.concurrent.FutureTask.run(FutureTask.java:138)
 at com.intellij.concurrency.PrioritizedFutureTask.access$101(PrioritizedFutureTask.java:31)
 at com.intellij.concurrency.PrioritizedFutureTask$1.run(PrioritizedFutureTask.java:70)
 at com.intellij.concurrency.PrioritizedFutureTask.run(PrioritizedFutureTask.java:113)
 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:680)



java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: Argument 0 for @NotNull parameter of com/intellij/psi/PsiElementRef.real must not be null
 at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
 at java.util.concurrent.FutureTask.get(FutureTask.java:83)
 at com.intellij.concurrency.PrioritizedFutureTask.access$301(PrioritizedFutureTask.java:31)
 at com.intellij.concurrency.PrioritizedFutureTask$1.run(PrioritizedFutureTask.java:77)
 at com.intellij.concurrency.PrioritizedFutureTask.run(PrioritizedFutureTask.java:113)
 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.IllegalArgumentException: Argument 0 for @NotNull parameter of com/intellij/psi/PsiElementRef.real must not be null
 at com.intellij.psi.PsiElementRef.real(PsiElementRef.java)
 at com.intellij.jam.JamClassGeneratorImpl$JamReferenceHolderImpl.$$$getPsiRef$$$(JamClassGeneratorImpl.java:286)
 at com.intellij.jam.JamClassGeneratorImpl.b(JamClassGeneratorImpl.java:265)
 at com.intellij.jam.JamClassGeneratorImpl.access$200(JamClassGeneratorImpl.java:33)
 at com.intellij.jam.JamClassGeneratorImpl$5.intercept(JamClassGeneratorImpl.java:64)
 at com.intellij.jpa.model.annotations.mapping.NamedQueryBaseImpl$NamedImpl$$EnhancerByCGLIB$$7dd671fa.hashCode(<generated>)
 at java.util.HashMap.put(HashMap.java:372)
 at java.util.HashSet.add(HashSet.java:200)
 at java.util.AbstractCollection.addAll(AbstractCollection.java:305)
 at com.intellij.semantic.SemServiceImpl.getSemElements(SemServiceImpl.java:199)
 at com.intellij.semantic.SemService.getSemElement(SemService.java:37)
 at com.intellij.jam.JamService.getJamElement(JamService.java:67)
 at com.intellij.jam.reflect.JamAnnotationAttributeMeta$Collection.getJam(JamAnnotationAttributeMeta.java:137)
 at com.intellij.jam.reflect.JamAnnotationAttributeMeta$Collection.access$200(JamAnnotationAttributeMeta.java:120)
 at com.intellij.jam.reflect.JamAnnotationAttributeMeta$Collection$1.fun(JamAnnotationAttributeMeta.java:129)
 at com.intellij.jam.reflect.JamAnnotationAttributeMeta$Collection$1.fun(JamAnnotationAttributeMeta.java:127)
 at com.intellij.jam.reflect.JamAttributeMeta.getCollectionJam(JamAttributeMeta.java:64)
 at com.intellij.jam.reflect.JamAnnotationAttributeMeta$Collection.getJam(JamAnnotationAttributeMeta.java:127)
 at com.intellij.jam.reflect.JamAnnotationAttributeMeta$Collection.getJam(JamAnnotationAttributeMeta.java:120)
 at com.intellij.jam.reflect.JamAnnotationMeta.getAttribute(JamAnnotationMeta.java:66)
 at com.intellij.jam.reflect.JamAnnotationMeta.getAttribute(JamAnnotationMeta.java:61)
 at com.intellij.javaee.util.JamCommonUtil.getElementsIncludingSingle(JamCommonUtil.java:440)
 at com.intellij.jpa.model.annotations.mapping.EntityBaseImpl.getNamedQueries(EntityBaseImpl.java:77)
 at com.intellij.persistence.roles.PersistenceRoleHolderImpl.processMappings(PersistenceRoleHolderImpl.java:120)
 at com.intellij.persistence.roles.PersistenceRoleHolderImpl.calculateMergedRoles(PersistenceRoleHolderImpl.java:89)
 at com.intellij.persistence.roles.PersistenceRoleHolderImpl.access$200(PersistenceRoleHolderImpl.java:27)
 at com.intellij.persistence.roles.PersistenceRoleHolderImpl$2.compute(PersistenceRoleHolderImpl.java:42)
 at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:45)
 at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:217)
 at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:36)
 at com.intellij.persistence.roles.PersistenceRoleHolderImpl.getMergedRoles(PersistenceRoleHolderImpl.java:63)
 at com.intellij.jpa.util.JpaUtil.getPersistenceRoles(JpaUtil.java:178)
 at com.intellij.jpa.inspections.AbstractJpaInspection.checkClass(AbstractJpaInspection.java:35)
 at com.intellij.codeInspection.BaseJavaLocalInspectionTool$1.visitClass(BaseJavaLocalInspectionTool.java:97)
 at com.intellij.psi.JavaElementVisitor.visitAnonymousClass(JavaElementVisitor.java:24)
 at com.intellij.psi.impl.source.PsiAnonymousClassImpl.accept(PsiAnonymousClassImpl.java:168)
 at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.a(LocalInspectionsPass.java:270)
 at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.access$100(LocalInspectionsPass.java:75)
 at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$1.process(LocalInspectionsPass.java:236)
 at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$1.process(LocalInspectionsPass.java:221)
 at com.intellij.concurrency.JobUtil$2$1.run(JobUtil.java:129)
 at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:233)
 at com.intellij.concurrency.JobUtil$2.process(JobUtil.java:127)
 at com.intellij.concurrency.JobUtil$1.run(JobUtil.java:65)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
 at java.util.concurrent.FutureTask.run(FutureTask.java:138)
 at com.intellij.concurrency.PrioritizedFutureTask.access$101(PrioritizedFutureTask.java:31)
 at com.intellij.concurrency.PrioritizedFutureTask$1.run(PrioritizedFutureTask.java:70)
 at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:996)
 at com.intellij.concurrency.PrioritizedFutureTask.run(PrioritizedFutureTask.java:97)
 ... 3 more



java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: Argument 0 for @NotNull parameter of com/intellij/psi/PsiElementRef.real must not be null
 at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
 at java.util.concurrent.FutureTask.get(FutureTask.java:83)
 at com.intellij.concurrency.PrioritizedFutureTask.access$301(PrioritizedFutureTask.java:31)
 at com.intellij.concurrency.PrioritizedFutureTask$1.run(PrioritizedFutureTask.java:77)
 at com.intellij.concurrency.PrioritizedFutureTask.run(PrioritizedFutureTask.java:113)
 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.IllegalArgumentException: Argument 0 for @NotNull parameter of com/intellij/psi/PsiElementRef.real must not be null
 at com.intellij.psi.PsiElementRef.real(PsiElementRef.java)
 at com.intellij.jam.JamClassGeneratorImpl$JamReferenceHolderImpl.$$$getPsiRef$$$(JamClassGeneratorImpl.java:286)
 at com.intellij.jam.JamClassGeneratorImpl.b(JamClassGeneratorImpl.java:265)
 at com.intellij.jam.JamClassGeneratorImpl.access$200(JamClassGeneratorImpl.java:33)
 at com.intellij.jam.JamClassGeneratorImpl$5.intercept(JamClassGeneratorImpl.java:64)
 at com.intellij.jpa.model.annotations.mapping.NamedQueryBaseImpl$NamedImpl$$EnhancerByCGLIB$$7dd671fa.hashCode(<generated>)
 at java.util.HashMap.put(HashMap.java:372)
 at java.util.HashSet.add(HashSet.java:200)
 at java.util.AbstractCollection.addAll(AbstractCollection.java:305)
 at com.intellij.semantic.SemServiceImpl.getSemElements(SemServiceImpl.java:199)
 at com.intellij.semantic.SemService.getSemElement(SemService.java:37)
 at com.intellij.jam.JamService.getJamElement(JamService.java:67)
 at com.intellij.jam.reflect.JamAnnotationAttributeMeta$Collection.getJam(JamAnnotationAttributeMeta.java:137)
 at com.intellij.jam.reflect.JamAnnotationAttributeMeta$Collection.access$200(JamAnnotationAttributeMeta.java:120)
 at com.intellij.jam.reflect.JamAnnotationAttributeMeta$Collection$1.fun(JamAnnotationAttributeMeta.java:129)
 at com.intellij.jam.reflect.JamAnnotationAttributeMeta$Collection$1.fun(JamAnnotationAttributeMeta.java:127)
 at com.intellij.jam.reflect.JamAttributeMeta.getCollectionJam(JamAttributeMeta.java:64)
 at com.intellij.jam.reflect.JamAnnotationAttributeMeta$Collection.getJam(JamAnnotationAttributeMeta.java:127)
 at com.intellij.jam.reflect.JamAnnotationAttributeMeta$Collection.getJam(JamAnnotationAttributeMeta.java:120)
 at com.intellij.jam.reflect.JamAnnotationMeta.getAttribute(JamAnnotationMeta.java:66)
 at com.intellij.jam.reflect.JamAnnotationMeta.getAttribute(JamAnnotationMeta.java:61)
 at com.intellij.javaee.util.JamCommonUtil.getElementsIncludingSingle(JamCommonUtil.java:440)
 at com.intellij.jpa.model.annotations.mapping.EntityBaseImpl.getNamedQueries(EntityBaseImpl.java:77)
 at com.intellij.persistence.roles.PersistenceRoleHolderImpl.processMappings(PersistenceRoleHolderImpl.java:120)
 at com.intellij.persistence.roles.PersistenceRoleHolderImpl.calculateMergedRoles(PersistenceRoleHolderImpl.java:89)
 at com.intellij.persistence.roles.PersistenceRoleHolderImpl.access$200(PersistenceRoleHolderImpl.java:27)
 at com.intellij.persistence.roles.PersistenceRoleHolderImpl$2.compute(PersistenceRoleHolderImpl.java:42)
 at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:45)
 at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:217)
 at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:36)
 at com.intellij.persistence.roles.PersistenceRoleHolderImpl.getMergedRoles(PersistenceRoleHolderImpl.java:63)
 at com.intellij.jpa.util.JpaUtil.getPersistenceRoles(JpaUtil.java:178)
 at com.intellij.jpa.highlighting.JpaClassAnnotator.annotate(JpaClassAnnotator.java:58)
 at com.intellij.codeInsight.daemon.impl.analysis.DefaultHighlightVisitor.a(DefaultHighlightVisitor.java:125)
 at com.intellij.codeInsight.daemon.impl.analysis.DefaultHighlightVisitor.visit(DefaultHighlightVisitor.java:70)
 at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass$7.run(GeneralHighlightingPass.java:557)
 at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:601)
 at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.access$3200(GeneralHighlightingPass.java:74)
 at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass$8.run(GeneralHighlightingPass.java:607)
 at com.intellij.codeInsight.daemon.impl.analysis.DefaultHighlightVisitor.analyze(DefaultHighlightVisitor.java:76)
 at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:604)
 at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.access$3200(GeneralHighlightingPass.java:74)
 at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass$8.run(GeneralHighlightingPass.java:607)
 at com.intellij.codeInsight.daemon.impl.RefCountHolder.analyze(RefCountHolder.java:238)
 at com.intellij.codeInsight.daemon.impl.analysis.HighlightVisitorImpl.analyze(HighlightVisitorImpl.java:134)
 at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:604)
 at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:596)
 at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.collectInformationWithProgress(GeneralHighlightingPass.java:190)
 at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:57)
 at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:56)
 at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1$1.run(PassExecutorService.java:337)
 at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:996)
 at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1.run(PassExecutorService.java:329)
 at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:233)
 at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:327)
 at com.intellij.concurrency.JobUtil$3.call(JobUtil.java:148)
 at com.intellij.concurrency.JobUtil$3.call(JobUtil.java:145)
 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
 at java.util.concurrent.FutureTask.run(FutureTask.java:138)
 at com.intellij.concurrency.PrioritizedFutureTask.access$101(PrioritizedFutureTask.java:31)
 at com.intellij.concurrency.PrioritizedFutureTask$1.run(PrioritizedFutureTask.java:70)
 ... 4 more



java.lang.IllegalArgumentException: Argument 0 for @NotNull parameter of com/intellij/psi/PsiElementRef.real must not be null
 at com.intellij.psi.PsiElementRef.real(PsiElementRef.java)
 at com.intellij.jam.JamClassGeneratorImpl$JamReferenceHolderImpl.$$$getPsiRef$$$(JamClassGeneratorImpl.java:286)
 at com.intellij.jam.JamClassGeneratorImpl.b(JamClassGeneratorImpl.java:265)
 at com.intellij.jam.JamClassGeneratorImpl.access$200(JamClassGeneratorImpl.java:33)
 at com.intellij.jam.JamClassGeneratorImpl$5.intercept(JamClassGeneratorImpl.java:64)
 at com.intellij.jpa.model.annotations.mapping.NamedQueryBaseImpl$NamedImpl$$EnhancerByCGLIB$$7dd671fa.hashCode(<generated>)
 at java.util.HashMap.put(HashMap.java:372)
 at java.util.HashSet.add(HashSet.java:200)
 at java.util.AbstractCollection.addAll(AbstractCollection.java:305)
 at com.intellij.semantic.SemServiceImpl.getSemElements(SemServiceImpl.java:199)
 at com.intellij.semantic.SemService.getSemElement(SemService.java:37)
 at com.intellij.jam.JamService.getJamElement(JamService.java:67)
 at com.intellij.jam.reflect.JamAnnotationAttributeMeta$Collection.getJam(JamAnnotationAttributeMeta.java:137)
 at com.intellij.jam.reflect.JamAnnotationAttributeMeta$Collection.access$200(JamAnnotationAttributeMeta.java:120)
 at com.intellij.jam.reflect.JamAnnotationAttributeMeta$Collection$1.fun(JamAnnotationAttributeMeta.java:129)
 at com.intellij.jam.reflect.JamAnnotationAttributeMeta$Collection$1.fun(JamAnnotationAttributeMeta.java:127)
 at com.intellij.jam.reflect.JamAttributeMeta.getCollectionJam(JamAttributeMeta.java:64)
 at com.intellij.jam.reflect.JamAnnotationAttributeMeta$Collection.getJam(JamAnnotationAttributeMeta.java:127)
 at com.intellij.jam.reflect.JamAnnotationAttributeMeta$Collection.getJam(JamAnnotationAttributeMeta.java:120)
 at com.intellij.jam.reflect.JamAnnotationMeta.getAttribute(JamAnnotationMeta.java:66)
 at com.intellij.jam.reflect.JamAnnotationMeta.getAttribute(JamAnnotationMeta.java:61)
 at com.intellij.javaee.util.JamCommonUtil.getElementsIncludingSingle(JamCommonUtil.java:440)
 at com.intellij.jpa.model.annotations.mapping.EntityBaseImpl.getNamedQueries(EntityBaseImpl.java:77)
 at com.intellij.persistence.roles.PersistenceRoleHolderImpl.processMappings(PersistenceRoleHolderImpl.java:120)
 at com.intellij.persistence.roles.PersistenceRoleHolderImpl.calculateMergedRoles(PersistenceRoleHolderImpl.java:89)
 at com.intellij.persistence.roles.PersistenceRoleHolderImpl.access$200(PersistenceRoleHolderImpl.java:27)
 at com.intellij.persistence.roles.PersistenceRoleHolderImpl$2.compute(PersistenceRoleHolderImpl.java:42)
 at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:45)
 at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:217)
 at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:36)
 at com.intellij.persistence.roles.PersistenceRoleHolderImpl.getMergedRoles(PersistenceRoleHolderImpl.java:63)
 at com.intellij.jpa.util.JpaUtil.getPersistenceRoles(JpaUtil.java:178)
 at com.intellij.jpa.inspections.AbstractJpaInspection.checkClass(AbstractJpaInspection.java:35)
 at com.intellij.codeInspection.BaseJavaLocalInspectionTool$1.visitClass(BaseJavaLocalInspectionTool.java:97)
 at com.intellij.psi.JavaElementVisitor.visitAnonymousClass(JavaElementVisitor.java:24)
 at com.intellij.psi.impl.source.PsiAnonymousClassImpl.accept(PsiAnonymousClassImpl.java:168)
 at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.a(LocalInspectionsPass.java:270)
 at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.access$100(LocalInspectionsPass.java:75)
 at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$1.process(LocalInspectionsPass.java:236)
 at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$1.process(LocalInspectionsPass.java:221)
 at com.intellij.concurrency.JobUtil$2$1.run(JobUtil.java:129)
 at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:233)
 at com.intellij.concurrency.JobUtil$2.process(JobUtil.java:127)
 at com.intellij.concurrency.JobUtil$1.run(JobUtil.java:65)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
 at java.util.concurrent.FutureTask.run(FutureTask.java:138)
 at com.intellij.concurrency.PrioritizedFutureTask.access$101(PrioritizedFutureTask.java:31)
 at com.intellij.concurrency.PrioritizedFutureTask$1.run(PrioritizedFutureTask.java:70)
 at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:996)
 at com.intellij.concurrency.PrioritizedFutureTask.run(PrioritizedFutureTask.java:97)
 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:680)



java.lang.IllegalArgumentException: Argument 0 for @NotNull parameter of com/intellij/psi/PsiElementRef.real must not be null
 at com.intellij.psi.PsiElementRef.real(PsiElementRef.java)
 at com.intellij.jam.JamClassGeneratorImpl$JamReferenceHolderImpl.$$$getPsiRef$$$(JamClassGeneratorImpl.java:286)
 at com.intellij.jam.JamClassGeneratorImpl.b(JamClassGeneratorImpl.java:265)
 at com.intellij.jam.JamClassGeneratorImpl.access$200(JamClassGeneratorImpl.java:33)
 at com.intellij.jam.JamClassGeneratorImpl$5.intercept(JamClassGeneratorImpl.java:64)
 at com.intellij.jpa.model.annotations.mapping.NamedQueryBaseImpl$NamedImpl$$EnhancerByCGLIB$$7dd671fa.hashCode(<generated>)
 at java.util.HashMap.put(HashMap.java:372)
 at java.util.HashSet.add(HashSet.java:200)
 at java.util.AbstractCollection.addAll(AbstractCollection.java:305)
 at com.intellij.semantic.SemServiceImpl.getSemElements(SemServiceImpl.java:199)
 at com.intellij.semantic.SemService.getSemElement(SemService.java:37)
 at com.intellij.jam.JamService.getJamElement(JamService.java:67)
 at com.intellij.jam.reflect.JamAnnotationAttributeMeta$Collection.getJam(JamAnnotationAttributeMeta.java:137)
 at com.intellij.jam.reflect.JamAnnotationAttributeMeta$Collection.access$200(JamAnnotationAttributeMeta.java:120)
 at com.intellij.jam.reflect.JamAnnotationAttributeMeta$Collection$1.fun(JamAnnotationAttributeMeta.java:129)
 at com.intellij.jam.reflect.JamAnnotationAttributeMeta$Collection$1.fun(JamAnnotationAttributeMeta.java:127)
 at com.intellij.jam.reflect.JamAttributeMeta.getCollectionJam(JamAttributeMeta.java:64)
 at com.intellij.jam.reflect.JamAnnotationAttributeMeta$Collection.getJam(JamAnnotationAttributeMeta.java:127)
 at com.intellij.jam.reflect.JamAnnotationAttributeMeta$Collection.getJam(JamAnnotationAttributeMeta.java:120)
 at com.intellij.jam.reflect.JamAnnotationMeta.getAttribute(JamAnnotationMeta.java:66)
 at com.intellij.jam.reflect.JamAnnotationMeta.getAttribute(JamAnnotationMeta.java:61)
 at com.intellij.javaee.util.JamCommonUtil.getElementsIncludingSingle(JamCommonUtil.java:440)
 at com.intellij.jpa.model.annotations.mapping.EntityBaseImpl.getNamedQueries(EntityBaseImpl.java:77)
 at com.intellij.persistence.roles.PersistenceRoleHolderImpl.processMappings(PersistenceRoleHolderImpl.java:120)
 at com.intellij.persistence.roles.PersistenceRoleHolderImpl.calculateMergedRoles(PersistenceRoleHolderImpl.java:89)
 at com.intellij.persistence.roles.PersistenceRoleHolderImpl.access$200(PersistenceRoleHolderImpl.java:27)
 at com.intellij.persistence.roles.PersistenceRoleHolderImpl$2.compute(PersistenceRoleHolderImpl.java:42)
 at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:45)
 at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:217)
 at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:36)
 at com.intellij.persistence.roles.PersistenceRoleHolderImpl.getMergedRoles(PersistenceRoleHolderImpl.java:63)
 at com.intellij.jpa.util.JpaUtil.getPersistenceRoles(JpaUtil.java:178)
 at com.intellij.jpa.highlighting.JpaClassAnnotator.annotate(JpaClassAnnotator.java:58)
 at com.intellij.codeInsight.daemon.impl.analysis.DefaultHighlightVisitor.a(DefaultHighlightVisitor.java:125)
 at com.intellij.codeInsight.daemon.impl.analysis.DefaultHighlightVisitor.visit(DefaultHighlightVisitor.java:70)
 at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass$7.run(GeneralHighlightingPass.java:557)
 at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:601)
 at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.access$3200(GeneralHighlightingPass.java:74)
 at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass$8.run(GeneralHighlightingPass.java:607)
 at com.intellij.codeInsight.daemon.impl.analysis.DefaultHighlightVisitor.analyze(DefaultHighlightVisitor.java:76)
 at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:604)
 at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.access$3200(GeneralHighlightingPass.java:74)
 at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass$8.run(GeneralHighlightingPass.java:607)
 at com.intellij.codeInsight.daemon.impl.RefCountHolder.analyze(RefCountHolder.java:238)
 at com.intellij.codeInsight.daemon.impl.analysis.HighlightVisitorImpl.analyze(HighlightVisitorImpl.java:134)
 at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:604)
 at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:596)
 at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.collectInformationWithProgress(GeneralHighlightingPass.java:190)
 at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:57)
 at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:56)
 at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1$1.run(PassExecutorService.java:337)
 at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:996)
 at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1.run(PassExecutorService.java:329)
 at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:233)
 at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:327)
 at com.intellij.concurrency.JobUtil$3.call(JobUtil.java:148)
 at com.intellij.concurrency.JobUtil$3.call(JobUtil.java:145)
 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
 at java.util.concurrent.FutureTask.run(FutureTask.java:138)
 at com.intellij.concurrency.PrioritizedFutureTask.access$101(PrioritizedFutureTask.java:31)
 at com.intellij.concurrency.PrioritizedFutureTask$1.run(PrioritizedFutureTask.java:70)
 at com.intellij.concurrency.PrioritizedFutureTask.run(PrioritizedFutureTask.java:113)
 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:680)


3 comments

First thing to try: File -> Invalidate Caches.

0

We've added some diagnostics, so the next EAP will probably provide more evidence for us to fix this problem. Thanks for the report!

0

Please sign in to leave a comment.