Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

facing issue with concurrent use of session


Level 1

Hi All,

   We are facing concurrent use of session.save call in our CQ5 application. When we analyze logs, we found that a function is having for loop, which is interrupted by TIBCO calls. Where the calls also using admin session. Due to which the below issue is occurring that in turn causing java.lang.IllegalStateException: not initialized

18.07.2017 13:47:20.507 WARN [Finalizer] org.apache.jackrabbit.core.session.SessionState

Attempt to close session-admin-581500 while another thread is concurrently accessing this session.

Blocking until the other thread is finished using this session. Please review your code to avoid concurrent use of a session.

java.lang.Exception: Stack trace of concurrent` access to session-admin-581500

Below are logs:

java.lang.IllegalStateException: not initialized at org.apache.jackrabbit.core.security.DefaultAccessManager.checkInitialized(DefaultAccessMa nager.java:457) at org.apache.jackrabbit.core.security.DefaultAccessManager.canRead(DefaultAccessManager.jav a:261) at org.apache.jackrabbit.core.ItemManager.canRead(ItemManager.java:438)

While doing manual operation in our application, Due to java.lang.IllegalStateException, we are getting "unknown error" which is blocking our functionality. How can we resolve this "Unknown error".

Please guide me what could be wrong missing in code due to above error is occurring.



1 Reply


Level 1

We are using Adobe CQ5 software. Please move this post to an appropriate, product-specific, support forum.