Expand my Community achievements bar.

SOLVED

Concurrent writing to the session.

Avatar

Level 2

Hi Team,

 

We are frequently getting alerts as concurrently writing to this session alerts.

 

19.03.2021 19:47:56.215 *WARN* [10.43.0.33 [1616183252926] GET /content/ingredion/ingredients/na/thermflo-06810107.html HTTP/1.1] org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate Attempted to perform hasProperty while thread 10.43.0.33 [1616183246828] GET /content/ingredion/ingredients/na/globe-24-de-corn-syrupglucose-solids-019240.html HTTP/1.1 was concurrently writing to this session. Blocked until the other thread finished using this session. Please review your code to avoid concurrent use of a session.

 

Could you please suggest how to avoid or handle this?

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
4 Replies

Avatar

Community Advisor

Hi @chandramohanred 

Are you trying to do anything in a loop somewhere in code with "hasProperty" ?
Also can you please provide some more info like which version of AEM and which service pack?

Thanks!

Avatar

Community Advisor

Hi @chandramohanred,

 

Please check my answer here on how to use sessions, resource resolvers to avoid session leaks.

 

Hope this helps.

 

Thanks,

Kiran Vedantam.

Avatar

Correct answer by
Community Advisor