From commits-return-43225-archive-asf-public=cust-asf.ponee.io@tomee.apache.org Fri Sep 14 17:30:10 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 9D7E9180647 for ; Fri, 14 Sep 2018 17:30:08 +0200 (CEST) Received: (qmail 32452 invoked by uid 500); 14 Sep 2018 15:30:02 -0000 Mailing-List: contact commits-help@tomee.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tomee.apache.org Delivered-To: mailing list commits@tomee.apache.org Received: (qmail 32261 invoked by uid 500); 14 Sep 2018 15:30:02 -0000 Delivered-To: apmail-openejb-commits@openejb.apache.org Received: (qmail 32217 invoked by uid 99); 14 Sep 2018 15:30:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Sep 2018 15:30:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 52B791802DE for ; Fri, 14 Sep 2018 15:30:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.001 X-Spam-Level: X-Spam-Status: No, score=-109.001 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, KAM_NUMSUBJECT=0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id IBAob5U31pTt for ; Fri, 14 Sep 2018 15:30:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 1B3545F572 for ; Fri, 14 Sep 2018 15:30:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 9AF07E0A31 for ; Fri, 14 Sep 2018 15:30:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 5CA9223F9C for ; Fri, 14 Sep 2018 15:30:00 +0000 (UTC) Date: Fri, 14 Sep 2018 15:30:00 +0000 (UTC) From: "Jonathan Gallimore (JIRA)" To: commits@openejb.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (TOMEE-2233) DateTimeParseException Regression when upgrading to TomEE 7.1.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/TOMEE-2233?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1661= 4986#comment-16614986 ]=20 Jonathan Gallimore commented on TOMEE-2233: ------------------------------------------- Thanks for the PR, I've merged it in. =C2=A0 Jon > 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, Wind= ows 10 & MacOs 10.13 > Reporter: Martin Wiesner > Priority: Major > Labels: pull-request-available > > When upgrading to TomEE 7.1.0 from 7.0.5, we encounter a regression. We o= bserve an unexpected=C2=A0behaviour with _JSON date format parsing_ which w= as 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' cou= ld 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(Jsonb= JaxrsProvider.java:165) > at org.apache.cxf.jaxrs.utils.JAXRSUtils.readFromMessageBodyReader(JAXRSU= tils.java:1379) > at org.apache.cxf.jaxrs.impl.ResponseImpl.doReadEntity(ResponseImpl.java:= 377) > ... 57 more > Caused by: org.apache.johnzon.mapper.MapperException: Text '2018091012145= 6+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(MappingParserI= mpl.java:347) > at org.apache.johnzon.mapper.MappingParserImpl.readObject(MappingParserIm= pl.java:150) > at org.apache.johnzon.mapper.MappingParserImpl.readObject(MappingParserIm= pl.java:142) > at org.apache.johnzon.mapper.MappingParserImpl.readObject(MappingParserIm= pl.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.ja= va: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.ja= va:487) > at org.apache.johnzon.jsonb.JohnzonBuilder$7.fromString(JohnzonBuilder.ja= va:479) > at org.apache.johnzon.mapper.internal.ConverterAdapter.to(ConverterAdapte= r.java:37) > at org.apache.johnzon.mapper.internal.ConverterAdapter.to(ConverterAdapte= r.java:24) > at org.apache.johnzon.mapper.MappingParserImpl.toValue(MappingParserImpl.= java:710) > ... 67=C2=A0more{code} > =C2=A0 > MWE on GitHub will follow shortly via comment. -- This message was sent by Atlassian JIRA (v7.6.3#76005)