-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
java.lang.IllegalStateException: No adapter available for type:class io.fabric8.kubernetes.client.V1APIGroupClient #3063
Comments
This issue is not just with V1APIGroupClient but with any Client whose Adapter is discovered via ServiceLoader: Lines 17 to 40 in e580fe4
|
@yeikel : Hello, I think <configuration>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
</transformers>
</configuration> I tested it with this project and I'm able to run the fat jar with the above configuration: https://github.com/r0haaaan/fabric8-kubernetes-client-demo-shaded I've tested with both |
Confirmed to be the solution. Thank you @rohanKanojia |
Hi team,
I have the following configuration in my pom :
And I am creating my client :
And then, I am calling the following api to get the list of events :
client.v1().events().inNamespace(project).list().getItems();
But that is producing the following runtime exception :
I tried adding both dependencies :
But that produced a different runtime exception
If it helps in any way, I am using Java 11 and Maven
Also, it does not seem to happen when I run the project locally. It only happens when I shade the build :
The text was updated successfully, but these errors were encountered: