Hey guys, can anyone help me to understand why I am having issues with the
DateTimeConverter in my test?

Here is a sample project with the issue.
https://github.com/ivanjunckes/convertertest

If anyone could also help make this project work without the need for the
DateTimeConverter but actually using a configuration properties would be
great.

*Error:*
Caused by: java.lang.IllegalArgumentException: java.text.ParseException:
Unparseable date: "2019-03-12T17:14:31.941"
at com.test.DateTimeConverter.fromString(DateTimeConverter.java:32)
at com.test.DateTimeConverter.fromString(DateTimeConverter.java:10)
at org.apache.johnzon.mapper.internal.ConverterAdapter.to
(ConverterAdapter.java:37)
at org.apache.johnzon.mapper.internal.ConverterAdapter.to
(ConverterAdapter.java:24)
at
org.apache.johnzon.mapper.MappingParserImpl.toValue(MappingParserImpl.java:742)
... 141 more
Caused by: java.text.ParseException: Unparseable date:
"2019-03-12T17:14:31.941"
at java.text.DateFormat.parse(DateFormat.java:366)
at com.test.DateTimeConverter.fromString(DateTimeConverter.java:30)
... 145 more

Reply via email to