-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Concurrency error causes IllegalStateException
on BeanPropertyMap
#2027
Comments
Which Jackson version? |
It has happened to us with Jackson 2.8.7 and we updated to 2.9.5 and also
happens
El mar., 8 de mayo de 2018 18:59, Tatu Saloranta <[email protected]>
escribió:
… Which Jackson version?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2027 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AlSMmr2MjMDuCff5eAVrG2eR-twwaPa_ks5twc7fgaJpZM4T2-30>
.
|
@franboragina Thank you. This sounds unfortunate, thank you for reporting it. I can not think of obvious reason, but I think there are ways to improve handling of |
IllegalStateException
on BeanPropertyMap
Ok. One possible source of problem was mutability of For what it is worth, code in |
@cowtowncoder |
Thank you! And thank you for reporting this in the first place. That's how we can project work better for everyone. |
@cowtowncoder Sorry for resurrecting an old issue, but I've been consistently running into this crash recently (version 2.13.3) and I wanted to check back with you whether the A bit of context:
I introduced a few DTO changes recently where new properties were added, and since then I kept running into that crash. After a Tomcat restart the problem disappeared, so I assume something was holding on to the old deserializer cache which didn't know the new properties, yet. I also never ran into this problem before until recently, despite having deployed many updates like that for a couple of years now. I'm a bit at a loss how to troubleshoot, so I just wanted to ask for clarification if the Jackson library stores anything statically |
No, there are no static references to it anywhere; every |
Hi,
I suspect a concurrency error maybe similar to Issue #1578.
It appears randomly on fresh tomcat startup, with first REST calls through CXF jaxrs.
I was not able to reproduce on development environment.
BeanPropertyMap.java - line 728:
throw new IllegalStateException("Illegal state: property '"+prop.getName()+"' missing from _propsInOrder");
Somewhere
_hashArea
and_propsInOrder
are losing the correlativity objects they own.The only clue:
Debugging I have seen in both arrays an "@id"
ObjectIdValueProperty
bean but different objects in memory,so that
if (_propsInOrder[i] == prop) {
miserably fails :(
(BeanPropertyMap.java - line 724)
Files attached:
StackTraceError.log
error.log
The JSON received. (It is always the same json and the same java model.)
response.json.log
The Customized ObjectMapper we use
CustomObjectMapper.java.log
I hope your help, thank you very much
Sorry for my English!!
The text was updated successfully, but these errors were encountered: