You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@johnzon.apache.org by "Romain Manni-Bucau (JIRA)" <ji...@apache.org> on 2018/12/01 23:01:00 UTC
[jira] [Commented] (JOHNZON-196) Not able to Convert a Java
LocalTime
[ https://issues.apache.org/jira/browse/JOHNZON-196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16706033#comment-16706033 ]
Romain Manni-Bucau commented on JOHNZON-196:
--------------------------------------------
Hi, right , will add it in coming days
> Not able to Convert a Java LocalTime
> ------------------------------------
>
> Key: JOHNZON-196
> URL: https://issues.apache.org/jira/browse/JOHNZON-196
> Project: Johnzon
> Issue Type: Bug
> Reporter: Felipe Alves de Moraes
> Priority: Major
>
> Hi, I was doing some tests using Apache Tomee 8, and I create an endpoint that one of the fields expects a LocalTime. When I call this endpoint sending my Json data, I'm getting the following exceptions:
> {code:java}
> 01-Dec-2018 16:36:53.753 SEVERE [http-nio-8080-exec-3] org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage An unexpected error occurred during error handling. No further error processing will occur.
> org.apache.cxf.interceptor.Fault: Missing a Converter for type class java.time.LocalTime to convert the JSON String '20:52:00' . Please register a custom converter for it.
> {code}
> {code:java}
> Caused by: org.apache.johnzon.mapper.MapperException: Missing a Converter for type class java.time.LocalTime to convert the JSON String '20:52:00' . Please register a custom converter for it.
> {code}
> I believe that Johnzon was supposed to be compatible with the Date and Time API out of the box, right?
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)