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
The ObjectMapper used in the Jackson2ExecutionContextStringSerializer doesn't register the JavaTimeModule. Because of this you cannot put java.time objects in the Execution Context.
I'd like to overrule the ObjectMapper used in the Jackson2ExecutionContextStringSerializer, and there's a setObjectMapper method for this very reason, but the objectmapper used in Jackson2ExecutionContextStringSerializer does register a JobParametersModule, which is a private inner class. This one does seem important, so overruling the used objectmapper seems a bad idea.
The simplest fix to this would be to register the JavaTimeModule in the Jackson2ExecutionContextStringSerializer, or to make the JobParametersModule public
Issue Links:
BATCH-2828 Allow for customisation of ObjectMapper in Jackson2ExecutionContextStringSerializer
("duplicates")
The text was updated successfully, but these errors were encountered:
Benne Otten I believe this is a duplicate of BATCH-2828, which would make it possible to provide a custom object mapper having the JavaTimeModule registered and augmented with the JobParametersModule. Do you confirm?
Benne Otten opened BATCH-2838 and commented
The ObjectMapper used in the Jackson2ExecutionContextStringSerializer doesn't register the JavaTimeModule. Because of this you cannot put java.time objects in the Execution Context.
I'd like to overrule the ObjectMapper used in the Jackson2ExecutionContextStringSerializer, and there's a setObjectMapper method for this very reason, but the objectmapper used in Jackson2ExecutionContextStringSerializer does register a JobParametersModule, which is a private inner class. This one does seem important, so overruling the used objectmapper seems a bad idea.
The simplest fix to this would be to register the JavaTimeModule in the Jackson2ExecutionContextStringSerializer, or to make the JobParametersModule public
Issue Links:
("duplicates")
The text was updated successfully, but these errors were encountered: