exceptions during inspections in TeamCity

Hi everyone,
    Trying to run inspections from a Maven 2 POM, and get this stacktrace almost immediately upon starting (and many time through the inspection):

[  94692]  ERROR - ex.GlobalInspectionContextImpl -

[10:21:56]: java.util.NoSuchElementException
[10:21:56]: at java.util.AbstractList$Itr.next(AbstractList.java:427)
[10:21:56]: at com.intellij.psi.impl.source.PsiFileImpl.a(PsiFileImpl.java:370)
[10:21:56]: at com.intellij.psi.impl.source.PsiFileImpl.a(PsiFileImpl.java:357)
[10:21:56]: at com.intellij.psi.impl.source.PsiFileImpl.a(PsiFileImpl.java:357)
[10:21:56]: at com.intellij.psi.impl.source.PsiFileImpl.a(PsiFileImpl.java:357)
[10:21:56]: at com.intellij.psi.impl.source.PsiFileImpl.a(PsiFileImpl.java:357)
[10:21:56]: at com.intellij.psi.impl.source.PsiFileImpl.a(PsiFileImpl.java:357)
[10:21:56]: at com.intellij.psi.impl.source.PsiFileImpl.a(PsiFileImpl.java:357)
[10:21:56]: at com.intellij.psi.impl.source.PsiFileImpl.a(PsiFileImpl.java:357)
[10:21:56]: at com.intellij.psi.impl.source.PsiFileImpl.a(PsiFileImpl.java:357)
[10:21:56]: at com.intellij.psi.impl.source.PsiFileImpl.a(PsiFileImpl.java:357)
[10:21:56]: at com.intellij.psi.impl.source.PsiFileImpl.a(PsiFileImpl.java:357)
[10:21:56]: at com.intellij.psi.impl.source.PsiFileImpl.loadTreeElement(PsiFileImpl.java:354)
[10:21:56]: at com.intellij.extapi.psi.StubBasedPsiElementBase.getNode(StubBasedPsiElementBase.java:54)
[10:21:56]: at com.intellij.psi.impl.source.PsiMethodImpl.getNode(PsiMethodImpl.java:20)
[10:21:56]: at com.intellij.psi.impl.source.PsiMethodImpl.getBody(PsiMethodImpl.java:86)
[10:21:56]: at com.intellij.codeInspection.reference.RefMethodImpl.c(RefMethodImpl.java:146)
[10:21:56]: at com.intellij.codeInspection.reference.RefMethodImpl.initialize(RefMethodImpl.java:134)
[10:21:56]: at com.intellij.codeInspection.reference.RefManagerImpl$3.run(RefManagerImpl.java:1)
[10:21:56]: at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:165)
[10:21:56]: at com.intellij.codeInspection.reference.RefManagerImpl.getReference(RefManagerImpl.java:158)
[10:21:56]: at com.intellij.codeInspection.reference.RefClassImpl.initialize(RefClassImpl.java:151)
[10:21:56]: at com.intellij.codeInspection.reference.RefManagerImpl$3.run(RefManagerImpl.java:1)
[10:21:56]: at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:165)
[10:21:56]: at com.intellij.codeInspection.reference.RefManagerImpl.getReference(RefManagerImpl.java:158)
[10:21:56]: at com.intellij.codeInspection.reference.RefMethodImpl.<init>(RefMethodImpl.java:226)
[10:21:56]: at com.intellij.codeInspection.reference.RefJavaManagerImpl.createRefElement(RefJavaManagerImpl.java:30)
[10:21:56]: at com.intellij.codeInspection.reference.RefManagerImpl$2.compute(RefManagerImpl.java:2)
[10:21:56]: at com.intellij.codeInspection.reference.RefManagerImpl$2.compute(RefManagerImpl.java:7)
[10:21:56]: at com.intellij.openapi.application.impl.ApplicationImpl$11.run(ApplicationImpl.java:3)
[10:21:56]: at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:165)
[10:21:56]: at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:142)
[10:21:56]: at com.intellij.codeInspection.reference.RefManagerImpl.getReference(RefManagerImpl.java:196)
[10:21:56]: at com.intellij.codeInspection.reference.RefJavaUtilImpl$1.a(RefJavaUtilImpl.java:8)
[10:21:56]: at com.intellij.codeInspection.reference.RefJavaUtilImpl$1.visitNewExpression(RefJavaUtilImpl.java:32)
[10:21:56]: at com.intellij.psi.impl.source.tree.java.PsiNewExpressionImpl.accept(PsiNewExpressionImpl.java:29)
[10:21:56]: at com.intellij.codeInspection.reference.RefJavaUtilImpl.addReferences(RefJavaUtilImpl.java:40)
[10:21:56]: at com.intellij.codeInspection.reference.RefClassImpl.buildReferences(RefClassImpl.java:14)
[10:21:56]: at com.intellij.codeInspection.reference.RefJavaManagerImpl$MyJavaElementVisitor.visitClass(RefJavaManagerImpl.java:9)
[10:21:56]: at com.intellij.psi.impl.source.PsiClassImpl.accept(PsiClassImpl.java:152)
[10:21:56]: at com.intellij.codeInspection.reference.RefJavaManagerImpl.visitElement(RefJavaManagerImpl.java:71)
[10:21:56]: at com.intellij.codeInspection.reference.RefManagerImpl$ProjectIterator.visitElement(RefManagerImpl.java:3)
[10:21:56]: at com.intellij.psi.impl.source.PsiClassImpl.accept(PsiClassImpl.java:201)
[10:21:56]: at com.intellij.codeInspection.reference.RefManagerImpl$ProjectIterator.visitElement(RefManagerImpl.java:16)
[10:21:56]: at com.intellij.codeInspection.reference.RefManagerImpl$ProjectIterator.visitFile(RefManagerImpl.java:17)
[10:21:56]: at com.intellij.psi.impl.source.PsiJavaFileBaseImpl.accept(PsiJavaFileBaseImpl.java:152)
[10:21:56]: at com.intellij.analysis.AnalysisScope.processFile(AnalysisScope.java:332)
[10:21:56]: at com.intellij.analysis.AnalysisScope.processFile(AnalysisScope.java:311)
[10:21:56]: at com.intellij.analysis.AnalysisScope.access$400(AnalysisScope.java:54)
[10:21:56]: at com.intellij.analysis.AnalysisScope$7.processFile(AnalysisScope.java:298)
[10:21:56]: at com.intellij.openapi.roots.impl.FileIndexImplUtil.iterateRecursively(FileIndexImplUtil.java:30)
[10:21:56]: at com.intellij.openapi.roots.impl.FileIndexImplUtil.iterateRecursively(FileIndexImplUtil.java:35)
[10:21:56]: at com.intellij.openapi.roots.impl.FileIndexImplUtil.iterateRecursively(FileIndexImplUtil.java:35)
[10:21:56]: at com.intellij.openapi.roots.impl.FileIndexImplUtil.iterateRecursively(FileIndexImplUtil.java:35)
[10:21:56]: at com.intellij.openapi.roots.impl.FileIndexImplUtil.iterateRecursively(FileIndexImplUtil.java:35)
[10:21:56]: at com.intellij.openapi.roots.impl.FileIndexImplUtil.iterateRecursively(FileIndexImplUtil.java:35)
[10:21:56]: at com.intellij.openapi.roots.impl.FileIndexImplUtil.iterateRecursively(FileIndexImplUtil.java:35)
[10:21:56]: at com.intellij.openapi.roots.impl.ProjectFileIndexImpl.iterateContent(ProjectFileIndexImpl.java:59)
[10:21:56]: at com.intellij.analysis.AnalysisScope.accept(AnalysisScope.java:296)
[10:21:56]: at com.intellij.analysis.AnalysisScope.accept(AnalysisScope.java:220)
[10:21:56]: at com.intellij.codeInspection.reference.RefManagerImpl.findAllDeclarations(RefManagerImpl.java:164)
[10:21:56]: at com.intellij.codeInspection.ex.GlobalInspectionContextImpl.a(GlobalInspectionContextImpl.java:157)
[10:21:56]: at com.intellij.codeInspection.ex.GlobalInspectionContextImpl.access$1300(GlobalInspectionContextImpl.java:38)
[10:21:56]: at com.intellij.codeInspection.ex.GlobalInspectionContextImpl$7.run(GlobalInspectionContextImpl.java:3)
[10:21:56]: at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:13)
[10:21:56]: at com.intellij.codeInspection.ex.GlobalInspectionContextImpl.b(GlobalInspectionContextImpl.java:119)
[10:21:56]: at com.intellij.codeInspection.ex.GlobalInspectionContextImpl.access$500(GlobalInspectionContextImpl.java:160)
[10:21:56]: at com.intellij.codeInspection.ex.GlobalInspectionContextImpl$4.run(GlobalInspectionContextImpl.java:20)
[10:21:56]: at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:165)
[10:21:56]: at com.intellij.codeInspection.ex.GlobalInspectionContextImpl.launchInspectionsOffline(GlobalInspectionContextImpl.java:116)
[10:21:56]: at com.intellij.codeInspection.InspectionApplication$3.run(InspectionApplication.java:2)
[10:21:56]: at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:5)
[10:21:56]: at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:13)
[10:21:56]: at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:101)
[10:21:56]: at com.intellij.codeInspection.InspectionApplication.run(InspectionApplication.java:33)
[10:21:56]: at com.intellij.codeInspection.InspectionApplication$1.run(InspectionApplication.java:11)
[10:21:56]: at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:165)
[10:21:56]: at com.intellij.codeInspection.InspectionApplication.startup(InspectionApplication.java:102)
[10:21:56]: at com.intellij.codeInspection.InspectionMain.main(InspectionMain.java:38)
[10:21:56]: at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:14)
[10:21:56]: at com.intellij.idea.MainImpl$3.run(MainImpl.java:1)
[10:21:56]: at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
[10:21:56]: at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
[10:21:56]: at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
[10:21:56]: at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
[10:21:56]: at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
[10:21:56]: at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
[10:21:56]: at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
[10:21:56]: [  94775]  ERROR - ex.GlobalInspectionContextImpl - IntelliJ IDEA 8.0.1  Build #9179
[10:21:56]: [  94775]  ERROR - ex.GlobalInspectionContextImpl - JDK: 1.5.0_06
[10:21:56]: [  94776]  ERROR - ex.GlobalInspectionContextImpl - VM: Java HotSpot(TM) Client VM
[10:21:56]: [  94776]  ERROR - ex.GlobalInspectionContextImpl - Vendor: Sun Microsystems Inc.
[10:21:56]: [  94776]  ERROR - ex.GlobalInspectionContextImpl - OS: Linux
[10:21:56]: [  94776]  ERROR - ex.GlobalInspectionContextImpl - Last Action:
[10:22:08]: Analyzing code ... 1%
[10:22:10]: [ 108767]  ERROR - ex.GlobalInspectionContextImpl -
[10:22:10]: java.lang.ClassCastException: com.intellij.codeInspection.reference.RefFieldImpl
[10:22:10]: at com.intellij.codeInspection.reference.RefFieldImpl.<init>(RefFieldImpl.java:56)
[10:22:10]: at com.intellij.codeInspection.reference.RefJavaManagerImpl.createRefElement(RefJavaManagerImpl.java:112)
[10:22:10]: at com.intellij.codeInspection.reference.RefManagerImpl$2.compute(RefManagerImpl.java:2)
[10:22:10]: at com.intellij.codeInspection.reference.RefManagerImpl$2.compute(RefManagerImpl.java:7)
[10:22:10]: at com.intellij.openapi.application.impl.ApplicationImpl$11.run(ApplicationImpl.java:3)
[10:22:10]: at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:165)
[10:22:10]: at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:142)
[10:22:10]: at com.intellij.codeInspection.reference.RefManagerImpl.getReference(RefManagerImpl.java:196)
[10:22:10]: at com.intellij.codeInspection.reference.RefJavaUtilImpl$1.visitReferenceExpression(RefJavaUtilImpl.java:39)
[10:22:10]: at com.intellij.psi.impl.source.tree.java.PsiReferenceExpressionImpl.accept(PsiReferenceExpressionImpl.java:18)
[10:22:10]: at com.intellij.codeInspection.reference.RefJavaUtilImpl.addReferences(RefJavaUtilImpl.java:40)
[10:22:10]: at com.intellij.codeInspection.reference.RefClassImpl.buildReferences(RefClassImpl.java:14)
[10:22:10]: at com.intellij.codeInspection.reference.RefJavaManagerImpl$MyJavaElementVisitor.visitClass(RefJavaManagerImpl.java:9)
[10:22:10]: at com.intellij.psi.impl.source.PsiClassImpl.accept(PsiClassImpl.java:152)
[10:22:10]: at com.intellij.codeInspection.reference.RefJavaManagerImpl.visitElement(RefJavaManagerImpl.java:71)
[10:22:10]: at com.intellij.codeInspection.reference.RefManagerImpl$ProjectIterator.visitElement(RefManagerImpl.java:3)
[10:22:10]: at com.intellij.psi.impl.source.PsiClassImpl.accept(PsiClassImpl.java:201)
[10:22:10]: at com.intellij.codeInspection.reference.RefManagerImpl$ProjectIterator.visitElement(RefManagerImpl.java:16)
[10:22:10]: at com.intellij.codeInspection.reference.RefManagerImpl$ProjectIterator.visitFile(RefManagerImpl.java:17)
[10:22:10]: at com.intellij.psi.impl.source.PsiJavaFileBaseImpl.accept(PsiJavaFileBaseImpl.java:152)
[10:22:10]: at com.intellij.analysis.AnalysisScope.processFile(AnalysisScope.java:332)
[10:22:10]: at com.intellij.analysis.AnalysisScope.processFile(AnalysisScope.java:311)
[10:22:10]: at com.intellij.analysis.AnalysisScope.access$400(AnalysisScope.java:54)
[10:22:10]: at com.intellij.analysis.AnalysisScope$7.processFile(AnalysisScope.java:298)
[10:22:10]: at com.intellij.openapi.roots.impl.FileIndexImplUtil.iterateRecursively(FileIndexImplUtil.java:30)
[10:22:10]: at com.intellij.openapi.roots.impl.FileIndexImplUtil.iterateRecursively(FileIndexImplUtil.java:35)
[10:22:10]: at com.intellij.openapi.roots.impl.FileIndexImplUtil.iterateRecursively(FileIndexImplUtil.java:35)
[10:22:10]: at com.intellij.openapi.roots.impl.FileIndexImplUtil.iterateRecursively(FileIndexImplUtil.java:35)
[10:22:10]: at com.intellij.openapi.roots.impl.FileIndexImplUtil.iterateRecursively(FileIndexImplUtil.java:35)
[10:22:10]: at com.intellij.openapi.roots.impl.FileIndexImplUtil.iterateRecursively(FileIndexImplUtil.java:35)
[10:22:10]: at com.intellij.openapi.roots.impl.FileIndexImplUtil.iterateRecursively(FileIndexImplUtil.java:35)
[10:22:10]: at com.intellij.openapi.roots.impl.ProjectFileIndexImpl.iterateContent(ProjectFileIndexImpl.java:59)
[10:22:10]: at com.intellij.analysis.AnalysisScope.accept(AnalysisScope.java:296)
[10:22:10]: at com.intellij.analysis.AnalysisScope.accept(AnalysisScope.java:220)
[10:22:10]: at com.intellij.codeInspection.reference.RefManagerImpl.findAllDeclarations(RefManagerImpl.java:164)
[10:22:10]: at com.intellij.codeInspection.ex.GlobalInspectionContextImpl.a(GlobalInspectionContextImpl.java:157)
[10:22:10]: at com.intellij.codeInspection.ex.GlobalInspectionContextImpl.access$1300(GlobalInspectionContextImpl.java:38)
[10:22:10]: at com.intellij.codeInspection.ex.GlobalInspectionContextImpl$7.run(GlobalInspectionContextImpl.java:3)
[10:22:10]: at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:13)
[10:22:10]: at com.intellij.codeInspection.ex.GlobalInspectionContextImpl.b(GlobalInspectionContextImpl.java:119)
[10:22:10]: at com.intellij.codeInspection.ex.GlobalInspectionContextImpl.access$500(GlobalInspectionContextImpl.java:160)
[10:22:10]: at com.intellij.codeInspection.ex.GlobalInspectionContextImpl$4.run(GlobalInspectionContextImpl.java:20)
[10:22:10]: at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:165)
[10:22:10]: at com.intellij.codeInspection.ex.GlobalInspectionContextImpl.launchInspectionsOffline(GlobalInspectionContextImpl.java:116)
[10:22:10]: at com.intellij.codeInspection.InspectionApplication$3.run(InspectionApplication.java:2)
[10:22:10]: at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:5)
[10:22:10]: at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:13)
[10:22:10]: at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:101)
[10:22:10]: at com.intellij.codeInspection.InspectionApplication.run(InspectionApplication.java:33)
[10:22:10]: at com.intellij.codeInspection.InspectionApplication$1.run(InspectionApplication.java:11)
[10:22:10]: at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:165)
[10:22:10]: at com.intellij.codeInspection.InspectionApplication.startup(InspectionApplication.java:102)
[10:22:10]: at com.intellij.codeInspection.InspectionMain.main(InspectionMain.java:38)
[10:22:10]: at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:14)
[10:22:10]: at com.intellij.idea.MainImpl$3.run(MainImpl.java:1)
[10:22:10]: at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
[10:22:10]: at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
[10:22:10]: at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
[10:22:10]: at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
[10:22:10]: at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
[10:22:10]: at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
[10:22:10]: at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
[10:22:10]: [ 108826]  ERROR - ex.GlobalInspectionContextImpl - IntelliJ IDEA 8.0.1  Build #9179
[10:22:10]: [ 108826]  ERROR - ex.GlobalInspectionContextImpl - JDK: 1.5.0_06
[10:22:10]: [ 108826]  ERROR - ex.GlobalInspectionContextImpl - VM: Java HotSpot(TM) Client VM
[10:22:10]: [ 108826]  ERROR - ex.GlobalInspectionContextImpl - Vendor: Sun Microsystems Inc.
[10:22:10]: [ 108826]  ERROR - ex.GlobalInspectionContextImpl - OS: Linux
[10:22:10]: [ 108826]  ERROR - ex.GlobalInspectionContextImpl - Last Action:




Any thoughts?


Thanks,
Josh
1 comment
Comment actions Permalink

Any idea on this?  I'd really like to be able to run the Code Inspections...

Thanks!

Josh

0

Please sign in to leave a comment.