-
Notifications
You must be signed in to change notification settings - Fork 552
hk2/jersey crashing on Spring boot 2.0 w/ Java 9 #1030
Comments
I am having same error but with Java 8 and Spring-boot 2.x. Later I downgraded Spring-boot version to 1.5.x and still same problem - Not sure what I am doing wrong. |
I had the same issue with Java 8 and spring-boot 2.x. Rolling back to spring-boot 1.5 solved the issue |
I had similar problem in testing library which depends on spotify docker client 8.9.2. - it seems to be related to changes in jersey client 2.26. |
@tdomzal
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I've had exactly the same issue with spring-boot 2.1. I applied @matzegebbe 's workaround with the current jersey version, and without guava : <dependency>
<groupId>org.glassfish.jersey.inject</groupId>
<artifactId>jersey-hk2</artifactId>
<version>2.27</version>
</dependency> |
BUG REPORT:
Description
docker-client does not work at all on Spring boot 2.0 + Java 9 combo. Causes one of two possible exceptions depending on which dependencies are added
How to reproduce
DefaultDockerClient.fromEnv().build()
to the default generated testWhat do you expect
docker client is initialized and no exceptions are thrown
What happened instead
java.lang.NoClassDefFoundError: org/glassfish/hk2/api/MultiException
is thrown immediately.If hk2 dependency is explicitly added to maven then
java.lang.IllegalStateException: InjectionManagerFactory not found.
is thrown insteadSoftware:
docker version
: Client:Version: 17.11.0-ce
API version: 1.34
Go version: go1.9.2
Git commit: 1caf76ce6b
Built: Sun Dec 10 10:15:57 2017
OS/Arch: linux/amd64
Server:
Version: 17.11.0-ce
API version: 1.34 (minimum version 1.12)
Go version: go1.9.2
Git commit: 1caf76ce6b
Built: Sun Dec 10 10:16:13 2017
OS/Arch: linux/amd64
Experimental: false
Full backtrace
The text was updated successfully, but these errors were encountered: