Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is 10.6 supported? #926

Closed
matteo-rama opened this issue Jun 25, 2024 · 12 comments
Closed

is 10.6 supported? #926

matteo-rama opened this issue Jun 25, 2024 · 12 comments
Labels
question Further information is requested

Comments

@matteo-rama
Copy link

hi,

someone try the plugin with sonar 10.6? it's supported and/or working?

thanks!

@matteo-rama matteo-rama added the bug Something isn't working label Jun 25, 2024
phoval added a commit to phoval/sonarqube-community-branch-plugin that referenced this issue Jun 26, 2024
phoval added a commit to phoval/sonarqube-community-branch-plugin that referenced this issue Jun 26, 2024
phoval added a commit to phoval/sonarqube-community-branch-plugin that referenced this issue Jun 26, 2024
phoval added a commit to phoval/sonarqube-community-branch-plugin that referenced this issue Jun 26, 2024
@mohamedazaddou
Copy link

Hi,
Apparently it is not supported.

I did get this error after upgrading sonarqube to 10.6.x :

Error creating bean with name 'org.sonarsource.scanner.api.internal.IsolatedClassloader@54c622a7-org.sonar.scanner.scan.ModuleIndexer': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.sonarsource.scanner.api.internal.IsolatedClassloader@54c622a7-org.sonar.scanner.scan.filesystem.InputComponentStore': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'BranchConfiguration' defined in org.sonar.scanner.scan.branch.BranchConfigurationProvider: Unsatisfied dependency expressed through method 'provide' parameter 2; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'ProjectBranches' defined in org.sonar.scanner.scan.branch.ProjectBranchesProvider: Unsatisfied dependency expressed through method 'provide' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'java.net.FactoryURLClassLoader@26101efc-com.github.mc1arke.sonarqube.plugin.scanner.CommunityProjectBranchesLoader': Resolution of declared constructors on bean Class [com.github.mc1arke.sonarqube.plugin.scanner.CommunityProjectBranchesLoader] from ClassLoader [java.net.FactoryURLClassLoader@26101efc] failed; nested exception is java.lang.NoClassDefFoundError: org/sonar/scanner/bootstrap/ScannerWsClient: org.sonar.scanner.bootstrap.ScannerWsClient

The class org.sonar.scanner.bootstrap.ScannerWsClient had been move to org.sonar.scanner.http.ScannerWsClient.
I fixed the import and compiled the plugin locally, and this fixed the problem, here are the changes i made :

image

image

@Hooooki
Copy link

Hooooki commented Jun 28, 2024

Same issue on my project.

@grandeon
Copy link

grandeon commented Jul 2, 2024

We have the same issue after upgrading SonarQube Community Edition v10.6 (92116):

[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:4.0.0.4121:sonar (default-cli) on project apm-services: Error creating bean with name 'org.sonarsource.scanner.api.internal.IsolatedClassloader@3e59c322-org.sonar.scanner.scan.ModuleIndexer': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.sonarsource.scanner.api.internal.IsolatedClassloader@3e59c322-org.sonar.scanner.scan.filesystem.InputComponentStore': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'BranchConfiguration' defined in org.sonar.scanner.scan.branch.BranchConfigurationProvider: Unsatisfied dependency expressed through method 'provide' parameter 2; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'ProjectBranches' defined in org.sonar.scanner.scan.branch.ProjectBranchesProvider: Unsatisfied dependency expressed through method 'provide' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'java.net.FactoryURLClassLoader@2e7ab100-com.github.mc1arke.sonarqube.plugin.scanner.CommunityProjectBranchesLoader': Resolution of declared constructors on bean Class [com.github.mc1arke.sonarqube.plugin.scanner.CommunityProjectBranchesLoader] from ClassLoader [java.net.FactoryURLClassLoader@2e7ab100] failed; nested exception is java.lang.NoClassDefFoundError: org/sonar/scanner/bootstrap/ScannerWsClient: org.sonar.scanner.bootstrap.ScannerWsClient -> [Help 1]

@grandeon
Copy link

grandeon commented Jul 2, 2024

@mohamedazaddou It work's !!

Thanks you so much!

@eirisdg
Copy link

eirisdg commented Jul 16, 2024

Please, add the patch to the main branch @mohamedazaddou

@vamidi
Copy link

vamidi commented Jul 17, 2024

Oehh would be very nice to have this patch on the main branch 😄

@mohamedazaddou
Copy link

Hi,
Someone already opened a pull request to fix this :
#927

@mc1arke mc1arke added question Further information is requested and removed bug Something isn't working labels Aug 11, 2024
mc1arke pushed a commit to phoval/sonarqube-community-branch-plugin that referenced this issue Aug 11, 2024
mc1arke pushed a commit that referenced this issue Aug 11, 2024
@mc1arke
Copy link
Owner

mc1arke commented Aug 11, 2024

Release in 1.21.0

@mc1arke mc1arke closed this as completed Aug 11, 2024
@Asmabagwan1
Copy link

@mc1arke We have recently upgrade our SonarQube from 7.8 to 10.5 successfully.
We are facing issue with branch analysis. We have installed community branch plugin for this with version 1.22.0, but this plugin after installation is not reflecting on web UI. I have done all the configurations mentioned here https://github.com/mc1arke/sonarqube-community-branch-plugin in manual installation.

Please help us resolve this issue

@brother
Copy link

brother commented Oct 3, 2024

bild

10.5 -> 1.20.0

@Asmabagwan1
Copy link

Asmabagwan1 commented Oct 3, 2024

bild

10.5 -> 1.20.0
@mc1arke @brother
We have downgraded the plugin version from 1.22.0 to 1.20.0
But it is still not reflecting in the ui
image
done all the configurations as per this URL
https://github.com/mc1arke/sonarqube-community-branch-plugin

@brother
Copy link

brother commented Oct 3, 2024

You need to check your startup logs. In 99% of the cases you actually missed a step, having two instances of the plugin in the directory is one and not specifying it in both (2!) places in the config file is another.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

9 participants