juneau-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Bognar (Jira)" <j...@apache.org>
Subject [jira] [Created] (JUNEAU-176) Race condition when parsing into array types.
Date Fri, 10 Jan 2020 21:14:00 GMT
James Bognar created JUNEAU-176:
-----------------------------------

             Summary: Race condition when parsing into array types.
                 Key: JUNEAU-176
                 URL: https://issues.apache.org/jira/browse/JUNEAU-176
             Project: Juneau
          Issue Type: Bug
          Components: Code
    Affects Versions: 8.0.0
            Reporter: James Bognar
            Assignee: James Bognar
             Fix For: 8.1.3


It's possible to hit an initialization race condition when trying to run the following code
in more than about 5 concurrent threads:

JsonParser.DEFAULT.parse(input, MyBean[].class);

It shows up as an error "Could not create bean.  Reason=[null]".

The problem quickly resolves itself after the initial errors.

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message