Skip to content

Add native metadata for lifecycle and Jackson serialization classes #1546

Description

@gmunozfe

What happened:

In native mode, serialization fails with errors similar to:

com.fasterxml.jackson.databind.exc.InvalidDefinitionException:
No serializer found for class
io.serverlessworkflow.impl.lifecycle.ce.WorkflowStatusCEDataEvent
and no properties discovered to create BeanSerializer.

This appears to be a native image, in which case you may need to configure
reflection for the class that is to be serialized.

Similar failures occur for classes such as:

WorkflowStartedCEData
WorkflowCompletedCEData
TaskStartedCEData
TaskCompletedCEData
WorkflowStatusCEDataEvent

Native Image cannot discover the JavaBean properties unless the corresponding classes are registered for reflection.

What you expected to happen:

Add GraalVM Native Image reflection metadata to the SDK modules that contain classes accessed dynamically by Jackson during serialization and deserialization.

How to reproduce it:

Quarkus-Flow Openshift Testsuite Messaging tests in native mode can reproduce it.

Metadata

Metadata

Assignees

Type

Fields

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions