SonarQube Version 9.2 Gradle/Maven projects issue

We recently upgraded our SonarQube Test server from Version 8.9 to 9.2.
I am using the latest sonar scanner and Java 11 in my local. But I am getting this error in Gradle and Maven projects. I’ve attached the detailed logs.

sonar-scanner version:

$ sonar-scanner --version
INFO: Scanner configuration file: /usr/local/Cellar/sonar-scanner/4.6.2.2472_1/libexec/conf/sonar-scanner.properties
INFO: Project root configuration file: NONE
INFO: SonarScanner 4.6.2.2472
INFO: Java 11.0.12 Homebrew (64-bit)
INFO: Mac OS X 10.14.6 x86_64
12:55:42.533 [INFO] [org.sonarqube.gradle.SonarQubeTask] JavaTestClasspath initialization (done) | time=14ms
12:55:42.541 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] Found 0 JSP files.
12:55:42.542 [INFO] [org.sonarqube.gradle.SonarQubeTask] Java "Main" source files AST scan
12:55:42.549 [LIFECYCLE] [org.sonarqube.gradle.SonarQubeTask] 
12:55:42.549 [INFO] [org.sonarqube.gradle.SonarQubeTask] 5 source files to be analyzed
12:55:42.642 [DEBUG] [org.gradle.process.internal.health.memory.MemoryManager] Emitting OS memory status event {Total: 17179869184, Free: 7680385024}
12:55:42.642 [DEBUG] [org.gradle.launcher.daemon.server.health.LowMemoryDaemonExpirationStrategy] Received memory status update: {Total: 17179869184, Free: 7680385024}
12:55:42.642 [DEBUG] [org.gradle.process.internal.health.memory.MemoryManager] Emitting JVM memory status event {Maximum: 536870912, Committed: 270532608}
12:55:42.811 [DEBUG] [okhttp3.internal.concurrent.TaskRunner] Q10000 starting              : OkHttp ConnectionPool
12:55:42.811 [DEBUG] [okhttp3.internal.concurrent.TaskRunner] Q10000 run again after 300 s : OkHttp ConnectionPool
12:55:42.811 [DEBUG] [okhttp3.internal.concurrent.TaskRunner] Q10000 finished run in 298 µs: OkHttp ConnectionPool
12:55:42.869 [DEBUG] [okhttp3.internal.http2.Http2] << 0x0000005f    43 HEADERS       END_HEADERS
12:55:42.869 [DEBUG] [okhttp3.internal.http2.Http2] << 0x0000005f   113 DATA          
12:55:42.869 [DEBUG] [okhttp3.internal.http2.Http2] << 0x0000005f     0 DATA          END_STREAM
12:55:42.870 [DEBUG] [okhttp3.internal.concurrent.TaskRunner] Q10000 starting              : OkHttp ConnectionPool
12:55:42.870 [DEBUG] [okhttp3.internal.concurrent.TaskRunner] Q10000 run again after 300 s : OkHttp ConnectionPool
12:55:42.870 [DEBUG] [okhttp3.internal.concurrent.TaskRunner] Q10000 finished run in 365 µs: OkHttp ConnectionPool
12:55:44.575 [INFO] [org.sonarqube.gradle.SonarQubeTask] 5/5 source files have been analyzed
12:55:42.541 [LIFECYCLE] [class org.gradle.internal.buildevents.TaskExecutionLogger] 
12:55:42.541 [LIFECYCLE] [class org.gradle.internal.buildevents.TaskExecutionLogger] > Task :sonarqube FAILED
12:55:42.696 [INFO] [org.sonarqube.gradle.SonarQubeTask] Load project repositories
12:55:42.811 [DEBUG] [okhttp3.internal.concurrent.TaskRunner] Q10000 scheduled after   0 µs: OkHttp ConnectionPool
12:55:42.811 [DEBUG] [okhttp3.internal.http2.Http2] >> 0x0000005f    69 HEADERS       END_STREAM|END_HEADERS
12:55:42.869 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] GET 404 https://test-sonarqube.nexteraenergy.com/batch/project.protobuf?key=com.nee.fpl.fplcom.fpl.com-solar-together-services-api | time=172ms
12:55:42.869 [DEBUG] [okhttp3.internal.concurrent.TaskRunner] Q10000 scheduled after   0 µs: OkHttp ConnectionPool
12:55:42.870 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] Project repository not available - continuing without it
12:55:42.870 [INFO] [org.sonarqube.gradle.SonarQubeTask] Load project repositories (done) | time=173ms
12:55:42.870 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/main/java/com/fplws/solartogheterservices/FplSolartogheterServicesApplication.java' generated metadata with charset 'UTF-8'
12:55:43.951 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] [SE] Loaded 179 hardcoded method behaviors.
12:55:43.983 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] Analysis time of src/main/java/com/fplws/solartogheterservices/FplSolartogheterServicesApplication.java (1433ms)
12:55:43.984 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/main/java/com/fplws/solartogheterservices/domain/ResponsePayload.java' generated metadata with charset 'UTF-8'
12:55:44.132 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/main/java/com/fplws/solartogheterservices/domain/Payload.java' generated metadata with charset 'UTF-8'
12:55:44.265 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/main/java/com/fplws/solartogheterservices/controller/EndpointController.java' generated metadata with charset 'UTF-8'
12:55:44.402 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] 'src/main/java/com/fplws/solartogheterservices/service/SolarTogheterService.java' generated metadata with charset 'UTF-8'
12:55:44.581 [WARN] [org.sonarqube.gradle.SonarQubeTask] Unresolved imports/types have been detected during analysis. Enable DEBUG mode to see them.
12:55:44.581 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] Unresolved imports/types:
- Payload cannot be resolved to a type
- ResponsePayload cannot be resolved to a type
- SolarTogheterService cannot be resolved to a type
- The import com.fplws.solartogheterservices.domain cannot be resolved
- The import com.fplws.solartogheterservices.service cannot be resolved
12:55:44.581 [INFO] [org.sonarqube.gradle.SonarQubeTask] Java "Main" source files AST scan (done) | time=2040ms
12:55:44.582 [INFO] [org.sonarqube.gradle.SonarQubeTask] No "Test" source files to scan.
12:55:44.582 [INFO] [org.sonarqube.gradle.SonarQubeTask] No "Generated" source files to scan.
12:55:44.582 [INFO] [org.sonarqube.gradle.SonarQubeTask] Sensor JavaSensor [java] (done) | time=2442ms
12:55:44.582 [INFO] [org.sonarqube.gradle.SonarQubeTask] Sensor Mutation Analysis [mutationanalysis]
12:55:44.583 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] Enabled Languages for Pitest: [java, kotlin]
12:55:44.583 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] Enabled Languages for Pitest: [java, kotlin]
12:55:44.583 [INFO] [org.sonarqube.gradle.SonarQubeTask] Pitest Sensor [java, kotlin] running on [key=com.nee.fpl.fplcom.fpl.com-solar-together-services-api] in /Users/ixm0f5j/Workspace/fpl/fpl-solartogether-services
12:55:44.583 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] Reading mutants
12:55:44.584 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] Searching pit reports in /Users/ixm0f5j/Workspace/fpl/fpl-solartogether-services/target/pit-reports
12:55:44.592 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Completing Build operation 'Execute run for :sonarqube'
12:55:44.592 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Build operation 'Execute run for :sonarqube' completed
12:55:44.592 [DEBUG] [org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter] Removed task artifact state for {} from context.
12:55:44.592 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Completing Build operation 'Task :sonarqube'
12:55:44.592 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Build operation 'Task :sonarqube' completed
12:55:44.593 [INFO] [org.gradle.execution.plan.DefaultPlanExecutor] :sonarqube (Thread[Execution worker for ':',5,main]) completed. Took 20.507 secs.
12:55:44.593 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker for ':': released lock on :
12:55:44.593 [DEBUG] [org.gradle.internal.work.DefaultWorkerLeaseService] Worker lease root.1.28 completed (1 worker(s) in use)
12:55:44.593 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Execution worker for ':': released lock on root.1.28
12:55:44.593 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 7,5,main]] finished, busy: 0.0 secs, idle: 24.734 secs
12:55:44.593 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 8,5,main]] finished, busy: 0.0 secs, idle: 24.734 secs
12:55:44.593 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 10,5,main]] finished, busy: 0.0 secs, idle: 24.733 secs
12:55:44.593 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Daemon worker Thread 3,5,main]] finished, busy: 0.0 secs, idle: 24.733 secs
12:55:44.593 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 3,5,main]] finished, busy: 0.0 secs, idle: 24.734 secs
12:55:44.593 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 9,5,main]] finished, busy: 0.0 secs, idle: 24.733 secs
12:55:44.593 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':',5,main]] finished, busy: 24.728 secs, idle: 0.007 secs
12:55:44.593 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 4,5,main]] finished, busy: 0.0 secs, idle: 24.734 secs
12:55:44.593 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 5,5,main]] finished, busy: 0.0 secs, idle: 24.734 secs
12:55:44.593 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 2,5,main]] finished, busy: 0.0 secs, idle: 24.735 secs
12:55:44.593 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 11,5,main]] finished, busy: 0.0 secs, idle: 24.733 secs
12:55:44.593 [DEBUG] [org.gradle.execution.plan.DefaultPlanExecutor] Execution worker [Thread[Execution worker for ':' Thread 6,5,main]] finished, busy: 0.0 secs, idle: 24.734 secs
12:55:44.597 [DEBUG] [org.gradle.execution.taskgraph.DefaultTaskExecutionGraph] Timing: Executing the DAG took 24.747 secs
12:55:44.598 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Completing Build operation 'Run tasks'
12:55:44.598 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Build operation 'Run tasks' completed
12:55:44.600 [DEBUG] [org.gradle.internal.work.DefaultWorkerLeaseService] Worker lease root.1 completed (0 worker(s) in use)
12:55:44.600 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Daemon worker Thread 3: released lock on root.1
12:55:44.600 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 
**12:55:44.600 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.**
**12:55:44.601 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] **
**12:55:44.601 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:**
**12:55:44.601 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Execution failed for task ':sonarqube'.**
**12:55:44.601 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > com/ctc/wstx/exc/WstxParsingException**
**12:55:44.601 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] **
**12:55:44.601 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Try:**
**12:55:44.601 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Run with --stacktrace option to get the stack trace.  Run with --scan to get full insights.**
12:55:44.601 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 
12:55:44.601 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Get more help at https://help.gradle.org
12:55:44.601 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger] 
12:55:44.601 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger] BUILD FAILED in 25s
12:55:44.601 [LIFECYCLE] [org.gradle.internal.buildevents.TaskExecutionStatisticsReporter] 3 actionable tasks: 1 executed, 2 up-to-date
12:55:44.625 [QUIET] [com.gradle.scan.plugin.BuildScanPlugin] 
12:55:44.625 [QUIET] [com.gradle.scan.plugin.BuildScanPlugin] Publishing build scan...
12:55:44.744 [DEBUG] [jdk.event.security]  TLSHandshake: GOXSD5293.fpl.com:443, TLSv1.3, TLS_AES_256_GCM_SHA384, -706933136
12:55:44.744 [DEBUG] [sun.net.www.protocol.http.HttpURLConnection] sun.net.www.MessageHeader@f2915d110 pairs: {POST /in/5.6.4/2.1 HTTP/1.1: null}{X-Request-ID: 6690a0cc-404d-40e4-a82e-cc8a255d7823}{Content-Type: application/vnd.gradle.scan}{Cache-Control: no-cache}{Pragma: no-cache}{User-Agent: Java/11.0.13}{Host: GOXSD5293.fpl.com}{Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2}{Connection: close}{Content-Length: 90396}
12:55:45.053 [DEBUG] [sun.net.www.protocol.http.HttpURLConnection] sun.net.www.MessageHeader@73e9269412 pairs: {null: HTTP/1.1 200 OK}{Server: nginx}{Date: Wed, 16 Feb 2022 17:55:45 GMT}{Content-Type: application/vnd.gradle.scan-ack}{Content-Length: 82}{Connection: close}{cache-control: no-cache, no-store, must-revalidate}{pragma: no-cache}{expires: 0}{x-content-type-options: nosniff}{x-frame-options: deny}{x-xss-protection: 1; mode=block}
12:55:45.054 [QUIET] [com.gradle.scan.plugin.BuildScanPlugin] https://goxsd5293.fpl.com/s/ti2fnj6begqca
12:55:45.055 [QUIET] [com.gradle.scan.plugin.BuildScanPlugin] 
12:55:45.055 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Completing Build operation 'Run build'
12:55:45.055 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Build operation 'Run build' completed
12:55:45.058 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for file content cache (/Users/ixm0f5j/Workspace/fpl/fpl-solartogether-services/.gradle/5.6.4/fileContent)
12:55:45.059 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on file content cache (/Users/ixm0f5j/Workspace/fpl/fpl-solartogether-services/.gradle/5.6.4/fileContent).
12:55:45.060 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for Build Output Cleanup Cache (/Users/ixm0f5j/Workspace/fpl/fpl-solartogether-services/.gradle/buildOutputCleanup)
12:55:45.060 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on Build Output Cleanup Cache (/Users/ixm0f5j/Workspace/fpl/fpl-solartogether-services/.gradle/buildOutputCleanup).
12:55:45.060 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for execution history cache (/Users/ixm0f5j/Workspace/fpl/fpl-solartogether-services/.gradle/5.6.4/executionHistory)
12:55:45.060 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache executionHistory.bin (/Users/ixm0f5j/Workspace/fpl/fpl-solartogether-services/.gradle/5.6.4/executionHistory/executionHistory.bin)
12:55:45.061 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on execution history cache (/Users/ixm0f5j/Workspace/fpl/fpl-solartogether-services/.gradle/5.6.4/executionHistory).
12:55:45.061 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for cache directory md-supplier (/Users/ixm0f5j/.gradle/caches/5.6.4/md-supplier)
12:55:45.061 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on cache directory md-supplier (/Users/ixm0f5j/.gradle/caches/5.6.4/md-supplier).
12:55:45.062 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for cache directory md-rule (/Users/ixm0f5j/.gradle/caches/5.6.4/md-rule)
12:55:45.062 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on cache directory md-rule (/Users/ixm0f5j/.gradle/caches/5.6.4/md-rule).
12:55:45.062 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.CachedStoreFactory] Resolution result cache closed. Cache reads: 0, disk reads: 0 (avg: 0.0 secs, total: 0.0 secs)
12:55:45.063 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.CachedStoreFactory] Resolution result cache closed. Cache reads: 6, disk reads: 94 (avg: 0.0 secs, total: 0.008 secs)
12:55:45.065 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.ResolutionResultsStoreFactory] Deleted 4 resolution results binary files in 0.002 secs
12:55:45.065 [DEBUG] [org.gradle.deployment.internal.DefaultDeploymentRegistry] Stopping 0 deployment handles
12:55:45.065 [DEBUG] [org.gradle.deployment.internal.DefaultDeploymentRegistry] Stopped deployment handles
12:55:45.066 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for file hash cache (/Users/ixm0f5j/Workspace/fpl/fpl-solartogether-services/.gradle/5.6.4/fileHashes)
12:55:45.066 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on file hash cache (/Users/ixm0f5j/Workspace/fpl/fpl-solartogether-services/.gradle/5.6.4/fileHashes).
12:55:45.066 [DEBUG] [org.gradle.cache.internal.DefaultPersistentDirectoryStore] VCS Checkout Cache (/Users/ixm0f5j/Workspace/fpl/fpl-solartogether-services/.gradle/vcs-1) has last been fully cleaned up 22 hours ago
12:55:45.066 [DEBUG] [org.gradle.cache.internal.DefaultCacheAccess] Cache VCS Checkout Cache (/Users/ixm0f5j/Workspace/fpl/fpl-solartogether-services/.gradle/vcs-1) was closed 0 times.
12:55:45.066 [DEBUG] [org.gradle.cache.internal.DefaultCacheAccess] Cache VCS metadata (/Users/ixm0f5j/Workspace/fpl/fpl-solartogether-services/.gradle/5.6.4/vcsMetadata-1) was closed 0 times.
12:55:45.069 [DEBUG] [org.gradle.launcher.daemon.server.exec.ExecuteBuild] The daemon has finished executing the build.
12:55:45.096 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientInputForwarder] Dispatching close input message: org.gradle.launcher.daemon.protocol.CloseInput@1c31e413
12:55:45.097 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientConnection] thread 15: dispatching class org.gradle.launcher.daemon.protocol.CloseInput
12:55:45.098 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClient] Received result Success[value=org.gradle.launcher.exec.BuildActionResult@e8df99a] from daemon DaemonInfo{pid=18577, address=[e4acc51d-8ffc-49c9-914d-d0a00815d589 port:61904, addresses:[/0:0:0:0:0:0:0:1, /127.0.0.1]], state=Idle, lastBusy=1645034028739, context=DefaultDaemonContext[uid=f05642ae-2414-4f73-9190-c4abfe0c66b4,javaHome=/Library/Java/JavaVirtualMachines/amazon-corretto-11.jdk/Contents/Home,daemonRegistryDir=/Users/ixm0f5j/.gradle/daemon,pid=18577,idleTimeout=10800000,priority=NORMAL,daemonOpts=--add-opens,java.base/java.util=ALL-UNNAMED,--add-opens,java.base/java.lang=ALL-UNNAMED,--add-opens,java.base/java.lang.invoke=ALL-UNNAMED,--add-opens,java.prefs/java.util.prefs=ALL-UNNAMED,-XX:MaxMetaspaceSize=256m,-XX:+HeapDumpOnOutOfMemoryError,-Xms256m,-Xmx512m,-Dfile.encoding=UTF-8,-Duser.country=US,-Duser.language=en,-Duser.variant]} (build should be done).
12:55:45.098 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientConnection] thread 1: dispatching class org.gradle.launcher.daemon.protocol.Finished
12:55:45.098 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientConnection] thread 1: connection stop

Hi,

Since this happens right after mutation analysis, can you remove that from the equation (I guess uninstall the plugin?) and make sure you can replicate this error without it?

 
Thx,
ann

I am sorry but I didn’t understand that.
What is mutation analysis?
What plugin do you want me to uninstall?

Hi,

It’s the Pitest plugin.

 
Thx,
ann

I don’t have the ‘Pitest plugin’ installed in the SonarQube server.

Hi,

I’m not sure what to tell you. I was going off this in your logs:

 
Ann

maybe removing this plugin would be equivalent to what ann suggested …

image

1 Like