Giter Site home page Giter Site logo

Comments (5)

sureshg avatar sureshg commented on August 23, 2024 1

@sdeleuze jfyi: this is fixed in the latest GraalVM CE dev (java 19) release. My app is working fine now.

from graalvm-reachability-metadata.

sdeleuze avatar sdeleuze commented on August 23, 2024

We potentially need to copy and adap Netty native config to cover the shaded one provided with RSocket.

from graalvm-reachability-metadata.

sdeleuze avatar sdeleuze commented on August 23, 2024

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.

sureshg avatar sureshg commented on August 23, 2024

@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.

sdeleuze avatar sdeleuze commented on August 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.