-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
quarkus-integration-test-redis-client native build fails with 22.3.0-dev mandrel #27211
Comments
/cc @Karm, @cescoffier, @galderz, @gsmet, @machi1990, @zakkak |
cc @Sgitario |
The Link java class from JAXRS API contains a JAXB Adapter that inherits of XmlAdapter (from JAXB API). The Mandrel native build detects the missing dependency and fails with: ``` Fatal error: com.oracle.graal.pointsto.util.AnalysisError$ParsingError: Error encountered while parsing org.jboss.resteasy.reactive.common.headers.LinkDelegate$Parser.getLink() Parsing context: at org.jboss.resteasy.reactive.common.headers.LinkDelegate$Parser.getLink(LinkDelegate.java:29) at org.jboss.resteasy.reactive.common.headers.LinkDelegate.fromString(LinkDelegate.java:130) at org.jboss.resteasy.reactive.common.headers.LinkDelegate.fromString(LinkDelegate.java:15) at javax.ws.rs.core.MediaType.valueOf(MediaType.java:172) at org.jboss.resteasy.reactive.common.headers.HeaderUtil.getMediaType(HeaderUtil.java:117) at org.jboss.resteasy.reactive.common.jaxrs.ResponseImpl.getMediaType(ResponseImpl.java:208) ``` Fix quarkusio#27211
@jerboaa Did the GraalVM CE dev build you built use the same base JDK as Mandrel version that is failing? I have seen |
@galderz No it likely didn't. GraalVM CE is based on labs JDK 11, vs. mandrel on stock OpenJDK 11. It could be the reason why it didn't show up with GraalVM CE 11. |
Building |
The Link java class from JAXRS API contains a JAXB Adapter that inherits of XmlAdapter (from JAXB API). The Mandrel native build detects the missing dependency and fails with: ``` Fatal error: com.oracle.graal.pointsto.util.AnalysisError$ParsingError: Error encountered while parsing org.jboss.resteasy.reactive.common.headers.LinkDelegate$Parser.getLink() Parsing context: at org.jboss.resteasy.reactive.common.headers.LinkDelegate$Parser.getLink(LinkDelegate.java:29) at org.jboss.resteasy.reactive.common.headers.LinkDelegate.fromString(LinkDelegate.java:130) at org.jboss.resteasy.reactive.common.headers.LinkDelegate.fromString(LinkDelegate.java:15) at javax.ws.rs.core.MediaType.valueOf(MediaType.java:172) at org.jboss.resteasy.reactive.common.headers.HeaderUtil.getMediaType(HeaderUtil.java:117) at org.jboss.resteasy.reactive.common.jaxrs.ResponseImpl.getMediaType(ResponseImpl.java:208) ``` Fix quarkusio#27211
The Link java class from JAXRS API contains a JAXB Adapter that inherits of XmlAdapter (from JAXB API). The Mandrel native build detects the missing dependency and fails with: ``` Fatal error: com.oracle.graal.pointsto.util.AnalysisError$ParsingError: Error encountered while parsing org.jboss.resteasy.reactive.common.headers.LinkDelegate$Parser.getLink() Parsing context: at org.jboss.resteasy.reactive.common.headers.LinkDelegate$Parser.getLink(LinkDelegate.java:29) at org.jboss.resteasy.reactive.common.headers.LinkDelegate.fromString(LinkDelegate.java:130) at org.jboss.resteasy.reactive.common.headers.LinkDelegate.fromString(LinkDelegate.java:15) at javax.ws.rs.core.MediaType.valueOf(MediaType.java:172) at org.jboss.resteasy.reactive.common.headers.HeaderUtil.getMediaType(HeaderUtil.java:117) at org.jboss.resteasy.reactive.common.jaxrs.ResponseImpl.getMediaType(ResponseImpl.java:208) ``` Fix quarkusio#27211
Describe the bug
Running the redis-client integration test using a Mandrel 22.3.0 dev build fails generating the native image with:
Related GraalVM change that might be related to this issue:
oracle/graal@ce3d101
This is not reproducible with GraalVM CE dev build (at least for me), but seems mandrel specific.
Expected behavior
Native image build passes.
Actual behavior
The build fails with
java.lang.NoClassDefFoundError: javax/xml/bind/annotation/adapters/XmlAdapter
How to Reproduce?
Get a mandrel dev build artefact from:
https://github.com/graalvm/mandrel/runs/7589035097
For example:
https://github.com/graalvm/mandrel/suites/7588764894/artifacts/314323177
jdk.tgz
mandrelvm
folder that contains the build.GRAALVM_HOME
Output of
uname -a
orver
No response
Output of
java -version
11
GraalVM version (if different from Java)
22.3.0-dev (mandrel)
Quarkus version or git rev
dc51ebc
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: