Skip to content
Advertisement

Tag: orika

Hybris and Orika Nullpointer

I’m using Hybris and Orika. I have a NullpointerException when converting WsDto to Data. This is an exception: The issue – it happens in generated class so it’s very hard to debug. I’ve also tried to enable code generation for Orika to check classes, but for some reason, the configuration doesn’t apply. I’ve done it this way: My questions are:

How to map java.time.LocalDate field with Orika?

This occurs because LocalDate is not a JavaBean (it has no zero-arg constructor) To fix this, you need to create a LocalDateConverter : and then register it adding this line : As a shorcut, you can instead register the provided “PassThroughConverter” as suggested by Adam Michalik so Orika doesn’t try to instanciate a new “LocalDate” : Answer This occurs because

Advertisement