ECJ - Unable to parse file

We have code in our repo that looks something like the following, its in there since march. Since yesterday, SonarCloud has problems with (see below).

 return switch (stepNo) {
      case 1 -> {
        . . . . 
        } catch (Exception e) {
          throw new ServerException(. . . );
        }
        yield TransactionalBuilder . . . 
      }
      case 2 -> {
        cleanup();
        yield getServerResponseBuilder() . . . . 
      }
      case FAILURE_STEP_NO -> {
        cleanup();
        yield getServerResponseBuilder().. . . . 
      }
      default -> throw createStepIsNotImplementedByMethodException(stepNo);
    };

Note: This happened at the same time as SonarCloud - ParameterReassignedToCheck NoSuchElementException

There is an open bug at Eclipse which must be the root cause of this:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=574905

My question is, did SonarCloud change anything? This used to run just fine . . .

  • ALM used
    GitHub
  • CI system used
    GitHub Actions
  • Languages of the repository
    Java
  • Error observed
Using ECJ batch to parse 56 Main java source files with batch size 214 KB.
Starting batch processing.
Fallback to file by file analysis for 56 files
ECJ: Unable to parse file
java.lang.NullPointerException: Cannot read field "id" because "typeBinding" is null
	at org.eclipse.jdt.internal.compiler.codegen.CodeStream.popInvokeTypeBinding(CodeStream.java:4682)
	at org.eclipse.jdt.internal.compiler.codegen.CodeStream.invoke18(CodeStream.java:4718)
	at org.eclipse.jdt.internal.compiler.codegen.CodeStream.invoke(CodeStream.java:4830)
	at org.eclipse.jdt.internal.compiler.ast.MessageSend.generateCode(MessageSend.java:555)
  • Potential workaround
    Replace yield with return

We are paying for a product and this is holding up our whole CI / CD pipeline. Fun times

Hello @ozzi,

Thanks for the message. Could you, please, share with me the full log. It looks like the issue is related to this ticket: https://sonarsource.atlassian.net/browse/SONARJAVA-4617

But in order to investigate it better I need a full log.

Best,
Margarita

1 Like

Dear Margarita

Sure thing:

2023-09-28T08:37:28.9189213Z ECJ: Unable to parse file
2023-09-28T08:37:28.9189445Z java.lang.NullPointerException: Cannot read field "id" because "typeBinding" is null
2023-09-28T08:37:28.9189850Z 	at org.eclipse.jdt.internal.compiler.codegen.CodeStream.popInvokeTypeBinding(CodeStream.java:4682)
2023-09-28T08:37:28.9190225Z 	at org.eclipse.jdt.internal.compiler.codegen.CodeStream.invoke18(CodeStream.java:4718)
2023-09-28T08:37:28.9190489Z 	at org.eclipse.jdt.internal.compiler.codegen.CodeStream.invoke(CodeStream.java:4830)
2023-09-28T08:37:28.9190941Z 	at org.eclipse.jdt.internal.compiler.ast.AllocationExpression.generateCode(AllocationExpression.java:222)
2023-09-28T08:37:28.9191218Z 	at org.eclipse.jdt.internal.compiler.ast.ThrowStatement.generateCode(ThrowStatement.java:63)
2023-09-28T08:37:28.9191454Z 	at org.eclipse.jdt.internal.compiler.ast.Block.generateCode(Block.java:88)
2023-09-28T08:37:28.9191688Z 	at org.eclipse.jdt.internal.compiler.ast.TryStatement.generateCode(TryStatement.java:733)
2023-09-28T08:37:28.9191919Z 	at org.eclipse.jdt.internal.compiler.ast.Block.generateCode(Block.java:88)
2023-09-28T08:37:28.9192173Z 	at org.eclipse.jdt.internal.compiler.ast.SwitchStatement.statementGenerateCode(SwitchStatement.java:762)
2023-09-28T08:37:28.9192467Z 	at org.eclipse.jdt.internal.compiler.ast.SwitchExpression.statementGenerateCode(SwitchExpression.java:237)
2023-09-28T08:37:28.9192746Z 	at org.eclipse.jdt.internal.compiler.ast.SwitchStatement.generateCode(SwitchStatement.java:606)
2023-09-28T08:37:28.9193017Z 	at org.eclipse.jdt.internal.compiler.ast.SwitchExpression.generateCode(SwitchExpression.java:332)
2023-09-28T08:37:28.9193286Z 	at org.eclipse.jdt.internal.compiler.ast.ReturnStatement.generateCode(ReturnStatement.java:211)
2023-09-28T08:37:28.9193594Z 	at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.generateCode(AbstractMethodDeclaration.java:355)
2023-09-28T08:37:28.9193983Z 	at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.generateCode(AbstractMethodDeclaration.java:292)
2023-09-28T08:37:28.9194288Z 	at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode(TypeDeclaration.java:761)
2023-09-28T08:37:28.9194561Z 	at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode(TypeDeclaration.java:831)
2023-09-28T08:37:28.9194863Z 	at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.generateCode(CompilationUnitDeclaration.java:412)
2023-09-28T08:37:28.9195160Z 	at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:1324)
2023-09-28T08:37:28.9195553Z 	at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:790)
2023-09-28T08:37:28.9195793Z 	at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1245)
2023-09-28T08:37:28.9196011Z 	at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:868)
2023-09-28T08:37:28.9196226Z 	at org.sonar.java.model.JParser.parse(JParser.java:273)
2023-09-28T08:37:28.9196419Z 	at org.sonar.java.model.JParserConfig$FileByFile.parse(JParserConfig.java:268)
2023-09-28T08:37:28.9196649Z 	at org.sonar.java.model.JParserConfig$Batch.fallbackToFileByFileMode(JParserConfig.java:218)
2023-09-28T08:37:28.9196872Z 	at org.sonar.java.model.JParserConfig$Batch.parse(JParserConfig.java:197)
2023-09-28T08:37:28.9197059Z 	at org.sonar.java.JavaFrontend.scanBatch(JavaFrontend.java:237)
2023-09-28T08:37:28.9197547Z 	at org.sonar.java.JavaFrontend.scanInBatches(JavaFrontend.java:227)
2023-09-28T08:37:28.9198661Z 	at org.sonar.java.JavaFrontend.scanAsBatch(JavaFrontend.java:194)
2023-09-28T08:37:28.9199466Z 	at org.sonar.java.JavaFrontend.scan(JavaFrontend.java:169)
2023-09-28T08:37:28.9200226Z 	at org.sonar.plugins.java.JavaSensor.execute(JavaSensor.java:113)
2023-09-28T08:37:28.9201188Z 	at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:62)
2023-09-28T08:37:28.9202268Z 	at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:75)
2023-09-28T08:37:28.9202717Z 	at org.sonar.scanner.sensor.ModuleSensorsExecutor.lambda$execute$1(ModuleSensorsExecutor.java:48)
2023-09-28T08:37:28.9203207Z 	at org.sonar.scanner.sensor.ModuleSensorsExecutor.withModuleStrategy(ModuleSensorsExecutor.java:66)
2023-09-28T08:37:28.9203576Z 	at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:48)
2023-09-28T08:37:28.9203931Z 	at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:64)
2023-09-28T08:37:28.9205115Z 	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
2023-09-28T08:37:28.9205473Z 	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
2023-09-28T08:37:28.9205803Z 	at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:163)
2023-09-28T08:37:28.9206148Z 	at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:159)
2023-09-28T08:37:28.9206523Z 	at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:156)
2023-09-28T08:37:28.9206891Z 	at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:130)
2023-09-28T08:37:28.9207325Z 	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
2023-09-28T08:37:28.9207659Z 	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
2023-09-28T08:37:28.9207996Z 	at org.sonar.scanner.bootstrap.ScannerContainer.doAfterStart(ScannerContainer.java:396)
2023-09-28T08:37:28.9208364Z 	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
2023-09-28T08:37:28.9208703Z 	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
2023-09-28T08:37:28.9209030Z 	at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:128)
2023-09-28T08:37:28.9209372Z 	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
2023-09-28T08:37:28.9209715Z 	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
2023-09-28T08:37:28.9210006Z 	at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:57)
2023-09-28T08:37:28.9210273Z 	at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:51)
2023-09-28T08:37:28.9210624Z 	at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
2023-09-28T08:37:28.9211043Z 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2023-09-28T08:37:28.9211557Z 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
2023-09-28T08:37:28.9211952Z 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2023-09-28T08:37:28.9212275Z 	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
2023-09-28T08:37:28.9212591Z 	at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
2023-09-28T08:37:28.9212908Z 	at jdk.proxy26/jdk.proxy26.$Proxy264.execute(Unknown Source)
2023-09-28T08:37:28.9213191Z 	at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
2023-09-28T08:37:28.9213523Z 	at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
2023-09-28T08:37:28.9213808Z 	at org.sonarqube.gradle.SonarTask.run(SonarTask.java:131)
2023-09-28T08:37:28.9214083Z 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2023-09-28T08:37:28.9214439Z 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
2023-09-28T08:37:28.9214882Z 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2023-09-28T08:37:28.9215196Z 	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
2023-09-28T08:37:28.9215450Z 	at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:125)
2023-09-28T08:37:28.9215812Z 	at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:58)
2023-09-28T08:37:28.9216231Z 	at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:51)
2023-09-28T08:37:28.9216644Z 	at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:29)
2023-09-28T08:37:28.9217015Z 	at org.gradle.api.internal.tasks.execution.TaskExecution$3.run(TaskExecution.java:248)
2023-09-28T08:37:28.9217480Z 	at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)
2023-09-28T08:37:28.9217888Z 	at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)
2023-09-28T08:37:28.9218340Z 	at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
2023-09-28T08:37:28.9218746Z 	at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
2023-09-28T08:37:28.9219161Z 	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
2023-09-28T08:37:28.9219580Z 	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
2023-09-28T08:37:28.9220001Z 	at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:47)
2023-09-28T08:37:28.9220422Z 	at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:68)
2023-09-28T08:37:28.9220831Z 	at org.gradle.api.internal.tasks.execution.TaskExecution.executeAction(TaskExecution.java:233)
2023-09-28T08:37:28.9221217Z 	at org.gradle.api.internal.tasks.execution.TaskExecution.executeActions(TaskExecution.java:216)
2023-09-28T08:37:28.9221689Z 	at org.gradle.api.internal.tasks.execution.TaskExecution.executeWithPreviousOutputFiles(TaskExecution.java:199)
2023-09-28T08:37:28.9222107Z 	at org.gradle.api.internal.tasks.execution.TaskExecution.execute(TaskExecution.java:166)
2023-09-28T08:37:28.9222467Z 	at org.gradle.internal.execution.steps.ExecuteStep.executeInternal(ExecuteStep.java:105)
2023-09-28T08:37:28.9222807Z 	at org.gradle.internal.execution.steps.ExecuteStep.access$000(ExecuteStep.java:44)
2023-09-28T08:37:28.9223119Z 	at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:59)
2023-09-28T08:37:28.9223410Z 	at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:56)
2023-09-28T08:37:28.9223866Z 	at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204)
2023-09-28T08:37:28.9224396Z 	at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:199)
2023-09-28T08:37:28.9224840Z 	at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
2023-09-28T08:37:28.9225283Z 	at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
2023-09-28T08:37:28.9225692Z 	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
2023-09-28T08:37:28.9226124Z 	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
2023-09-28T08:37:28.9226545Z 	at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
2023-09-28T08:37:28.9226971Z 	at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73)
2023-09-28T08:37:28.9227349Z 	at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:56)
2023-09-28T08:37:28.9227664Z 	at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:44)
2023-09-28T08:37:28.9228039Z 	at org.gradle.internal.execution.steps.RemovePreviousOutputsStep.execute(RemovePreviousOutputsStep.java:67)
2023-09-28T08:37:28.9228474Z 	at org.gradle.internal.execution.steps.RemovePreviousOutputsStep.execute(RemovePreviousOutputsStep.java:37)
2023-09-28T08:37:28.9228922Z 	at org.gradle.internal.execution.steps.CancelExecutionStep.execute(CancelExecutionStep.java:41)
2023-09-28T08:37:28.9229313Z 	at org.gradle.internal.execution.steps.TimeoutStep.executeWithoutTimeout(TimeoutStep.java:74)
2023-09-28T08:37:28.9229660Z 	at org.gradle.internal.execution.steps.TimeoutStep.execute(TimeoutStep.java:55)
2023-09-28T08:37:28.9230092Z 	at org.gradle.internal.execution.steps.CreateOutputsStep.execute(CreateOutputsStep.java:50)
2023-09-28T08:37:28.9230466Z 	at org.gradle.internal.execution.steps.CreateOutputsStep.execute(CreateOutputsStep.java:28)
2023-09-28T08:37:28.9230977Z 	at org.gradle.internal.execution.steps.CaptureStateAfterExecutionStep.executeDelegateBroadcastingChanges(CaptureStateAfterExecutionStep.java:100)
2023-09-28T08:37:28.9231538Z 	at org.gradle.internal.execution.steps.CaptureStateAfterExecutionStep.execute(CaptureStateAfterExecutionStep.java:72)
2023-09-28T08:37:28.9232005Z 	at org.gradle.internal.execution.steps.CaptureStateAfterExecutionStep.execute(CaptureStateAfterExecutionStep.java:50)
2023-09-28T08:37:28.9232498Z 	at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:40)
2023-09-28T08:37:28.9232918Z 	at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:29)
2023-09-28T08:37:28.9233337Z 	at org.gradle.internal.execution.steps.BuildCacheStep.executeWithoutCache(BuildCacheStep.java:179)
2023-09-28T08:37:28.9233757Z 	at org.gradle.internal.execution.steps.BuildCacheStep.lambda$execute$1(BuildCacheStep.java:70)
2023-09-28T08:37:28.9234044Z 	at org.gradle.internal.Either$Right.fold(Either.java:175)
2023-09-28T08:37:28.9234317Z 	at org.gradle.internal.execution.caching.CachingState.fold(CachingState.java:59)
2023-09-28T08:37:28.9234657Z 	at org.gradle.internal.execution.steps.BuildCacheStep.execute(BuildCacheStep.java:68)
2023-09-28T08:37:28.9235006Z 	at org.gradle.internal.execution.steps.BuildCacheStep.execute(BuildCacheStep.java:46)
2023-09-28T08:37:28.9235391Z 	at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:36)
2023-09-28T08:37:28.9235804Z 	at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:25)
2023-09-28T08:37:28.9236232Z 	at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:36)
2023-09-28T08:37:28.9236659Z 	at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:22)
2023-09-28T08:37:28.9237086Z 	at org.gradle.internal.execution.steps.SkipUpToDateStep.executeBecause(SkipUpToDateStep.java:91)
2023-09-28T08:37:28.9237467Z 	at org.gradle.internal.execution.steps.SkipUpToDateStep.lambda$execute$2(SkipUpToDateStep.java:55)
2023-09-28T08:37:28.9237761Z 	at java.base/java.util.Optional.orElseGet(Optional.java:364)
2023-09-28T08:37:28.9238069Z 	at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:55)
2023-09-28T08:37:28.9238434Z 	at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:37)
2023-09-28T08:37:28.9238801Z 	at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:65)
2023-09-28T08:37:28.9239175Z 	at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:36)
2023-09-28T08:37:28.9239683Z 	at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:37)
2023-09-28T08:37:28.9240246Z 	at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:27)
2023-09-28T08:37:28.9240724Z 	at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:77)
2023-09-28T08:37:28.9241138Z 	at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:38)
2023-09-28T08:37:28.9241511Z 	at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:94)
2023-09-28T08:37:28.9241832Z 	at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:49)
2023-09-28T08:37:28.9242245Z 	at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:71)
2023-09-28T08:37:28.9242732Z 	at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:45)
2023-09-28T08:37:28.9243346Z 	at org.gradle.internal.execution.steps.SkipEmptyWorkStep.executeWithNonEmptySources(SkipEmptyWorkStep.java:177)
2023-09-28T08:37:28.9243759Z 	at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:81)
2023-09-28T08:37:28.9244117Z 	at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:53)
2023-09-28T08:37:28.9244547Z 	at org.gradle.internal.execution.steps.RemoveUntrackedExecutionStateStep.execute(RemoveUntrackedExecutionStateStep.java:32)
2023-09-28T08:37:28.9245050Z 	at org.gradle.internal.execution.steps.RemoveUntrackedExecutionStateStep.execute(RemoveUntrackedExecutionStateStep.java:21)
2023-09-28T08:37:28.9245569Z 	at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsStartedStep.execute(MarkSnapshottingInputsStartedStep.java:38)
2023-09-28T08:37:28.9246079Z 	at org.gradle.internal.execution.steps.LoadPreviousExecutionStateStep.execute(LoadPreviousExecutionStateStep.java:36)
2023-09-28T08:37:28.9246554Z 	at org.gradle.internal.execution.steps.LoadPreviousExecutionStateStep.execute(LoadPreviousExecutionStateStep.java:23)
2023-09-28T08:37:28.9247047Z 	at org.gradle.internal.execution.steps.CleanupStaleOutputsStep.execute(CleanupStaleOutputsStep.java:75)
2023-09-28T08:37:28.9247464Z 	at org.gradle.internal.execution.steps.CleanupStaleOutputsStep.execute(CleanupStaleOutputsStep.java:41)
2023-09-28T08:37:28.9247940Z 	at org.gradle.internal.execution.steps.ExecuteWorkBuildOperationFiringStep.lambda$execute$2(ExecuteWorkBuildOperationFiringStep.java:66)
2023-09-28T08:37:28.9248321Z 	at java.base/java.util.Optional.orElseGet(Optional.java:364)
2023-09-28T08:37:28.9248699Z 	at org.gradle.internal.execution.steps.ExecuteWorkBuildOperationFiringStep.execute(ExecuteWorkBuildOperationFiringStep.java:66)
2023-09-28T08:37:28.9249213Z 	at org.gradle.internal.execution.steps.ExecuteWorkBuildOperationFiringStep.execute(ExecuteWorkBuildOperationFiringStep.java:38)
2023-09-28T08:37:28.9249719Z 	at org.gradle.internal.execution.steps.AssignWorkspaceStep.lambda$execute$0(AssignWorkspaceStep.java:32)
2023-09-28T08:37:28.9250140Z 	at org.gradle.api.internal.tasks.execution.TaskExecution$4.withWorkspace(TaskExecution.java:293)
2023-09-28T08:37:28.9250554Z 	at org.gradle.internal.execution.steps.AssignWorkspaceStep.execute(AssignWorkspaceStep.java:30)
2023-09-28T08:37:28.9250928Z 	at org.gradle.internal.execution.steps.AssignWorkspaceStep.execute(AssignWorkspaceStep.java:21)
2023-09-28T08:37:28.9251307Z 	at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:37)
2023-09-28T08:37:28.9251669Z 	at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:27)
2023-09-28T08:37:28.9252012Z 	at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:47)
2023-09-28T08:37:28.9252347Z 	at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:34)
2023-09-28T08:37:28.9252706Z 	at org.gradle.internal.execution.impl.DefaultExecutionEngine$1.execute(DefaultExecutionEngine.java:64)
2023-09-28T08:37:28.9253152Z 	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:146)
2023-09-28T08:37:28.9253628Z 	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:135)
2023-09-28T08:37:28.9254145Z 	at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
2023-09-28T08:37:28.9254648Z 	at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:51)
2023-09-28T08:37:28.9255134Z 	at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
2023-09-28T08:37:28.9255588Z 	at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:74)
2023-09-28T08:37:28.9256117Z 	at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
2023-09-28T08:37:28.9256557Z 	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)
2023-09-28T08:37:28.9256967Z 	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)
2023-09-28T08:37:28.9257403Z 	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
2023-09-28T08:37:28.9257845Z 	at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204)
2023-09-28T08:37:28.9258328Z 	at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:199)
2023-09-28T08:37:28.9258767Z 	at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
2023-09-28T08:37:28.9259175Z 	at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
2023-09-28T08:37:28.9259595Z 	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
2023-09-28T08:37:28.9260012Z 	at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
2023-09-28T08:37:28.9260430Z 	at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
2023-09-28T08:37:28.9260887Z 	at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73)
2023-09-28T08:37:28.9261320Z 	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52)
2023-09-28T08:37:28.9261708Z 	at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:42)
2023-09-28T08:37:28.9262113Z 	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:331)
2023-09-28T08:37:28.9262662Z 	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:318)
2023-09-28T08:37:28.9263144Z 	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.lambda$execute$0(DefaultTaskExecutionGraph.java:314)
2023-09-28T08:37:28.9263588Z 	at org.gradle.internal.operations.CurrentBuildOperationRef.with(CurrentBuildOperationRef.java:80)
2023-09-28T08:37:28.9264030Z 	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:314)
2023-09-28T08:37:28.9264553Z 	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:303)
2023-09-28T08:37:28.9264976Z 	at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:463)
2023-09-28T08:37:28.9265341Z 	at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:380)
2023-09-28T08:37:28.9265707Z 	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
2023-09-28T08:37:28.9266076Z 	at org.gradle.internal.concurrent.AbstractManagedExecutor$1.run(AbstractManagedExecutor.java:47)
2023-09-28T08:37:28.9266422Z 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
2023-09-28T08:37:28.9266756Z 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
2023-09-28T08:37:28.9267014Z 	at java.base/java.lang.Thread.run(Thread.java:833)
2023-09-28T08:37:28.9267138Z 

which then results in:

2023-09-28T08:39:37.6210626Z 0 source files to be analyzed
2023-09-28T08:39:37.6210719Z 0/0 source files have been analyzed
2023-09-28T08:39:37.8111583Z ##[error]Exception in thread "OkHttp TaskRunner" java.lang.NoClassDefFoundError: kotlin/jvm/internal/Ref$IntRef
2023-09-28T08:39:37.8115570Z 	at okhttp3.internal.http2.Http2Connection.shutdown(Http2Connection.kt:419)
2023-09-28T08:39:37.8115771Z 	at okhttp3.internal.http2.Http2Connection.close$okhttp(Http2Connection.kt:449)
2023-09-28T08:39:37.8115958Z 	at okhttp3.internal.http2.Http2Connection$ReaderRunnable.invoke(Http2Connection.kt:627)
2023-09-28T08:39:37.8116141Z 	at okhttp3.internal.http2.Http2Connection$ReaderRunnable.invoke(Http2Connection.kt:609)
2023-09-28T08:39:37.8116316Z 	at okhttp3.internal.concurrent.TaskQueue$execute$1.runOnce(TaskQueue.kt:98)
2023-09-28T08:39:37.8116660Z 	at okhttp3.internal.concurrent.TaskRunner.runTask(TaskRunner.kt:116)
2023-09-28T08:39:37.8116826Z 	at okhttp3.internal.concurrent.TaskRunner.access$runTask(TaskRunner.kt:42)
2023-09-28T08:39:37.8116995Z 	at okhttp3.internal.concurrent.TaskRunner$runnable$1.run(TaskRunner.kt:65)
2023-09-28T08:39:37.8117173Z 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
2023-09-28T08:39:37.8117373Z 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
2023-09-28T08:39:37.8117521Z 	at java.base/java.lang.Thread.run(Thread.java:833)
2023-09-28T08:39:37.8117669Z Caused by: java.lang.ClassNotFoundException: kotlin.jvm.internal.Ref$IntRef
2023-09-28T08:39:37.8117834Z 	at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
2023-09-28T08:39:37.8118034Z 	at org.sonarsource.scanner.api.internal.IsolatedClassloader.loadClass(IsolatedClassloader.java:82)
2023-09-28T08:39:37.8118315Z 	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
2023-09-28T08:39:37.8118427Z 	... 11 more

Hello @ozzi,

Thanks for your message. I don’t think what you sent me is enough for investigation. Apparently, it’s bringing even more confusion.

By full log, I meant the real full analysis log, not just the stack trace.
Also, Would this be possible to provide a minimal reproducer, so I can investigate the issue on my side. It looks like the issue is coming completely from the Eclipse compiler, which we’re using for parsing. And it seems to me that these 2 exceptions are not related, but in order to understand this I need a reproducer and a full log.

Let me know if you can only share it privately, and I will open a thread for you.

Best,
Margarita

Dear Margarita
Ill gladly share everything, please open a “private” thread so I can upload accordingly.
Thanks!

1 Like

Any news on this one? Because I’m getting the same error. I’m using the Gradle Sonar plugin (org.sonarqube) version 5.0.0.4638.