Open crey93 opened 1 week ago
You added a link to a Zulip discussion, please make sure the description of the issue is comprehensive and doesn't require accessing Zulip
This message is automatically generated by a bot.
The fix would be to have some generated class or Feature which reads the list of classes in the serialization config and the annotated-for-reflection classes, and keeps a strong reference to all of the org.jboss.marshalling.reflect.SerializableClass
instances in its static initializer (by way of SerializableClassRegistry#lookup
as shown in the workaround).
Describe the bug
Hi there, hoping you're doing well. I'm encountering an issue when running my application using Quarkus/GraalVM native compilation. Specifically, I'm seeing the following error related to java.time.Ser when deserializing objects from a cache.
I'm working with Quarkus and implementing Infinispan Cache, and for the marshalling processor i'm using the GenericJBossMarshaller
By the native compile i create the runner to run into a OCP cluster: ./mvnw clean package -Pnative -Dquarkus.native.container-build=trueMore details
The application runs fine locally as a Quarkus project.
The issue comes after run the native compiled artefact.
The cache data, is a xml object where the LocalDateTime fields are stored as ("java.time.Ser").
I've tried everything around this: Collect data with the tracer agent and get the native-image files and put into the:
META-INF/native-image//
As mentioned here
The received exception:.
Expected behavior
By the implementation of quarkus native tips Specially the RegisterForReflection
Should be enough to register the desired classes for the Quarkus native compilation. But it doesn't work.
Actual behavior
When i get a serialized data from the cache, there is an error deserializing an object of type java.time.Ser
Unless you add this block code at the Runtime (on any class):
How to Reproduce?
No response
Output of
uname -a
orver
No response
Output of
java -version
21.0.4-graalce
Quarkus version or git rev
3.8.4 (LTS)
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
You can find more information of the bug on this support chat