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.

netty-tcnative conflict

See original GitHub issue

I’m attempting to build a Scala project that integrates with both BigTable and Google Cloud Pubsub.

google-cloud-pubsub:0.20.1-beta depends on netty-tcnative-boringssl-static:2.0.3.Final (which contains io.internal.tcnative.SSL)

bigtable-hbase-1.2:0.9.7.1 depends on netty-tcnative-boringssl-static:1.1.33.Fork26 (which contains org.apache.tomcat.jni.SSL)

At runtime I will get an error such as

i.n.h.s.OpenSsl:71 netty-tcnative not in the classpath; OpenSslEngine will be unavailable.

Is there anyway I can make this work together?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:15 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
igorbernsteincommented, Dec 23, 2017

One better:

You can use bigtable-hbase-1.x-shaded 1.0.0, it includes a private copy of tcnative and uses hbase-shaded-client, which minimize the surface area for dependency conflicts

0reactions
anhldbkcommented, Dec 23, 2017

@jsw : You can resolve this issue by marking following dependencies to be loaded first:

   <dependencies>
        <!-- https://mvnrepository.com/artifact/io.netty/netty-all -->
        <dependency>
            <groupId>io.netty</groupId>
            <artifactId>netty-all</artifactId>
            <version>4.1.16.Final</version>
        </dependency>

        <!-- https://mvnrepository.com/artifact/io.netty/netty-tcnative-boringssl-static -->
        <dependency>
            <groupId>io.netty</groupId>
            <artifactId>netty-tcnative-boringssl-static</artifactId>
            <version>2.0.7.Final</version>
        </dependency>

   </dependencies>
Read more comments on GitHub >

github_iconTop Results From Across the Web

netty-tcnative conflict - googleapis/java-bigtable-hbase - GitHub
I'm attempting to build a Scala project that integrates with both BigTable and Google Cloud Pubsub. google-cloud-pubsub:0.20.1-beta depends ...
Read more >
After shading io.netty tcnative stops working - Stack Overflow
Because of a conflict in dependencies I want to shade io.netty. ... native ssl libraries (netty-tcnative-boringssl-static) stops working.
Read more >
netty-tcnative - Fork of Tomcat Native with improved OpenSSL
What do you mean?/Wy do you think so? I thought that it would detect the conflict between files. Apparently it does not, the...
Read more >
SECURITY.md - grpc/grpc-java - Sourcegraph
If you are running inside of an embedded Tomcat runtime (e.g., Spring Boot), then some versions of netty-tcnative-boringssl-static will have conflicts and won't ......
Read more >
Bugs : netty-tcnative-1.1 package : Ubuntu - Launchpad
netty -tcnative-1.1 package · Overview · Code · Bugs; Blueprints; Translations · Answers · Advanced search. There are currently no open bugs.
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