Java Error in Azure Devops SonarQubeAnalysis v6

We are using SonarCloud quite extensively for quite some time.

But we are receiving warnings now in our Azure Devops Pipelines that the tasks

  • SonarQubePrepare v5
  • SonarQubeAnalyze v5
  • SonarQubePublish v5
    is deprecated.

So we are upgrading to v6, but we do get exceptions on the Analyze step.

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.sonarsource.scanner.api.internal.IsolatedClassloader@74e52303-org.sonar.scanner.scan.ProjectLock': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'DefaultInputProject' defined in org.sonar.scanner.scan.InputProjectProvider: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.sonar.api.batch.fs.internal.DefaultInputProject]: Factory method 'provide' threw exception; nested exception is Validation of project failed:

Our analyze steps just looks like this:

  - task: SonarQubeAnalyze@6
    # condition: and(succeeded(), ${{ parameters.isMainBranch }})
    inputs:
      jdkversion: 'JAVA_HOME_17_X64'

Is there something going on or am I missing something?

Thanks for the feedback!

Hey there.

Are you using SonarQube or SonarCloud?

Can you share the full analysis logs?

Ok; was a bit too fast with creating this.

Seemed to be an issue by blocking branches inside of SonarQube. So it was a rule in SonarQube itself & not in the pipeline.

Allthough, I feel like the errors should not contain stacktraces in that case.

But all fixed! Thanks for the swift reply & triggering me to fully go through it again.

It’s definitely a weird message “Validation of project failed”.

If you’re happy, I’m happy. :slight_smile: But if it comes up again, come back with the full logs so we can figure out what triggered it.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.