graalvm

emilaasa 2023-08-03T14:29:38.180529Z

Anyone have any pointers on how to resovle this type of error on graalvm latest version (jdk 20)?

com.oracle.svm.core.util.VMError$HostedError: com.oracle.svm.core.util.UserError$UserException: Image heap writing found a class not seen during static analysis. Did a static field or an object referenced from a static field change during native image generation? For example, a lazily initialized cache could have been initialized during image generation, in which case you need to force eager initialization of the cache before static analysis or reset the cache using a field value recomputation.
    class: sun.security.x509.X509CertImpl

emilaasa 2023-08-04T08:34:57.121789Z

Here seems to be an issue that's very close to what I'm seeing: https://github.com/oracle/graal/issues/6793

emilaasa 2023-08-04T08:37:34.774189Z

I'm also indirectly using bouncycastle as mentioned by one of the comments.

lread 2023-08-03T16:42:10.584209Z

Not personally, but I do see this: https://github.com/oracle/graal/issues/2389, does that help?

emilaasa 2023-08-03T17:12:33.922489Z

Yes that does seem like a relevant issue - I'm wondering if it's a CE vs Oracle thing...

emilaasa 2023-08-03T17:13:38.540959Z

Thanks so much lread for looking at it, I'll report back 🙂

emilaasa 2023-08-03T17:16:14.719569Z

Some of the craziest stack traces I've seen lately -

emilaasa 2023-08-03T17:22:40.849009Z

The X to my Y here is that I want to evaluate our app performance in the Oracle GraalVM distribution vs the Community Edition by the way.