question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

OpenSslX509TrustManagerWrapper in netty-handler is not Java 6 compatible

See original GitHub issue

Netty 4.y should work on Java 6, it’s not the case of the OpenSslX509TrustManagerWrapper which fails to load the class:

java.lang.NoClassDefFoundError: Could not initialize class io.netty.handler.ssl.OpenSslX509TrustManagerWrapper
	at io.netty.handler.ssl.ReferenceCountedOpenSslContext.chooseTrustManager(ReferenceCountedOpenSslContext.java:541)
	at io.netty.handler.ssl.ReferenceCountedOpenSslServerContext.newSessionContext(ReferenceCountedOpenSslServerContext.java:142)
	at io.netty.handler.ssl.OpenSslServerContext.<init>(OpenSslServerContext.java:350)
	at io.netty.handler.ssl.OpenSslServerContext.<init>(OpenSslServerContext.java:333)
	at io.netty.handler.ssl.SslContext.newServerContextInternal(SslContext.java:422)
	at io.netty.handler.ssl.SslContextBuilder.build(SslContextBuilder.java:447)
	at ...

The problem is rooted in using javax.net.ssl.X509ExtendedTrustManager which was introduced in Java 7.

The netty-handler versions with the issue: 4.1.31 - 4.1.34 (current)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kwartcommented, Apr 16, 2019

You’re too fast 👍 😃 I’ll check the PR in our tests. Thanks.

0reactions
kwartcommented, Apr 16, 2019

All our TLS tests passed on Java 6 with the fix. Well done!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Java SDK connection with Certificate Authentication issue
I try to use the latest Java SDK driver (3.2.6) to connect with ... Not sure why it is trying to use port...
Read more >
Java SE 6 Compatibility - Oracle
Incompatibilities between the Java Platform, Standard Edition 6 and J2SE 5.0. Java SE 6 is strongly compatible with previous versions of the Java...
Read more >
Open Source Used In Cisco Policy Suite (CPS) Software CPS ...
This document contains licenses and notices for open source software used in this product. With respect to the free/open source software listed in...
Read more >
Reactor Netty Reference Guide
You do not need to read this guide in a linear fashion. ... reactor-netty-examples/src/main/java/reactor/netty/examples/documentation/tcp/ ...
Read more >
Failed to load any of the given libraries: [netty-tcnative-linux ...
When i switch on debug logs it tells that "java.lang.IllegalArgumentException: Failed to load any of the given libraries: [netty-tcnative-linux- ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found