Maven inspections configuration ending up in StackOverflow error

Hello,

   Thanks a lot for developing and contributing this wonderful product. We use TeamCity Professional

Version 5.1.4 (build 13550) to build our projects. In this one build configuration is declared as Maven

Inspection project, but this project fails to execute with the following exception. Any clue what's going

wrong?


Please note:

  • Our project is multi module maven project.
  • Following parameters in JVM command line

         -Xmx1512m -XX:MaxPermSize=128m -Didea.include.patterns=src/main/java/** -Didea.exclude.patterns=src/main/resources/**

Exception:

[15:06:56]: Initializing project...done.

[15:06:57]: Analyzing code ... 0%

[15:06:57]: Analyzing code ... 1%

[15:06:57]: Analyzing code ... 2%

[15:06:58]: Analyzing code ... 3%

[15:06:58]: Analyzing code ... 4%

[15:06:59]: Analyzing code ... 5%

[15:07:04]: Analyzing code ... 6%

[15:07:07]: Analyzing code ... 7%

[15:07:11]: Analyzing code ... 8%

[15:07:15]: Analyzing code ... 9%

[15:07:22]: Analyzing code ... 10%

[15:07:27]: Analyzing code ... 11%

[15:07:28]: [ 305384] ERROR - spection.InspectionApplication - null

[15:07:28]: java.lang.StackOverflowError

[15:07:28]: at com.intellij.util.containers.ConcurrentHashMap$Segment.get(ConcurrentHashMap.java:269)

[15:07:28]: at com.intellij.util.containers.ConcurrentHashMap.get(ConcurrentHashMap.java:683)

[15:07:28]: at com.intellij.util.containers.ConcurrentWeakHashMap.get(ConcurrentWeakHashMap.java:199)

[15:07:28]: at com.intellij.psi.impl.source.resolve.ResolveCache.a(ResolveCache.java:243)

[15:07:28]: at com.intellij.psi.impl.source.resolve.ResolveCache.a(ResolveCache.java:113)

[15:07:28]: at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:143)

[15:07:28]: at com.intellij.psi.impl.source.PsiJavaCodeReferenceElementImpl.multiResolve(PsiJavaCodeReferenceElementImpl.java:372)

[15:07:28]: at com.intellij.psi.impl.source.PsiJavaCodeReferenceElementImpl.advancedResolve(PsiJavaCodeReferenceElementImpl.java:358)

[15:07:28]: at com.intellij.psi.impl.source.PsiClassReferenceType.resolveGenerics(PsiClassReferenceType.java:125)

[15:07:28]: at com.intellij.psi.impl.PsiSubstitutorImpl$SubstitutionVisitor.visitClassType(PsiSubstitutorImpl.java:185)

[15:07:28]: at com.intellij.psi.impl.PsiSubstitutorImpl$SubstitutionVisitor.visitClassType(PsiSubstitutorImpl.java:177)

[15:07:28]: at com.intellij.psi.PsiClassType.accept(PsiClassType.java:191)

[15:07:28]: at com.intellij.psi.impl.PsiSubstitutorImpl$SubstitutionVisitor.a(PsiSubstitutorImpl.java:218)

[15:07:28]: at com.intellij.psi.impl.PsiSubstitutorImpl$SubstitutionVisitor.a(PsiSubstitutorImpl.java:228)

[15:07:28]: at com.intellij.psi.impl.PsiSubstitutorImpl$SubstitutionVisitor.visitClassType(PsiSubstitutorImpl.java:198)

[15:07:28]: at com.intellij.psi.impl.PsiSubstitutorImpl$SubstitutionVisitor.visitClassType(PsiSubstitutorImpl.java:177)

[15:07:28]: at com.intellij.psi.PsiClassType.accept(PsiClassType.java:191)

[15:07:28]: at com.intellij.psi.impl.PsiSubstitutorImpl.a(PsiSubstitutorImpl.java:253)

[15:07:28]: at com.intellij.psi.impl.PsiSubstitutorImpl.access$400(PsiSubstitutorImpl.java:36)

[15:07:28]: at com.intellij.psi.impl.PsiSubstitutorImpl$SubstitutionVisitor.a(PsiSubstitutorImpl.java:211)

[15:07:28]: at com.intellij.psi.impl.PsiSubstitutorImpl$SubstitutionVisitor.visitClassType(PsiSubstitutorImpl.java:191)

[15:07:28]: at com.intellij.psi.impl.PsiSubstitutorImpl$SubstitutionVisitor.visitClassType(PsiSubstitutorImpl.java:177)

[15:07:28]: at com.intellij.psi.PsiClassType.accept(PsiClassType.java:191)

[15:07:28]: at com.intellij.psi.impl.PsiSubstitutorImpl$SubstitutionVisitor.a(PsiSubstitutorImpl.java:218)

[15:07:28]: at com.intellij.psi.impl.PsiSubstitutorImpl$SubstitutionVisitor.a(PsiSubstitutorImpl.java:228)

[15:07:28]: at com.intellij.psi.impl.PsiSubstitutorImpl$SubstitutionVisitor.visitClassType(PsiSubstitutorImpl.java:198)

[15:07:28]: at com.intellij.psi.impl.PsiSubstitutorImpl$SubstitutionVisitor.visitClassType(PsiSubstitutorImpl.java:177)

[15:07:28]: at com.intellij.psi.PsiClassType.accept(PsiClassType.java:191)

[15:07:28]: at com.intellij.psi.impl.PsiSubstitutorImpl.substitute(PsiSubstitutorImpl.java:66)

[15:07:28]: at com.intellij.psi.util.TypeConversionUtil.checkReferenceList(TypeConversionUtil.java:970)

[15:07:28]: at com.intellij.psi.util.TypeConversionUtil.getSuperClassSubstitutorInner(TypeConversionUtil.java:957)

[15:07:28]: at com.intellij.psi.util.TypeConversionUtil.getSuperClassSubstitutor(TypeConversionUtil.java:919)

[15:07:28]: at com.intellij.psi.util.TypeConversionUtil.typeParametersAgree(TypeConversionUtil.java:805)

[15:07:28]: at com.intellij.psi.util.TypeConversionUtil.isClassAssignable(TypeConversionUtil.java:788)

[15:07:28]: at com.intellij.psi.util.TypeConversionUtil.isAssignable(TypeConversionUtil.java:709)

[15:07:28]: at com.intellij.psi.util.TypeConversionUtil.isAssignable(TypeConversionUtil.java:613)

[15:07:28]: at com.intellij.psi.PsiType.isAssignableFrom(PsiType.java:84)

[15:07:28]: at com.intellij.psi.impl.PsiSubstitutorImpl.a(PsiSubstitutorImpl.java:256)

[15:07:28]: at com.intellij.psi.impl.PsiSubstitutorImpl.access$400(PsiSubstitutorImpl.java:36)

[15:07:28]: at com.intellij.psi.impl.PsiSubstitutorImpl$SubstitutionVisitor.a(PsiSubstitutorImpl.java:211)

[15:07:28]: at com.intellij.psi.impl.PsiSubstitutorImpl$SubstitutionVisitor.visitClassType(PsiSubstitutorImpl.java:191)

[15:07:28]: at com.intellij.psi.impl.PsiSubstitutorImpl$SubstitutionVisitor.visitClassType(PsiSubstitutorImpl.java:177)

[15:07:28]: at com.intellij.psi.PsiClassType.accept(PsiClassType.java:191)

[15:07:28]: at com.intellij.psi.impl.PsiSubstitutorImpl$SubstitutionVisitor.a(PsiSubstitutorImpl.java:218)

[15:07:28]: at com.intellij.psi.impl.PsiSubstitutorImpl$SubstitutionVisitor.a(PsiSubstitutorImpl.java:228)

[15:07:28]: at com.intellij.psi.impl.PsiSubstitutorImpl$SubstitutionVisitor.visitClassType(PsiSubstitutorImpl.java:198)

[15:07:28]: at com.intellij.psi.impl.PsiSubstitutorImpl$SubstitutionVisitor.visitClassType(PsiSubstitutorImpl.java:177)

[15:07:28]: at com.intellij.psi.PsiClassType.accept(PsiClassType.java:191)

[15:07:28]: at com.intellij.psi.impl.PsiSubstitutorImpl.substitute(PsiSubstitutorImpl.java:66)

[15:07:28]: at com.intellij.psi.util.TypeConversionUtil.checkReferenceList(TypeConversionUtil.java:970)

[15:07:28]: at com.intellij.psi.util.TypeConversionUtil.getSuperClassSubstitutorInner(TypeConversionUtil.java:957)

[15:07:28]: at com.intellij.psi.util.TypeConversionUtil.checkReferenceList(TypeConversionUtil.java:978)

[15:07:28]: at com.intellij.psi.util.TypeConversionUtil.getSuperClassSubstitutorInner(TypeConversionUtil.java:957)

[15:07:28]: at com.intellij.psi.util.TypeConversionUtil.getSuperClassSubstitutor(TypeConversionUtil.java:919)

[15:07:28]: at com.intellij.psi.util.TypeConversionUtil.typeParametersAgree(TypeConversionUtil.java:805)

[15:07:28]: at com.intellij.psi.util.TypeConversionUtil.isClassAssignable(TypeConversionUtil.java:788)

[15:07:28]: at com.intellij.psi.util.TypeConversionUtil.isAssignable(TypeConversionUtil.java:709)

[15:07:28]: at com.intellij.psi.util.TypeConversionUtil.isAssignable(TypeConversionUtil.java:613)

[15:07:28]: at com.intellij.psi.PsiType.isAssignableFrom(PsiType.java:84)

Thanks in advance.

Regards

Diwakar

1 comment

Could you please attach the whole stacktrace?

0

Please sign in to leave a comment.