Comments (5)
@sdeleuze jfyi: this is fixed in the latest GraalVM CE dev (java 19) release. My app is working fine now.
from graalvm-reachability-metadata.
We potentially need to copy and adap Netty native config to cover the shaded one provided with RSocket.
from graalvm-reachability-metadata.
Those hints are now provided directly by RSocket JAR so you can close this issue as not planned / won't fix.
from graalvm-reachability-metadata.
@sdeleuze would it work for rsocket-kotlin also? When I tried a few days back, I was getting some wiered error for rsocket-kotlin
(coming from ktor
client dependency)
Fatal error: com.oracle.graal.pointsto.util.AnalysisError$ParsingError: Error encountered while parsing io.ktor.client.engine.cio.CIOEngine.<init>(io.ktor.client.engine.cio.CIOEngineConfig)
Parsing context:
at io.ktor.client.engine.cio.CIOEngine.<init>(CIOEngine.kt)
at io.ktor.client.engine.cio.CIO.create(CIOCommon.kt:35)
at io.ktor.client.HttpClientKt.HttpClient(HttpClient.kt:41)
....
Caused by: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: Discovered a type for which getDeclaringClass0 cannot be called: io.ktor.util.CoroutinesUtilsKt$SilentSupervisor$$inlined$CoroutineExceptionHandler$1. This error is reported at image build time because class io.ktor.util.CoroutinesUtilsKt$SilentSupervisor$$inlined$CoroutineExceptionHandler$1 is registered for linking at image build time by command line
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.SVMHost.handleLinkageError(SVMHost.java:426)
at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.SVMHost.getDeclaringClass(SVMHost.java:412)
......
Caused by: java.lang.IncompatibleClassChangeError: io.ktor.util.CoroutinesUtilsKt and io.ktor.util.CoroutinesUtilsKt$SilentSupervisor$$inlined$CoroutineExceptionHandler$1 disagree on InnerClasses attribute
at java.base/java.lang.Class.getDeclaringClass0(Native Method)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor$NativeAccessor.invoke0(Native Method)
from graalvm-reachability-metadata.
As far as I know, recent versions of rsocket-kotlin
are based on a different Kotlin multiplatform implementation, so no those matadata should not cover it. Also the error looks like Ktor specific.
from graalvm-reachability-metadata.
Related Issues (20)
- Metadata for Logback 4.1.1 HOT 2
- Add support for org.flywaydb:flyway-core:10.0.0
- Add Support for org.modelmapper:modelmapper:3.2.0 HOT 1
- Include all Type's Metadata by Default for Types that are Registered for Reflection HOT 1
- aws-java-sdk-s3
- Add support for `org.liquibase:liquibase-core:4.24.0` HOT 6
- ClassNotFoundException with Caffeine and Spring Boot 3.2 HOT 3
- Add support for `io.netty:netty-transport-classes-epoll:4.1.99.Final` HOT 1
- Add support for io.jsonwebtoken:jjwt-api version 0.12.3
- Add support for `com.zaxxer:HikariCP:4.0.3` HOT 1
- Add support for `org.apache.calcite:calcite-core:1.35.0` HOT 1
- Add support for `org.slf4j:slf4j-api:1.7.36` HOT 1
- Add support for `ch.qos.logback:logback-core:1.2.12` HOT 1
- Add support for `org.jboss.narayana.jta:jta:5.12.4.Final` HOT 1
- Add support for `com.atomikos:transactions:6.0.0` HOT 1
- Add support for `org.apache.groovy:groovy:4.0.10` HOT 2
- Add more XADataSource related metadata to `com.h2database:h2:2.2.224` HOT 1
- Add more metadata to `com.mysql:mysql-connector-j:8.0.31` HOT 1
- Logback 1.4.9 reflect-config.json missing ContextInitializer HOT 2
- How to support float[].class in file: serialization-config.json HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graalvm-reachability-metadata.