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

Incorrect reflection-config.json for shaded-asynchttpclient? #587

Open
francisdb opened this issue Jul 14, 2021 · 0 comments
Open

Incorrect reflection-config.json for shaded-asynchttpclient? #587

francisdb opened this issue Jul 14, 2021 · 0 comments

Comments

@francisdb
Copy link

I'm using sbt-native-packager to build a graalvm-native image

https://www.scala-sbt.org/sbt-native-packager/formats/graalvm-native-image.html

Play WS Version (2.5.x / etc)

2.1.3

API (Scala / Java / Neither / Both)

Scala

Operating System (Ubuntu 15.10 / MacOS 10.10 / Windows 10)

MacOS 11.4

JDK (Oracle 1.8.0_72, OpenJDK 1.8.x, Azul Zing)

openjdk 16.0.1 2021-04-20
OpenJDK Runtime Environment GraalVM CE 21.1.0 (build 16.0.1+9-jvmci-21.1-b05)
OpenJDK 64-Bit Server VM GraalVM CE 21.1.0 (build 16.0.1+9-jvmci-21.1-b05, mixed mode, sharing)

Expected Behavior

Native image compilation works as expected

Actual Behavior

> show graalvm-native-image:packageBin
...
[error] Error: Error parsing reflection configuration in jar:file:/Users/xxx/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/typesafe/play/shaded-asynchttpclient/2.1.3/shaded-asynchttpclient-2.1.3.jar!/META-INF/native-image/io.netty/transport/reflection-config.json:
[error] Could not resolve io.netty.channel.socket.nio.NioServerSocketChannel for reflection configuration. Reason: java.lang.ClassNotFoundException: io.netty.channel.socket.nio.NioServerSocketChannel. To allow unresolvable reflection configuration, use option -H:+AllowIncompleteClasspath
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant