eclipse-vertx / vert.x

Vert.x is a tool-kit for building reactive applications on the JVM
http://vertx.io
Other
14.26k stars 2.07k forks source link

Vertx in native image throws error : This java rumtime does not support virtual threads #5249

Closed sanIncredible closed 2 weeks ago

sanIncredible commented 2 months ago

Version

vertx 4.5.8 , graalvm 21.0.3 , native-maven-plugin 0.10.2

Do you have a reproducer?

steps to reproduce:

  1. register verticle as ThreadingModel.VirtualThread
  2. start the application
  3. error thrown

failed to deploy verticle : verticle :: io.vertx.core.impl.NoStackTraceThrowable: This java runtime does not support virtual thread

william-aqn commented 2 months ago

me2 This Java runtime does not support virtual threads io.vertx.core.impl.NoStackTraceThrowable: This Java runtime does not support virtual threads

FAILURE: Build failed with an exception.

vietj commented 2 weeks ago

@sanIncredible we do have a classifier image for this "native-image-jar"

vietj commented 2 weeks ago

https://repo1.maven.org/maven2/io/vertx/vertx-core/4.5.10/vertx-core-4.5.10-native-image.jar