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

For docker-java v3+, netty should be a shaded dependency #157

Closed
rnorth opened this issue Jun 10, 2016 · 3 comments
Closed

For docker-java v3+, netty should be a shaded dependency #157

rnorth opened this issue Jun 10, 2016 · 3 comments

Comments

@rnorth
Copy link
Member

rnorth commented Jun 10, 2016

To prevent clashes with versions of netty used by other libs, e.g. Redisson.
Jersey could/should be removed as a shaded dependency now...

@valdisrigdon
Copy link
Contributor

On Mac this seems to work fine, but on our Linux machines we are seeing this after Netty is shaded:

Caused by: java.lang.NoClassDefFoundError: io/netty/channel/epoll/NativeStaticallyReferencedJniMethods
    at org.testcontainers.shaded.io.netty.util.internal.NativeLibraryLoader.load(NativeLibraryLoader.java:193)
    at org.testcontainers.shaded.io.netty.channel.epoll.Native.<clinit>(Native.java:60)
    at org.testcontainers.shaded.io.netty.channel.epoll.IovArray.<clinit>(IovArray.java:57)
    at org.testcontainers.shaded.io.netty.channel.epoll.EpollEventLoop.<init>(EpollEventLoop.java:57)
    at org.testcontainers.shaded.io.netty.channel.epoll.EpollEventLoopGroup.newChild(EpollEventLoopGroup.java:78)
    at org.testcontainers.shaded.io.netty.channel.epoll.EpollEventLoopGroup.newChild(EpollEventLoopGroup.java:30)
    at org.testcontainers.shaded.io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:77)
    at org.testcontainers.shaded.io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:48)
    at org.testcontainers.shaded.io.netty.channel.MultithreadEventLoopGroup.<init>(MultithreadEventLoopGroup.java:57)
    at org.testcontainers.shaded.io.netty.channel.epoll.EpollEventLoopGroup.<init>(EpollEventLoopGroup.java:63)
    at org.testcontainers.shaded.io.netty.channel.epoll.EpollEventLoopGroup.<init>(EpollEventLoopGroup.java:51)
    at org.testcontainers.shaded.com.github.dockerjava.netty.DockerCmdExecFactoryImpl$UnixDomainSocketInitializer.init(DockerCmdExecFactoryImpl.java:221)
    at org.testcontainers.shaded.com.github.dockerjava.netty.DockerCmdExecFactoryImpl.init(DockerCmdExecFactoryImpl.java:197)
    at org.testcontainers.shaded.com.github.dockerjava.core.DockerClientImpl.withDockerCmdExecFactory(DockerClientImpl.java:159)
    at org.testcontainers.shaded.com.github.dockerjava.core.DockerClientBuilder.build(DockerClientBuilder.java:45)
    at org.testcontainers.dockerclient.DockerClientProviderStrategy.getClientForConfig(DockerClientProviderStrategy.java:103)
    at org.testcontainers.dockerclient.EnvironmentAndSystemPropertyClientProviderStrategy.test(EnvironmentAndSystemPropertyClientProviderStrategy.java:18)
    at org.testcontainers.dockerclient.DockerClientProviderStrategy.getFirstValidStrategy(DockerClientProviderStrategy.java:54)
    at org.testcontainers.DockerClientFactory.client(DockerClientFactory.java:82)
    at org.testcontainers.DockerClientFactory$client$0.call(Unknown Source)

@rnorth
Copy link
Member Author

rnorth commented Jul 19, 2016

Sorry - this is #178. Will try and fix today - just ironing out some
difficulties with the PR to resolve it (#180)

On Tue, 19 Jul 2016 at 02:23 Valdis Rigdon notifications@github.com wrote:

On Mac this seems to work fine, but on our Linux machines we are seeing
this after Netty is shaded:

Caused by: java.lang.NoClassDefFoundError: io/netty/channel/epoll/NativeStaticallyReferencedJniMethods
at org.testcontainers.shaded.io.netty.util.internal.NativeLibraryLoader.load(NativeLibraryLoader.java:193)
at org.testcontainers.shaded.io.netty.channel.epoll.Native.(Native.java:60)
at org.testcontainers.shaded.io.netty.channel.epoll.IovArray.(IovArray.java:57)
at org.testcontainers.shaded.io.netty.channel.epoll.EpollEventLoop.(EpollEventLoop.java:57)
at org.testcontainers.shaded.io.netty.channel.epoll.EpollEventLoopGroup.newChild(EpollEventLoopGroup.java:78)
at org.testcontainers.shaded.io.netty.channel.epoll.EpollEventLoopGroup.newChild(EpollEventLoopGroup.java:30)
at org.testcontainers.shaded.io.netty.util.concurrent.MultithreadEventExecutorGroup.(MultithreadEventExecutorGroup.java:77)
at org.testcontainers.shaded.io.netty.util.concurrent.MultithreadEventExecutorGroup.(MultithreadEventExecutorGroup.java:48)
at org.testcontainers.shaded.io.netty.channel.MultithreadEventLoopGroup.(MultithreadEventLoopGroup.java:57)
at org.testcontainers.shaded.io.netty.channel.epoll.EpollEventLoopGroup.(EpollEventLoopGroup.java:63)
at org.testcontainers.shaded.io.netty.channel.epoll.EpollEventLoopGroup.(EpollEventLoopGroup.java:51)
at org.testcontainers.shaded.com.github.dockerjava.netty.DockerCmdExecFactoryImpl$UnixDomainSocketInitializer.init(DockerCmdExecFactoryImpl.java:221)
at org.testcontainers.shaded.com.github.dockerjava.netty.DockerCmdExecFactoryImpl.init(DockerCmdExecFactoryImpl.java:197)
at org.testcontainers.shaded.com.github.dockerjava.core.DockerClientImpl.withDockerCmdExecFactory(DockerClientImpl.java:159)
at org.testcontainers.shaded.com.github.dockerjava.core.DockerClientBuilder.build(DockerClientBuilder.java:45)
at org.testcontainers.dockerclient.DockerClientProviderStrategy.getClientForConfig(DockerClientProviderStrategy.java:103)
at org.testcontainers.dockerclient.EnvironmentAndSystemPropertyClientProviderStrategy.test(EnvironmentAndSystemPropertyClientProviderStrategy.java:18)
at org.testcontainers.dockerclient.DockerClientProviderStrategy.getFirstValidStrategy(DockerClientProviderStrategy.java:54)
at org.testcontainers.DockerClientFactory.client(DockerClientFactory.java:82)
at org.testcontainers.DockerClientFactory$client$0.call(Unknown Source)


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#157 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAIET0Fbr-Q-UC-XHkhLqyEoc-I_D1Toks5qXCcPgaJpZM4Iynmz
.

Richard

@rnorth rnorth closed this as completed Jul 19, 2016
@rnorth
Copy link
Member Author

rnorth commented Jul 20, 2016

Should be resolved with 1.1.2!
On Tue, 19 Jul 2016 at 06:10 Richard North rich.north@gmail.com wrote:

Sorry - this is #178. Will try and fix today - just ironing out some
difficulties with the PR to resolve it (#180)

On Tue, 19 Jul 2016 at 02:23 Valdis Rigdon notifications@github.com
wrote:

On Mac this seems to work fine, but on our Linux machines we are seeing
this after Netty is shaded:

Caused by: java.lang.NoClassDefFoundError: io/netty/channel/epoll/NativeStaticallyReferencedJniMethods
at org.testcontainers.shaded.io.netty.util.internal.NativeLibraryLoader.load(NativeLibraryLoader.java:193)
at org.testcontainers.shaded.io.netty.channel.epoll.Native.(Native.java:60)
at org.testcontainers.shaded.io.netty.channel.epoll.IovArray.(IovArray.java:57)
at org.testcontainers.shaded.io.netty.channel.epoll.EpollEventLoop.(EpollEventLoop.java:57)
at org.testcontainers.shaded.io.netty.channel.epoll.EpollEventLoopGroup.newChild(EpollEventLoopGroup.java:78)
at org.testcontainers.shaded.io.netty.channel.epoll.EpollEventLoopGroup.newChild(EpollEventLoopGroup.java:30)
at org.testcontainers.shaded.io.netty.util.concurrent.MultithreadEventExecutorGroup.(MultithreadEventExecutorGroup.java:77)
at org.testcontainers.shaded.io.netty.util.concurrent.MultithreadEventExecutorGroup.(MultithreadEventExecutorGroup.java:48)
at org.testcontainers.shaded.io.netty.channel.MultithreadEventLoopGroup.(MultithreadEventLoopGroup.java:57)
at org.testcontainers.shaded.io.netty.channel.epoll.EpollEventLoopGroup.(EpollEventLoopGroup.java:63)
at org.testcontainers.shaded.io.netty.channel.epoll.EpollEventLoopGroup.(EpollEventLoopGroup.java:51)
at org.testcontainers.shaded.com.github.dockerjava.netty.DockerCmdExecFactoryImpl$UnixDomainSocketInitializer.init(DockerCmdExecFactoryImpl.java:221)
at org.testcontainers.shaded.com.github.dockerjava.netty.DockerCmdExecFactoryImpl.init(DockerCmdExecFactoryImpl.java:197)
at org.testcontainers.shaded.com.github.dockerjava.core.DockerClientImpl.withDockerCmdExecFactory(DockerClientImpl.java:159)
at org.testcontainers.shaded.com.github.dockerjava.core.DockerClientBuilder.build(DockerClientBuilder.java:45)
at org.testcontainers.dockerclient.DockerClientProviderStrategy.getClientForConfig(DockerClientProviderStrategy.java:103)
at org.testcontainers.dockerclient.EnvironmentAndSystemPropertyClientProviderStrategy.test(EnvironmentAndSystemPropertyClientProviderStrategy.java:18)
at org.testcontainers.dockerclient.DockerClientProviderStrategy.getFirstValidStrategy(DockerClientProviderStrategy.java:54)
at org.testcontainers.DockerClientFactory.client(DockerClientFactory.java:82)
at org.testcontainers.DockerClientFactory$client$0.call(Unknown Source)


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#157 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAIET0Fbr-Q-UC-XHkhLqyEoc-I_D1Toks5qXCcPgaJpZM4Iynmz
.

Richard

Richard

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

No branches or pull requests

2 participants