You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Quartz in my project. building a native image results in:
[error] Error: No instances are allowed in the image heap for a class that is initialized or reinitialized at image runtime: sun.security.provider.NativePRNG
[error] Detailed message:
[error] Error: No instances are allowed in the image heap for a class that is initialized or reinitialized at image runtime: sun.security.provider.NativePRNG
[error] Trace: object java.security.SecureRandom
[error] method java.rmi.server.ObjID.<init>()
[error] Call path from entry point to java.rmi.server.ObjID.<init>():
[error] at java.rmi.server.ObjID.<init>(ObjID.java:111)
[error] at sun.rmi.transport.LiveRef.<init>(LiveRef.java:74)
[error] at sun.rmi.server.UnicastServerRef.<init>(UnicastServerRef.java:167)
[error] at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:320)
[error] at org.quartz.core.QuartzScheduler.bind(QuartzScheduler.java:372)
[error] at org.quartz.core.QuartzScheduler.initialize(QuartzScheduler.java:235)
[error] at org.quartz.impl.StdSchedulerFactory.instantiate(StdSchedulerFactory.java:1360)
[error] at org.quartz.impl.StdSchedulerFactory.getScheduler(StdSchedulerFactory.java:1559)
[error] at org.quartz.impl.StdSchedulerFactory.getDefaultScheduler(StdSchedulerFactory.java:1575)
The text was updated successfully, but these errors were encountered:
RMI's ObjID is the issue here, as it has a static field that's initialized with SecureRandom.
For RMI, delaying initialization for the following classes should get you further: --initialize-at-run-time=java.rmi.server.ObjID,sun.rmi.transport.ObjectTable,sun.rmi.transport.Transport,sun.rmi.transport.tcp.TCPEndpoint,sun.rmi.registry.RegistryImpl,sun.rmi.transport.DGCImpl,sun.rmi.transport.DGCClient
I'm using
Quartz
in my project. building a native image results in:The text was updated successfully, but these errors were encountered: