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

isNativeTransportEnabled is always false #3741

Closed
romnovi opened this issue Jan 8, 2021 · 3 comments
Closed

isNativeTransportEnabled is always false #3741

romnovi opened this issue Jan 8, 2021 · 3 comments
Labels

Comments

@romnovi
Copy link

romnovi commented Jan 8, 2021

I use vert.x 4.0.0 java 14 and os x 11.1.

That's a reproducer:

public class Main {
  public static void main(String[] args) {

    var vertx = Vertx.vertx(new VertxOptions()
      .setPreferNativeTransport(true)
    );

    boolean usingNative = vertx.isNativeTransportEnabled();
    System.out.println("Running with native: " + usingNative);
  }
}

Also I have a gradle build with dependencies:

  implementation("io.netty:netty-transport-native-epoll:4.1.49.Final")
  implementation("io.netty:netty-transport-native-kqueue:4.1.49.Final")

During my investigations I found out my app caught: could not load a native library: netty_transport_native_kqueue_x86_64 exception in the io.netty.channel.kqueue.KQueue class.
Do I need something else to add in dependencies or it's a bug?

@romnovi romnovi added the bug Something isn't working label Jan 8, 2021
@romnovi
Copy link
Author

romnovi commented Jan 8, 2021

I found workaround: ktorio/ktor#1672 (comment) Maybe we need to add this tip in the documentation https://vertx.io/docs/vertx-core/java/#_native_transports for gradle users?

@vietj
Copy link
Member

vietj commented Jan 9, 2021

@mystdeim I PR would be welcome in the documentation for this

@vietj
Copy link
Member

vietj commented Jan 9, 2021

I'll close this issue in the meantime

@vietj vietj closed this as completed Jan 9, 2021
@vietj vietj added invalid and removed bug Something isn't working labels Jan 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants