-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
kotlin.coroutines.Continuation issue, maybe just error on graalvm #4180
Comments
The listed types are optional for conditional Kotlin support. You can safely tell GraalVM to ignore them, assuming that's a possibility. |
added this dependency could fix this issue
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I wrote a quarkis extension for retorfit in the quarkis framework, and it worked fine with local compilation and UT. However, during the Github CI process, I found that the integration test UT was incorrect.
in my local :jvm is temurin-17
I want to know the reason for this anomaly
This is github auto CI
CI Link
and This is the error message
GraalVM Native Image: Generating 'quarkus-easy-retrofit-integration-tests-1.0.0-runner' (executable)...
For detailed information and explanations on the build output, visit:
https://github.com/oracle/graal/blob/master/docs/reference-manual/native-image/BuildOutput.md
[1/8] Initializing... (6.4s @ 0.19GB)
Java version: 21.0.3+9-LTS, vendor version: Mandrel-23.1.3.1-Final
Graal compiler: optimization level: 2, target machine: x86-64-v3
C compiler: gcc (redhat, x86_64, 8.5.0)
Garbage collector: Serial GC (max heap size: 80% of RAM)
3 user-specific feature(s):
3 experimental option(s) unlocked:
Build resources:
[2/8] Performing analysis... [*****] (45.3s @ 1.03GB)
12,131 reachable types (86.6% of 14,013 total)
17,555 reachable fields (58.2% of 30,168 total)
62,389 reachable methods (56.6% of 110,255 total)
3,840 types, 165 fields, and 3,434 methods registered for reflection
61 types, 61 fields, and 55 methods registered for JNI access
Error: Unsupported features in 4 methods
Detailed message:
Error: Discovered unresolved type during parsing: kotlin.Unit. This error is reported at image build time because class retrofit2.BuiltInConverters is registered for linking at image build time by command line and command line.
Error encountered while parsing retrofit2.BuiltInConverters.responseBodyConverter(BuiltInConverters.java:34)
Parsing context:
at retrofit2.Retrofit.nextResponseBodyConverter(Retrofit.java:362)
at retrofit2.HttpServiceMethod.createResponseConverter(HttpServiceMethod.java:124)
at retrofit2.HttpServiceMethod.parseAnnotations(HttpServiceMethod.java:85)
at retrofit2.ServiceMethod.parseAnnotations(ServiceMethod.java:39)
at retrofit2.Retrofit.loadServiceMethod(Retrofit.java:202)
at retrofit2.Retrofit$1.invoke(Retrofit.java:160)
at jdk.proxy4.$Proxy111.annotationType(Unknown Source)
at root method.(Unknown Source)
Error: Discovered unresolved type during parsing: kotlin.coroutines.Continuation. This error is reported at image build time because class retrofit2.HttpServiceMethod$SuspendForBody is registered for linking at image build time by command line and command line.
Error encountered while parsing retrofit2.HttpServiceMethod$SuspendForBody.adapt(HttpServiceMethod.java:215)
Parsing context:
at retrofit2.HttpServiceMethod.invoke(HttpServiceMethod.java:146)
at retrofit2.Retrofit$1.invoke(Retrofit.java:160)
at jdk.proxy4.$Proxy111.annotationType(Unknown Source)
at root method.(Unknown Source)
Error: Discovered unresolved type during parsing: kotlin.coroutines.Continuation. This error is reported at image build time because class retrofit2.HttpServiceMethod$SuspendForResponse is registered for linking at image build time by command line and command line.
Error encountered while parsing retrofit2.HttpServiceMethod$SuspendForResponse.adapt(HttpServiceMethod.java:183)
Parsing context:
at retrofit2.HttpServiceMethod.invoke(HttpServiceMethod.java:146)
at retrofit2.Retrofit$1.invoke(Retrofit.java:160)
at jdk.proxy4.$Proxy111.annotationType(Unknown Source)
at root method.(Unknown Source)
Error: Discovered unresolved type during parsing: kotlin.coroutines.Continuation. This error is reported at image build time because class retrofit2.RequestFactory$Builder is registered for linking at image build time by command line and command line.
Error encountered while parsing retrofit2.RequestFactory$Builder.build(RequestFactory.java:180)
Parsing context:
at retrofit2.RequestFactory.parseAnnotations(RequestFactory.java:67)
at retrofit2.ServiceMethod.parseAnnotations(ServiceMethod.java:26)
at retrofit2.Retrofit.loadServiceMethod(Retrofit.java:202)
at retrofit2.Retrofit$1.invoke(Retrofit.java:160)
at jdk.proxy4.$Proxy111.annotationType(Unknown Source)
at root method.(Unknown Source)
com.oracle.svm.core.util.UserError$UserException: Unsupported features in 4 methods
Detailed message:
Error: Discovered unresolved type during parsing: kotlin.Unit. This error is reported at image build time because class retrofit2.BuiltInConverters is registered for linking at image build time by command line and command line.
Error encountered while parsing retrofit2.BuiltInConverters.responseBodyConverter(BuiltInConverters.java:34)
Parsing context:
at retrofit2.Retrofit.nextResponseBodyConverter(Retrofit.java:362)
at retrofit2.HttpServiceMethod.createResponseConverter(HttpServiceMethod.java:124)
at retrofit2.HttpServiceMethod.parseAnnotations(HttpServiceMethod.java:85)
at retrofit2.ServiceMethod.parseAnnotations(ServiceMethod.java:39)
at retrofit2.Retrofit.loadServiceMethod(Retrofit.java:202)
at retrofit2.Retrofit$1.invoke(Retrofit.java:160)
at jdk.proxy4.$Proxy111.annotationType(Unknown Source)
at root method.(Unknown Source)
Error: Discovered unresolved type during parsing: kotlin.coroutines.Continuation. This error is reported at image build time because class retrofit2.HttpServiceMethod$SuspendForBody is registered for linking at image build time by command line and command line.
Error encountered while parsing retrofit2.HttpServiceMethod$SuspendForBody.adapt(HttpServiceMethod.java:215)
Parsing context:
at retrofit2.HttpServiceMethod.invoke(HttpServiceMethod.java:146)
at retrofit2.Retrofit$1.invoke(Retrofit.java:160)
at jdk.proxy4.$Proxy111.annotationType(Unknown Source)
at root method.(Unknown Source)
Error: Discovered unresolved type during parsing: kotlin.coroutines.Continuation. This error is reported at image build time because class retrofit2.HttpServiceMethod$SuspendForResponse is registered for linking at image build time by command line and command line.
Error encountered while parsing retrofit2.HttpServiceMethod$SuspendForResponse.adapt(HttpServiceMethod.java:183)
Parsing context:
at retrofit2.HttpServiceMethod.invoke(HttpServiceMethod.java:146)
at retrofit2.Retrofit$1.invoke(Retrofit.java:160)
at jdk.proxy4.$Proxy111.annotationType(Unknown Source)
at root method.(Unknown Source)
Error: Discovered unresolved type during parsing: kotlin.coroutines.Continuation. This error is reported at image build time because class retrofit2.RequestFactory$Builder is registered for linking at image build time by command line and command line.
Error encountered while parsing retrofit2.RequestFactory$Builder.build(RequestFactory.java:180)
Parsing context:
at retrofit2.RequestFactory.parseAnnotations(RequestFactory.java:67)
at retrofit2.ServiceMethod.parseAnnotations(ServiceMethod.java:26)
at retrofit2.Retrofit.loadServiceMethod(Retrofit.java:202)
at retrofit2.Retrofit$1.invoke(Retrofit.java:160)
at jdk.proxy4.$Proxy111.annotationType(Unknown Source)
at root method.(Unknown Source)
Caused by: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: Unsupported features in 4 methods
Detailed message:
Error: Discovered unresolved type during parsing: kotlin.Unit. This error is reported at image build time because class retrofit2.BuiltInConverters is registered for linking at image build time by command line and command line.
Error encountered while parsing retrofit2.BuiltInConverters.responseBodyConverter(BuiltInConverters.java:34)
Parsing context:
at retrofit2.Retrofit.nextResponseBodyConverter(Retrofit.java:362)
at retrofit2.HttpServiceMethod.createResponseConverter(HttpServiceMethod.java:124)
at retrofit2.HttpServiceMethod.parseAnnotations(HttpServiceMethod.java:85)
at retrofit2.ServiceMethod.parseAnnotations(ServiceMethod.java:39)
at retrofit2.Retrofit.loadServiceMethod(Retrofit.java:202)
at retrofit2.Retrofit$1.invoke(Retrofit.java:160)
at jdk.proxy4.$Proxy111.annotationType(Unknown Source)
at root method.(Unknown Source)
Error: Discovered unresolved type during parsing: kotlin.coroutines.Continuation. This error is reported at image build time because class retrofit2.HttpServiceMethod$SuspendForBody is registered for linking at image build time by command line and command line.
Error encountered while parsing retrofit2.HttpServiceMethod$SuspendForBody.adapt(HttpServiceMethod.java:215)
Parsing context:
at retrofit2.HttpServiceMethod.invoke(HttpServiceMethod.java:146)
at retrofit2.Retrofit$1.invoke(Retrofit.java:160)
at jdk.proxy4.$Proxy111.annotationType(Unknown Source)
at root method.(Unknown Source)
Error: Discovered unresolved type during parsing: kotlin.coroutines.Continuation. This error is reported at image build time because class retrofit2.HttpServiceMethod$SuspendForResponse is registered for linking at image build time by command line and command line.
Error encountered while parsing retrofit2.HttpServiceMethod$SuspendForResponse.adapt(HttpServiceMethod.java:183)
Parsing context:
at retrofit2.HttpServiceMethod.invoke(HttpServiceMethod.java:146)
at retrofit2.Retrofit$1.invoke(Retrofit.java:160)
at jdk.proxy4.$Proxy111.annotationType(Unknown Source)
at root method.(Unknown Source)
Error: Discovered unresolved type during parsing: kotlin.coroutines.Continuation. This error is reported at image build time because class retrofit2.RequestFactory$Builder is registered for linking at image build time by command line and command line.
Error encountered while parsing retrofit2.RequestFactory$Builder.build(RequestFactory.java:180)
Parsing context:
at retrofit2.RequestFactory.parseAnnotations(RequestFactory.java:67)
at retrofit2.ServiceMethod.parseAnnotations(ServiceMethod.java:26)
at retrofit2.Retrofit.loadServiceMethod(Retrofit.java:202)
at retrofit2.Retrofit$1.invoke(Retrofit.java:160)
at jdk.proxy4.$Proxy111.annotationType(Unknown Source)
at root method.(Unknown Source)
========================================================================================================================
Finished generating 'quarkus-easy-retrofit-integration-tests-1.0.0-runner' in 52.0s.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Quarkus Easy Retrofit - Parent 1.0.0:
[INFO]
[INFO] Quarkus Easy Retrofit - Parent ..................... SUCCESS [ 0.996 s]
[INFO] Quarkus Easy Retrofit - Runtime .................... SUCCESS [ 2.317 s]
[INFO] Quarkus Easy Retrofit - Deployment ................. SUCCESS [ 5.564 s]
[INFO] Quarkus Easy Retrofit - Documentation .............. SUCCESS [ 4.668 s]
[INFO] Quarkus Easy Retrofit - Integration Tests .......... FAILURE [01:10 min]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:24 min
[INFO] Finished at: 2024-06-28T06:34:28Z
[INFO] ------------------------------------------------------------------------
Error: Failed to execute goal io.quarkus:quarkus-maven-plugin:3.10.1:build (default) on project quarkus-easy-retrofit-integration-tests: Failed to build quarkus application: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
Error: [ERROR] [error]: Build step io.quarkus.deployment.pkg.steps.NativeImageBuildStep#build threw an exception: io.quarkus.deployment.pkg.steps.NativeImageBuildStep$ImageGenerationFailureException: Image generation failed. Exit code: 1
Error: at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.imageGenerationFailed(NativeImageBuildStep.java:468)
Error: at io.quarkus.deployment.pkg.steps.NativeImageBuildStep.build(NativeImageBuildStep.java:258)
Error: at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Error: at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
Error: at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Error: at java.base/java.lang.reflect.Method.invoke(Method.java:568)
Error: at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:849)
Error: at io.quarkus.builder.BuildContext.run(BuildContext.java:256)
Error: at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
Error: at org.jboss.threads.EnhancedQueueExecutor$Task.doRunWith(EnhancedQueueExecutor.java:2516)
Error: at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2495)
Error: at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1521)
Error: at java.base/java.lang.Thread.run(Thread.java:840)
Error: at org.jboss.threads.JBossThread.run(JBossThread.java:483)
Error: -> [Help 1]
Error:
Error: To see the full stack trace of the errors, re-run Maven with the -e switch.
Error: Re-run Maven using the -X switch to enable full debug logging.
Error:
Error: For more information about the errors and possible solutions, please read the following articles:
Error: [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Error:
Error: After correcting the problems, you can resume the build with the command
Error: mvn -rf :quarkus-easy-retrofit-integration-tests
Error: Process completed with exit code 1.
The text was updated successfully, but these errors were encountered: