tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Romain Manni-Bucau (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (TOMEE-2233) DateTimeParseException Regression when upgrading to TomEE 7.1.0
Date Mon, 10 Sep 2018 16:42:00 GMT

    [ https://issues.apache.org/jira/browse/TOMEE-2233?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16609481#comment-16609481
] 

Romain Manni-Bucau edited comment on TOMEE-2233 at 9/10/18 4:41 PM:
--------------------------------------------------------------------

Hi Martin, LocalDateTime must respect LocalDateTime class parsing (we just do a parse(text)).
Did you ensure you respect that? This is due to the switch to jsonb impl by default vs johnzon
mapper before.

edit: ref http://tomee-openejb.979440.n4.nabble.com/TomEE-8-Jsonb-Provider-td4684419.html


was (Author: romain.manni-bucau):
Hi Martin, LocalDateTime must respect LocalDateTime class parsing (we just do a parse(text)).
Did you ensure you respect that? This is due to the switch to jsonb impl by default vs johnzon
mapper before.

> DateTimeParseException Regression when upgrading to TomEE 7.1.0
> ---------------------------------------------------------------
>
>                 Key: TOMEE-2233
>                 URL: https://issues.apache.org/jira/browse/TOMEE-2233
>             Project: TomEE
>          Issue Type: Bug
>          Components: TomEE Core Server
>    Affects Versions: 7.1
>         Environment: TomEE 7.1.0 (embedded, plus...), OpenJDK 8, 10, Windows 10 &
MacOs 10.13
>            Reporter: Martin Wiesner
>            Priority: Major
>
> When upgrading to TomEE 7.1.0 from 7.0.5, we encounter a regression. We observe an unexpected behaviour
with _JSON date format parsing_ which was working correctly (as configured) in TomEE 7.0.5.
> It can be reproduced in several of our projects, see stack trace below.
> {code:java}
> Caused by: javax.json.bind.JsonbException: Text '20180910121456+0200' could not be parsed
at index 0
> at org.apache.johnzon.jsonb.JohnzonJsonb.fromJson(JohnzonJsonb.java:200)
> at org.apache.johnzon.jaxrs.jsonb.jaxrs.JsonbJaxrsProvider.readFrom(JsonbJaxrsProvider.java:165)
> at org.apache.cxf.jaxrs.utils.JAXRSUtils.readFromMessageBodyReader(JAXRSUtils.java:1379)
> at org.apache.cxf.jaxrs.impl.ResponseImpl.doReadEntity(ResponseImpl.java:377)
> ... 57 more
> Caused by: org.apache.johnzon.mapper.MapperException: Text '20180910121456+0200' could
not be parsed at index 0
> at org.apache.johnzon.mapper.MappingParserImpl.toValue(MappingParserImpl.java:716)
> at org.apache.johnzon.mapper.MappingParserImpl.buildObject(MappingParserImpl.java:347)
> at org.apache.johnzon.mapper.MappingParserImpl.readObject(MappingParserImpl.java:150)
> at org.apache.johnzon.mapper.MappingParserImpl.readObject(MappingParserImpl.java:142)
> at org.apache.johnzon.mapper.MappingParserImpl.readObject(MappingParserImpl.java:129)
> at org.apache.johnzon.mapper.Mapper.mapObject(Mapper.java:310)
> at org.apache.johnzon.mapper.Mapper.readObject(Mapper.java:228)
> at org.apache.johnzon.jsonb.JohnzonJsonb.fromJson(JohnzonJsonb.java:194)
> ... 60 more
> Caused by: java.time.format.DateTimeParseException: Text '20180910121456+0200' could
not be parsed at index 0
> at java.time.format.DateTimeFormatter.parseResolved0(DateTimeFormatter.java:1949)
> at java.time.format.DateTimeFormatter.parse(DateTimeFormatter.java:1851)
> at java.time.LocalDateTime.parse(LocalDateTime.java:492)
> at java.time.LocalDateTime.parse(LocalDateTime.java:477)
> at org.apache.johnzon.jsonb.JohnzonBuilder$7.fromString(JohnzonBuilder.java:487)
> at org.apache.johnzon.jsonb.JohnzonBuilder$7.fromString(JohnzonBuilder.java:479)
> 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:710)
> ... 67 more{code}
>  
> MWE on GitHub will follow shortly via comment.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message