Fork me on GitHub
#graalvm
<
2023-08-03
>
emilaasa14:08:38

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

lread16:08:10

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

emilaasa17:08:33

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

emilaasa17:08:38

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

emilaasa17:08:14

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

emilaasa17:08:40

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.

emilaasa08:08:57

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

emilaasa08:08:34

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