Inspections failure using Maven2

Wondering if anyone can help me with this problem.  Trying to run inspections with a Maven 2 java project, and am getting the following exceptions, which go on for a while.  The inspection gets about 1/3 way through analyzing and quits.  Any thoughts?  Is it something wrong in the configuration, either in TC or Maven2 POM file?

Thanks,
Josh

[ 110582]  ERROR - ex.GlobalInspectionContextImpl -
[14:54:33]: java.util.NoSuchElementException
[14:54:33]: at java.util.AbstractList$Itr.next(AbstractList.java:427)
[14:54:33]: at com.intellij.psi.impl.source.PsiFileImpl.a(PsiFileImpl.java:370)
[14:54:33]: at com.intellij.psi.impl.source.PsiFileImpl.a(PsiFileImpl.java:357)
[14:54:33]: at com.intellij.psi.impl.source.PsiFileImpl.a(PsiFileImpl.java:357)
[14:54:33]: at com.intellij.psi.impl.source.PsiFileImpl.a(PsiFileImpl.java:357)
[14:54:33]: at com.intellij.psi.impl.source.PsiFileImpl.a(PsiFileImpl.java:357)
[14:54:33]: at com.intellij.psi.impl.source.PsiFileImpl.a(PsiFileImpl.java:357)
[14:54:33]: at com.intellij.psi.impl.source.PsiFileImpl.a(PsiFileImpl.java:357)
[14:54:33]: at com.intellij.psi.impl.source.PsiFileImpl.a(PsiFileImpl.java:357)
[14:54:33]: at com.intellij.psi.impl.source.PsiFileImpl.a(PsiFileImpl.java:357)
[14:54:33]: at com.intellij.psi.impl.source.PsiFileImpl.a(PsiFileImpl.java:357)
[14:54:33]: at com.intellij.psi.impl.source.PsiFileImpl.a(PsiFileImpl.java:357)
[14:54:33]: at com.intellij.psi.impl.source.PsiFileImpl.loadTreeElement(PsiFileImpl.java:354)
[14:54:33]: at com.intellij.extapi.psi.StubBasedPsiElementBase.getNode(StubBasedPsiElementBase.java:54)
[14:54:33]: at com.intellij.psi.impl.source.PsiMethodImpl.getNode(PsiMethodImpl.java:20)
[14:54:33]: at com.intellij.psi.impl.source.PsiMethodImpl.getBody(PsiMethodImpl.java:86)

.......

[14:54:33]: [ 110588]  ERROR - ex.GlobalInspectionContextImpl - IntelliJ IDEA 8.0.1  Build #9179
[14:54:33]: [ 110588]  ERROR - ex.GlobalInspectionContextImpl - JDK: 1.5.0_06
[14:54:33]: [ 110588]  ERROR - ex.GlobalInspectionContextImpl - VM: Java HotSpot(TM) Client VM
[14:54:33]: [ 110588]  ERROR - ex.GlobalInspectionContextImpl - Vendor: Sun Microsystems Inc.
[14:54:33]: [ 110605]  ERROR - ex.GlobalInspectionContextImpl - OS: Linux
[14:54:33]: [ 110605]  ERROR - ex.GlobalInspectionContextImpl - Last Action:
[14:54:34]: [ 111084]  ERROR - ex.GlobalInspectionContextImpl -
[14:54:34]: java.lang.IllegalStateException: @NotNull method com/intellij/extapi/psi/StubBasedPsiElementBase.getRequiredStubOrPsiChild must not return null
[14:54:34]: at com.intellij.extapi.psi.StubBasedPsiElementBase.getRequiredStubOrPsiChild(StubBasedPsiElementBase.java:175)
[14:54:34]: at com.intellij.psi.impl.source.PsiMethodImpl.getModifierList(PsiMethodImpl.java:53)
[14:54:34]: at com.intellij.psi.scope.processor.MethodCandidatesProcessor.addMethod(MethodCandidatesProcessor.java:8)
[14:54:34]: at com.intellij.psi.scope.processor.MethodCandidatesProcessor.add(MethodCandidatesProcessor.java:26)
[14:54:34]: at com.intellij.psi.scope.processor.FilterScopeProcessor.execute(FilterScopeProcessor.java:15)
[14:54:34]: at com.intellij.psi.scope.processor.ConflictFilterProcessor.execute(ConflictFilterProcessor.java:14)
[14:54:34]: at com.intellij.psi.scope.processor.MethodResolverProcessor.execute(MethodResolverProcessor.java:3)
[14:54:34]: at com.intellij.psi.impl.source.resolve.PsiResolveHelperImpl.multiResolveConstructor(PsiResolveHelperImpl.java:105)
[14:54:34]: at com.intellij.psi.impl.source.tree.java.PsiNewExpressionImpl$1.resolveInner(PsiNewExpressionImpl.java:25)
[14:54:34]: at com.intellij.psi.impl.source.tree.java.PsiNewExpressionImpl$1.resolveInner(PsiNewExpressionImpl.java:8)
[14:54:34]: at com.intellij.psi.impl.source.resolve.reference.impl.PsiPolyVariantCachingReference$MyResolver.resolve(PsiPolyVariantCachingReference.java:4)
[14:54:34]: at com.intellij.psi.impl.source.resolve.reference.impl.PsiPolyVariantCachingReference$MyResolver.resolve(PsiPolyVariantCachingReference.java:2)

.......

