Session getting closed in custom service | Community
Skip to main content
Level 2
Jul 26, 2017 6:47 AM UTC
Solved

Session getting closed in custom service

Hi All,

We have created a service which will iterate a huge number of nodes and do certain operations. But after iterating over a few nodes, the session is getting closed and we are getting an exception as below.

: This session has been closed

  1. java.lang.IllegalStateException: This session has been closed

      at com.google.common.base.Preconditions.checkState(Preconditions.java:150)

      at org.apache.jackrabbit.oak.core.ContentSessionImpl.checkLive(ContentSessionImpl.java:85)

      at org.apache.jackrabbit.oak.core.MutableRoot.checkLive(MutableRoot.java:172)

      at org.apache.jackrabbit.oak.core.MutableTree.beforeRead(MutableTree.java:333)

      at org.apache.jackrabbit.oak.core.MutableTree.getPath(MutableTree.java:108)

      at org.apache.jackrabbit.oak.jcr.delegate.NodeDelegate.getPath(NodeDelegate.java:116)

The session timeout configured in "Apache Felix Jetty Based Http Service" is 10. We tried by making the time as 0. But still the same issue persist.

It would be grateful if any could help us in solving this.

Thanks,

Akhila

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
joerghoh
joerghohAccepted solution
Employee
Jul 26, 2017 3:51 PM UTC

The problem is not the session timeout you have configured, because this only affects HTTP sessions (not repository sessions).

I never came across the problem you described, it's most likely a bug in your code.

kind regards,
Jörg

2 replies

joerghoh
joerghohAccepted solution
Employee
Jul 26, 2017 3:51 PM UTC

The problem is not the session timeout you have configured, because this only affects HTTP sessions (not repository sessions).

I never came across the problem you described, it's most likely a bug in your code.

kind regards,
Jörg

Translate
Level 4
Jul 26, 2017 7:00 AM UTC

try giving some negative number

Translate