johnzon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Felipe Alves de Moraes (JIRA)" <j...@apache.org>
Subject [jira] [Created] (JOHNZON-196) Not able to Convert a Java LocalTime
Date Sat, 01 Dec 2018 20:58:00 GMT
Felipe Alves de Moraes created JOHNZON-196:
----------------------------------------------

             Summary: 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


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)

Mime
View raw message