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

Build failing with Sonar [SPR-15888] #20443

Closed
spring-issuemaster opened this issue Aug 22, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@spring-issuemaster
Copy link
Collaborator

commented Aug 22, 2017

Stéphane Nicoll opened SPR-15888 and commented

The sonar build is failing for quite some time. I can reproduce that locally by having Sonar running on my machine + ./gradlew sonarqube

java.lang.IllegalStateException: Multiple matching methods: ResolvableMethod.Builder[
	objectClass = org.springframework.web.reactive.result.method.annotation.ResponseBodyResultHandlerTests$TestController,
	filters = [
		annotationNotPresent=[interface org.springframework.web.bind.annotation.ResponseBody]
	]
]
Matched:
[
	private static boolean[] org.springframework.web.reactive.result.method.annotation.ResponseBodyResultHandlerTests$TestController.$jacocoInit(),
	public java.lang.String org.springframework.web.reactive.result.method.annotation.ResponseBodyResultHandlerTests$TestController.doWork()
]
	at org.springframework.util.Assert.state(Assert.java:73)
	at org.springframework.web.method.ResolvableMethod$Builder.build(ResolvableMethod.java:374)
	at org.springframework.web.method.ResolvableMethod$Builder.resolveMethod(ResolvableMethod.java:403)
	at org.springframework.web.reactive.result.method.annotation.ResponseBodyResultHandlerTests.supports(ResponseBodyResultHandlerTests.java:86)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)

Looks like Jacoco is messing up something


Affects: 5.0 RC3

Referenced from: commits 5a51351

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

commented Aug 22, 2017

Stéphane Nicoll commented

The build failure is now fixed but we have other issues with sonarqube executing findbugs itself (related to the Gradle upgrade most probably). Let's park this one for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.