[14:54:34]: [ 111087]  ERROR - ex.GlobalInspectionContextImpl - IntelliJ IDEA 8.0.1  Build #9179
[14:54:34]: [ 111087]  ERROR - ex.GlobalInspectionContextImpl - JDK: 1.5.0_06
[14:54:34]: [ 111087]  ERROR - ex.GlobalInspectionContextImpl - VM: Java HotSpot(TM) Client VM
[14:54:34]: [ 111087]  ERROR - ex.GlobalInspectionContextImpl - Vendor: Sun Microsystems Inc.
[14:54:34]: [ 111088]  ERROR - ex.GlobalInspectionContextImpl - OS: Linux
[14:54:34]: [ 111088]  ERROR - ex.GlobalInspectionContextImpl - Last Action:
[14:54:34]: [ 111338]  ERROR - ex.GlobalInspectionContextImpl -
[14:54:34]: java.lang.IllegalStateException: @NotNull method com/intellij/extapi/psi/StubBasedPsiElementBase.getRequiredStubOrPsiChild must not return null
[14:54:34]: at com.intellij.extapi.psi.StubBasedPsiElementBase.getRequiredStubOrPsiChild(StubBasedPsiElementBase.java:175)
[14:54:34]: at com.intellij.psi.impl.source.PsiMethodImpl.getModifierList(PsiMethodImpl.java:53)
[14:54:34]: at com.intellij.psi.scope.processor.MethodCandidatesProcessor.addMethod(MethodCandidatesProcessor.java:8)
[14:54:34]: at com.intellij.psi.scope.processor.MethodCandidatesProcessor.add(MethodCandidatesProcessor.java:26)
[14:54:34]: at com.intellij.psi.scope.processor.FilterScopeProcessor.execute(FilterScopeProcessor.java:15)
[14:54:34]: at com.intellij.psi.scope.processor.ConflictFilterProcessor.execute(ConflictFilterProcessor.java:14)
[14:54:34]: at com.intellij.psi.scope.processor.MethodResolverProcessor.execute(MethodResolverProcessor.java:3)
[14:54:34]: at com.intellij.psi.impl.source.resolve.PsiResolveHelperImpl.multiResolveConstructor(PsiResolveHelperImpl.java:105)
[14:54:34]: at com.intellij.psi.impl.source.tree.java.PsiNewExpressionImpl$1.resolveInner(PsiNewExpressionImpl.java:25)
[14:54:34]: at com.intellij.psi.impl.source.tree.java.PsiNewExpressionImpl$1.resolveInner(PsiNewExpressionImpl.java:8)
[14:54:34]: at com.intellij.psi.impl.source.resolve.reference.impl.PsiPolyVariantCachingReference$MyResolver.resolve(PsiPolyVariantCachingReference.java:4)
[14:54:34]: at com.intellij.psi.impl.source.resolve.reference.impl.PsiPolyVariantCachingReference$MyResolver.resolve(PsiPolyVariantCachingReference.java:2)
[14:54:34]: at com.intellij.psi.impl.source.resolve.ResolveCache.a(ResolveCache.java:81)

........

[14:54:34]: [ 111342]  ERROR - ex.GlobalInspectionContextImpl - IntelliJ IDEA 8.0.1  Build #9179
[14:54:34]: [ 111342]  ERROR - ex.GlobalInspectionContextImpl - JDK: 1.5.0_06
[14:54:34]: [ 111408]  ERROR - ex.GlobalInspectionContextImpl - VM: Java HotSpot(TM) Client VM
[14:54:34]: [ 111409]  ERROR - ex.GlobalInspectionContextImpl - Vendor: Sun Microsystems Inc.
[14:54:34]: [ 111409]  ERROR - ex.GlobalInspectionContextImpl - OS: Linux
[14:54:34]: [ 111409]  ERROR - ex.GlobalInspectionContextImpl - Last Action:
[14:54:34]: [ 111579]  ERROR - ex.GlobalInspectionContextImpl -
[14:54:34]: java.lang.IllegalStateException: @NotNull method com/intellij/extapi/psi/StubBasedPsiElementBase.getRequiredStubOrPsiChild must not return null
[14:54:34]: at com.intellij.extapi.psi.StubBasedPsiElementBase.getRequiredStubOrPsiChild(StubBasedPsiElementBase.java:175)
[14:54:34]: at com.intellij.psi.impl.source.PsiMethodImpl.getModifierList(PsiMethodImpl.java:53)
[14:54:34]: at com.intellij.psi.scope.processor.MethodCandidatesProcessor.addMethod(MethodCandidatesProcessor.java:8)
[14:54:34]: at com.intellij.psi.scope.processor.MethodCandidatesProcessor.add(MethodCandidatesProcessor.java:26)
[14:54:34]: at com.intellij.psi.scope.processor.FilterScopeProcessor.execute(FilterScopeProcessor.java:15)
[14:54:34]: at com.intellij.psi.scope.processor.ConflictFilterProcessor.execute(ConflictFilterProcessor.java:14)
[14:54:34]: at com.intellij.psi.scope.processor.MethodResolverProcessor.execute(MethodResolverProcessor.java:3)
[14:54:34]: at com.intellij.psi.impl.source.resolve.PsiResolveHelperImpl.multiResolveConstructor(PsiResolveHelperImpl.java:105)
[14:54:34]: at com.intellij.psi.impl.source.tree.java.PsiNewExpressionImpl$1.resolveInner(PsiNewExpressionImpl.java:25)
[14:54:34]: at com.intellij.psi.impl.source.tree.java.PsiNewExpressionImpl$1.resolveInner(PsiNewExpressionImpl.java:8)

..........




2 comments
Comment actions Permalink

BTW - Running Teamcity 4.0.1 (build 8171) (from what I could tell, this was not addressed in 4.0.2)

Josh

0
Comment actions Permalink

Sorry for the long delay. The question is still actual with latest TeamCity release?

Kind regards,
Marina
0

Please sign in to leave a comment.