GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Issue: fail to load the required native library · Issue #375 · netty/netty-tcnative

Issue: fail to load the required native library #375

New issue
Copy link
New issue
Copy link
Closed
Closed
Issue: fail to load the required native library#375
Copy link

Description

@NickNYU
NickNYU
opened on Jul 31, 2018
Issue body actions

Hi,
I'm currently trying to leverage "boring-ssl-static" instead of JDK's SSL stuff, but the program keeping failing retrieving JNI libs(seems like).

I was wondering if there's an wonderful 'combo' for netty and netty-tcnative, because I'v tried three versions netty playing with 4(maybe) different versions tcnative

netty-4.0.37
netty-4.0.44
netty-4.0.46

tcnative
tcnative-boring-ssl

The last version, I'v tried is as the description below, that I believe might be a good fit

##Details

Stack Trace

[ChannelInitializer]Failed to initialize a channel. Closing: [id: 0xc0293b6a] java.lang.UnsatisfiedLinkError: failed to load the required native library
        at io.netty.handler.ssl.OpenSsl.ensureAvailability(OpenSsl.java:299) ~[netty-all-4.0.46.Final.jar!/:4.0.46.Final]
        at io.netty.handler.ssl.ReferenceCountedOpenSslContext.<init>(ReferenceCountedOpenSslContext.java:221) ~[netty-all-4.0.46.Final.jar!/:4.0.46.Final]
        at io.netty.handler.ssl.ReferenceCountedOpenSslContext.<init>(ReferenceCountedOpenSslContext.java:210) ~[netty-all-4.0.46.Final.jar!/:4.0.46.Final]
        at io.netty.handler.ssl.OpenSslContext.<init>(OpenSslContext.java:34) ~[netty-all-4.0.46.Final.jar!/:4.0.46.Final]
        at io.netty.handler.ssl.OpenSslClientContext.<init>(OpenSslClientContext.java:188) ~[netty-all-4.0.46.Final.jar!/:4.0.46.Final]
        at io.netty.handler.ssl.SslContext.newClientContextInternal(SslContext.java:775) ~[netty-all-4.0.46.Final.jar!/:4.0.46.Final]
        at io.netty.handler.ssl.SslContextBuilder.build(SslContextBuilder.java:446) ~[netty-all-4.0.46.Final.jar!/:4.0.46.Final]
 .........

Java Version

/usr/java/latest/bin/java -version
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)

Netty Version

<dependency>
        <groupId>io.netty</groupId>
        <artifactId>netty-all</artifactId>
        <version>4.0.46.Final</version>
</dependency>

<dependency>
       <groupId>io.netty</groupId>
        <artifactId>netty-tcnative-boringssl-static</artifactId>
        <version>2.0.12.Final</version>
</dependency>

OS

uname -a
Linux ##### 3.10.0-327.4.5.el7.x86_64 #1 SMP Mon Jan 25 22:07:14 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

cat /etc/os-release

NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

Activity

  1. NickNYU commented on Aug 1, 2018

    @NickNYU
    NickNYU
    on Aug 1, 2018
    Author
    More actions

    I finally somehow figure it out, to whom might be concerned about this problem:

    Netty 4.1.(27|28).Final matches tcnative-boring-ssl 2.0.12.Final (got this combo from grpc project)

    Netty 4.0.(36|37).Final matches tcnative-boring-ssl 1.1.33.Fork26

  2. NickNYU
    closed this as completedon Aug 1, 2018
  3. normanmaurer commented on Aug 1, 2018

    @normanmaurer
    normanmaurer
    on Aug 1, 2018
    Member
    More actions

    @NickNYU just for the record you can easily find out which tcnative version to use with which netty version by checking the pom.xml of the release. For example:

    https://github.com/netty/netty/blob/netty-4.1.28.Final/pom.xml#L224

    Reacted by Chen
  4. NickNYU commented on Aug 1, 2018

    @NickNYU
    NickNYU
    on Aug 1, 2018
    Author
    More actions

    Thank you @normanmaurer , that works

    And to make it easier for others understanding the relationship between these two, would you please update the netty wiki page?

    Thanks

  5. rtdavies commented on Aug 7, 2018

    @rtdavies
    rtdavies
    on Aug 7, 2018
    Contributor
    More actions

    It would be great if that information was in release notes, on the wiki, or somewhere else slightly more searchable. Maybe it's just me (I'm new to netty) but I spent hours looking for it. Nonetheless, thanks for the great library!

    Reacted by Chen, Enrique S. Filiage and Daniel Petri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.