theseeker58 opened a new issue #2449:
URL: https://github.com/apache/camel-quarkus/issues/2449


   Hi,
   I get this exception when running native executable that uses Dozer to map 
objects in a route.
     Dest field type: java.util.Date:
   com.github.dozermapper.core.converters.ConversionException:
   java.lang.NoSuchMethodException: java.util.Date.<init>(long)
       at 
com.github.dozermapper.core.converters.DateConverter.convert(DateConverter.java:102)
       at 
com.github.dozermapper.core.converters.PrimitiveOrWrapperConverter.convert(PrimitiveOrWrapperConverter.java:84)
       at 
com.github.dozermapper.core.MappingProcessor.mapOrRecurseObject(MappingProcessor.java:496)
       at 
com.github.dozermapper.core.MappingProcessor.mapFromFieldMap(MappingProcessor.java:404)
       at 
com.github.dozermapper.core.MappingProcessor.mapField(MappingProcessor.java:354)
       at 
com.github.dozermapper.core.MappingProcessor.map(MappingProcessor.java:314)
       at 
com.github.dozermapper.core.MappingProcessor.mapToDestObject(MappingProcessor.java:263)
       at 
com.github.dozermapper.core.MappingProcessor.createByCreationDirectiveAndMap(MappingProcessor.java:236)
       at 
com.github.dozermapper.core.MappingProcessor.mapGeneral(MappingProcessor.java:209)
       ...
   To make it working I had to register for reflection java.util.Date.
   I guess if it's the right approach or if it should be made implicitly by the 
component itself, as it is stated as native.
   
   Thanks


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to