question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Concurrency error causes `IllegalStateException` on `BeanPropertyMap`

See original GitHub issue

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 “@IdObjectIdValueProperty bean but different objects in memory, so that if (_propsInOrder[i] == prop) {
miserably fails 😦 (BeanPropertyMap.java - line 724)

Files attached:

  1. StackTraceError.log error.log

  2. The JSON received. (It is always the same json and the same java model.) response.json.log

  3. The Customized ObjectMapper we use CustomObjectMapper.java.log

I hope your help, thank you very much

Sorry for my English!!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
cowtowncodercommented, May 9, 2018

Ok. One possible source of problem was mutability of BeanPropertyMap, in one specific case (when adding a new property). I changed that to make a proper full copy, just like javadocs claimed should already have been done. I don’t have a way to verify whether this solves the problem but it seems like it should help. For now I assume this does solve the problem; change will be in 2.9.6. If not, may be reopened if verified against 2.9.6 once that is released (it is not yet out), or against build from 2.9 branch.

For what it is worth, code in master (for 3.0) already had rewritten version of this class, which should have same problem.

1reaction
cowtowncodercommented, Sep 2, 2022

No, there are no static references to it anywhere; every ObjectMapper has its own separate copy. I try very hard not to have any static singletons that could leak state across mappers and this cache definitely would be problematic.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Caused by: java.lang.IllegalStateException: Recursive update ...
IllegalStateException: Recursive update at java. util. concurrent. ConcurrentHashMap.
Read more >
[Dspace-tech] Deploying DSpace 3 rc4 XMLUI out of ...
Caused by: java.lang.IllegalStateException: failure starting up spring service manager: Error creating bean with name 'org.dspace.discovery.configuration.
Read more >
Red Hat JBoss Enterprise Application Platform 7.1.0.Alpha1
@Message(id=79, value="An unexpected resource manager error occurred") XAException resourceManagerErrorXa(@Field int errorCode, @Cause Throwable cause) ...
Read more >
WildFly 9.0.2.Final - Exceptions UT010019 and U... - JBoss.org
As far as I could understand this error message, it seems that Object ... IllegalStateException: UT010019: Response already commited.
Read more >
JDK-8195668 Crash in "C2 CompilerThread2" - Bug ID
ERROR MESSAGES/STACK TRACES THAT OCCUR : # # A fatal error has been detected by ... Event: 9121.105 Thread 0x000000003619d000 25766 3 java.util.concurrent....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found