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

kubernetes: testKubernetesComponent is failing on the quarkus-platform #5801

Open
aldettinger opened this issue Feb 26, 2024 · 5 comments
Open
Assignees

Comments

@aldettinger
Copy link
Contributor

Bug description

While releasing Camel Quarkus 3.8.0, test below was failing:

  • org.apache.camel.quarkus.component.kubernetes.it.KubernetesTest.testKubernetesComponent
java.lang.RuntimeException: java.lang.NoSuchMethodError: 'void okhttp3.internal.Internal.initializeInstanceForTests()'
	at io.quarkus.test.junit.QuarkusTestExtension.throwBootFailureException(QuarkusTestExtension.java:638)
	at io.quarkus.test.junit.QuarkusTestExtension.interceptTestClassConstructor(QuarkusTestExtension.java:722)
	at java.base/java.util.Optional.orElseGet(Optional.java:364)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
Caused by: java.lang.NoSuchMethodError: 'void okhttp3.internal.Internal.initializeInstanceForTests()'
	at okhttp3.mockwebserver.MockWebServer.<clinit>(MockWebServer.java:103)
@aldettinger aldettinger added the bug Something isn't working label Feb 26, 2024
@jamesnetherton jamesnetherton changed the title kubernetes: testKubernetesComponent is failing on the platform kubernetes: testKubernetesComponent is failing on the quarkus-platform Feb 27, 2024
@jamesnetherton
Copy link
Contributor

See #5806.

@jamesnetherton
Copy link
Contributor

I'll close this, as the test is passing again thanks to some dependency overrides. And we have added a permanent fix in #5806.

@jamesnetherton
Copy link
Contributor

Reopening because my 'fix' actually didn't do anything, since the problem mockwebserver dependency isn't actually getting added to the BOM 🤦.

@jamesnetherton jamesnetherton self-assigned this Mar 18, 2024
@zhfeng
Copy link
Contributor

zhfeng commented Apr 15, 2024

@jamesnetherton this line in quarkus-platform https://github.com/quarkusio/quarkus-platform/blob/3.8/pom.xml#L385-L386 could be removed?

@jamesnetherton
Copy link
Contributor

@jamesnetherton this line in quarkus-platform https://github.com/quarkusio/quarkus-platform/blob/3.8/pom.xml#L385-L386 could be removed?

No, I don't think so. While mockwebserver is not in our BOM and the k8s client still aligns with okhttp 3.x, the dependency tree ends up being a mess when tests run because IIRC the universe BOM is used:

https://github.com/quarkusio/quarkus-platform/blob/3.8/generated-platform-project/quarkus-universe/bom/pom.xml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants