[
https://issues.apache.org/jira/browse/TOMEE-2565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16901358#comment-16901358
]
Richard Zowalla commented on TOMEE-2565:
----------------------------------------
Hi [~cesarhernandezgt]
I did the following:
# Switch to TomEE 7.1.1
# Execute "testJSON2" in "JSONTest" in the sample project, which will fail due
to the exception above.
# Add a breakpoint in
org.apache.johnzon.mapper.MappingParserImpl.buildObject(MappingParserImpl.java:219)
# Re-execute the test in debug mode, investigate the attribute "config" of
MappingParserImpl:
!image-2019-08-06-20-26-50-587.png!
Next, I switched back to TomEE 7.1.0 (same break-point as code did not change -
you are right with this point):
!image-2019-08-06-20-28-15-535.png!
This difference in registered Johnzon adapters can be reproduced on my Ubuntu
18 Dev machine but also on my Windows 10 workstation.
I also checked if there are any differences between the exact classes
(MapperConfig / MappingParserImpl between Johnzon - but you are right with this
point: there are no changes :(
> 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
> Priority: Major
> Attachments: image-2019-08-06-20-26-50-587.png,
> image-2019-08-06-20-28-15-535.png, 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)