Unable to create symbol table

java

(Jesper Thuun-Petersen) #1

I’m running Sonarqube Community Edition Version 7.6 (build 21501).
On my local dev environment I’m running these versions of gradle and java:

Gradle 4.5.1
Groovy: 2.4.12
JVM: 1.8.0_191 (Oracle Corporation 25.191-b12)
OS: Linux 4.4.0-17134-Microsoft amd64

When I run the command:

./gradlew sonarqube -Dsonar.projectKey=STEP -Dsonar.host.url=http://glenlivet.stibo.dk:9000 -Dsonar.login=8368b18215330cff0d262f96c97eea0f33a43e77 -u -xtest

After a long while, I get this exception:

Task :sonarqube
Unable to create symbol table for : /mnt/e/code/DeveloperSetup/coreDomain/com.stibo.core.domain/java/com/stibo/core/domain/impl/FrontRevisableTreeNodeImpl.java
java.lang.IllegalArgumentException: null
at com.google.common.base.Preconditions.checkArgument(Preconditions.java:127)
at org.sonar.java.resolve.LeastUpperBound.leastContainingTypeArgument(LeastUpperBound.java:257)
at org.sonar.java.resolve.LeastUpperBound.leastContainingParameterization(LeastUpperBound.java:248)
at org.sonar.java.resolve.LeastUpperBound.cachedLeastUpperBound(LeastUpperBound.java:104)
at org.sonar.java.resolve.LeastUpperBound.leastUpperBound(LeastUpperBound.java:68)
at org.sonar.java.resolve.TypeSubstitutionSolver.leastUpperBound(TypeSubstitutionSolver.java:54)
at org.sonar.java.resolve.Resolve.leastUpperBound(Resolve.java:954)
at org.sonar.java.resolve.Resolve.conditionalExpressionType(Resolve.java:990)
at org.sonar.java.resolve.TypeAndReferenceSolver.visitConditionalExpression(TypeAndReferenceSolver.java:525)
at org.sonar.java.model.expression.ConditionalExpressionTreeImpl.accept(ConditionalExpressionTreeImpl.java:85)

Not sure what my options are here. I’ve searched the internet, and only found suggestions about running java 8 and the newest version of sonarqube. It seems I’m doing both.

BR
Jesper


(G Ann Campbell) #2

Hi Jesper,

It’s likely that something needs to happen on our end, but first we’ll need a minimal reproducer. Can you provide a tiny (1-file) project that reproduces the problem?

 
Thx,
Ann