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

Richard Zowalla edited comment on TOMEE-2565 at 7/30/19 6:42 AM:
-----------------------------------------------------------------

Hi [~cesarhernandezgt]

with 7.1.0  jsonb impl is used by default vs johnzon mapper before (ref: 
[http://tomee-openejb.979440.n4.nabble.com/TomEE-8-Jsonb-Provider-td4684419.html|http://tomee-openejb.979440.n4.nabble.com/TomEE-8-Jsonb-Provider-td4684419.html)]
 ). The changes in *TomEE-2233* added some optional additional configuration 
options but this configuirable provider is not used here.

 

EDIT:

Debugging into this reveals, that in TomEE 7.1.0, we have 22 registered Johnzon 
Adapters in the MapperConfig of MappingParserImpl including a lot of 
time-related converter adapters. Thereas we only have 12 in TomEE 7.1.1 ... - 
this confirms the observation of David.


was (Author: rzo1):
Hi [~cesarhernandezgt]

with 7.1.0  jsonb impl is used by default vs johnzon mapper before (ref: 
[http://tomee-openejb.979440.n4.nabble.com/TomEE-8-Jsonb-Provider-td4684419.html|http://tomee-openejb.979440.n4.nabble.com/TomEE-8-Jsonb-Provider-td4684419.html)]
 ). The changes in *TomEE-2233* added some optional additional configuration 
options but this configuirable provider is not used here.

 

EDIT:

Debugging into this reveals, that in TomEE 7.1.0, we have 22 registered Johnzon 
Adapters in the MapperConfig of MappingParserImpl including a lot of 
time-related converter adapters. Thereas we only have 12 in TomEE 7.1.1 ...

> JSONB Capabilities Broken in 7.1.1 Plume
> ----------------------------------------
>
>                 Key: TOMEE-2565
>                 URL: https://issues.apache.org/jira/browse/TOMEE-2565
>             Project: TomEE
>          Issue Type: Bug
>          Components: TomEE Core Server
>    Affects Versions: 7.1.1
>            Reporter: David Gannon
>            Assignee: Cesar Hernandez
>            Priority: Major
>         Attachments: tomeejson711.zip
>
>
> We have an existing app that has a REST client that utilizes various JSON-B 
> classes and annotations, such as javax.json.bind.JsonbConfig, 
> javax.json.bind.config.PropertyNamingStrategy, 
> javax.json.bind.config.PropertyVisibilityStrategy and
> javax.json.bind.annotation.JsonbTypeAdapter annotation.  We have been using 
> them in some REST clients running on 7.1.0 Plume and they work just fine. 
> But on 7.1.1 with identical server configs, all of the JSONB configuration 
> and the annotated fields seem to be ignored. 
> In addition, under 7.1.0, the provider has a built-in mappings for converting 
> java.time.LocalDate and java.time.LocalDateTime that do not seem to be 
> present in 7.1.1. Under 7.1.0, the implementation converts them to and from 
> ISO format whereas 7.1.1 produces json as though it used the "toString" 
> method.
> I am attaching a small project that reproduces the problems.  As supplied, 
> the project will use tomee 7.1.0. Simply run "mvn clean package". Then, to 
> see the issue in 7.1.1, change the property "tomee.version" to 7.1.1 and run 
> "mvn clean package".



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to