org.apache.shiro.session.UnknownSessionException: There is no session with id [66e6130f-c505-41b5-afb5-1ea1327ec032]

JIRA | Yannick Marcon | 2 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Reported by R client after shiro session has timed out: {code} > ds.summary(x='D$GENDER') Error: Command 'exists("D")' failed on 'server1': Session with id [66e6130f-c505-41b5-afb5-1ea1327ec032] has expired. Last access time: 28/04/15 12:34 PM. Current time: 28/04/15 12:34 PM. Session timeout is set to 10 seconds (0 minutes) {code} Stack trace: {code} 2015-04-28 12:35:27,134 ERROR org.obiba.opal.r.service.OpalRSession - Error when consuming R command: There is no session with id [66e6130f-c505-41b5-afb5-1ea1327ec032] org.apache.shiro.session.UnknownSessionException: There is no session with id [66e6130f-c505-41b5-afb5-1ea1327ec032] at org.apache.shiro.session.mgt.eis.AbstractSessionDAO.readSession(AbstractSessionDAO.java:170) ~[shiro-core-1.2.3-java8.jar:1.2.3-java8] at org.apache.shiro.session.mgt.eis.CachingSessionDAO.readSession(CachingSessionDAO.java:261) ~[shiro-core-1.2.3-java8.jar:1.2.3-java8] at org.apache.shiro.session.mgt.DefaultSessionManager.retrieveSessionFromDataSource(DefaultSessionManager.java:236) ~[shiro-core-1.2.3-java8.jar:1.2.3-java8] at org.apache.shiro.session.mgt.DefaultSessionManager.retrieveSession(DefaultSessionManager.java:222) ~[shiro-core-1.2.3-java8.jar:1.2.3-java8] at org.apache.shiro.session.mgt.AbstractValidatingSessionManager.doGetSession(AbstractValidatingSessionManager.java:118) ~[shiro-core-1.2.3-java8.jar:1.2.3-java8] at org.apache.shiro.session.mgt.AbstractNativeSessionManager.lookupSession(AbstractNativeSessionManager.java:108) ~[shiro-core-1.2.3-java8.jar:1.2.3-java8] at org.apache.shiro.session.mgt.AbstractNativeSessionManager.lookupRequiredSession(AbstractNativeSessionManager.java:112) ~[shiro-core-1.2.3-java8.jar:1.2.3-java8] at org.apache.shiro.session.mgt.AbstractNativeSessionManager.getAttribute(AbstractNativeSessionManager.java:209) ~[shiro-core-1.2.3-java8.jar:1.2.3-java8] at org.apache.shiro.session.mgt.DelegatingSession.getAttribute(DelegatingSession.java:141) ~[shiro-core-1.2.3-java8.jar:1.2.3-java8] at org.apache.shiro.session.ProxiedSession.getAttribute(ProxiedSession.java:121) ~[shiro-core-1.2.3-java8.jar:1.2.3-java8] at org.apache.shiro.session.ProxiedSession.getAttribute(ProxiedSession.java:121) ~[shiro-core-1.2.3-java8.jar:1.2.3-java8] at org.apache.shiro.session.ProxiedSession.getAttribute(ProxiedSession.java:121) ~[shiro-core-1.2.3-java8.jar:1.2.3-java8] at org.apache.shiro.subject.support.DelegatingSubject.getRunAsPrincipalsStack(DelegatingSubject.java:469) ~[shiro-core-1.2.3-java8.jar:1.2.3-java8] at org.apache.shiro.subject.support.DelegatingSubject.getPrincipals(DelegatingSubject.java:153) ~[shiro-core-1.2.3-java8.jar:1.2.3-java8] at org.apache.shiro.subject.support.DelegatingSubject.getPrincipal(DelegatingSubject.java:149) ~[shiro-core-1.2.3-java8.jar:1.2.3-java8] at org.obiba.opal.datashield.DataShieldLog.log(DataShieldLog.java:37) ~[opal-datashield-2.4-SNAPSHOT.jar:na] at org.obiba.opal.datashield.DataShieldLog.userLog(DataShieldLog.java:32) ~[opal-datashield-2.4-SNAPSHOT.jar:na] at org.obiba.opal.datashield.RestrictedRScriptROperation.doWithConnection(RestrictedRScriptROperation.java:34) ~[opal-datashield-2.4-SNAPSHOT.jar:na] {code}

    JIRA | 2 years ago | Yannick Marcon
    org.apache.shiro.session.UnknownSessionException: There is no session with id [66e6130f-c505-41b5-afb5-1ea1327ec032]
  2. 0

    Reported by R client after shiro session has timed out: {code} > ds.summary(x='D$GENDER') Error: Command 'exists("D")' failed on 'server1': Session with id [66e6130f-c505-41b5-afb5-1ea1327ec032] has expired. Last access time: 28/04/15 12:34 PM. Current time: 28/04/15 12:34 PM. Session timeout is set to 10 seconds (0 minutes) {code} Stack trace: {code} 2015-04-28 12:35:27,134 ERROR org.obiba.opal.r.service.OpalRSession - Error when consuming R command: There is no session with id [66e6130f-c505-41b5-afb5-1ea1327ec032] org.apache.shiro.session.UnknownSessionException: There is no session with id [66e6130f-c505-41b5-afb5-1ea1327ec032] at org.apache.shiro.session.mgt.eis.AbstractSessionDAO.readSession(AbstractSessionDAO.java:170) ~[shiro-core-1.2.3-java8.jar:1.2.3-java8] at org.apache.shiro.session.mgt.eis.CachingSessionDAO.readSession(CachingSessionDAO.java:261) ~[shiro-core-1.2.3-java8.jar:1.2.3-java8] at org.apache.shiro.session.mgt.DefaultSessionManager.retrieveSessionFromDataSource(DefaultSessionManager.java:236) ~[shiro-core-1.2.3-java8.jar:1.2.3-java8] at org.apache.shiro.session.mgt.DefaultSessionManager.retrieveSession(DefaultSessionManager.java:222) ~[shiro-core-1.2.3-java8.jar:1.2.3-java8] at org.apache.shiro.session.mgt.AbstractValidatingSessionManager.doGetSession(AbstractValidatingSessionManager.java:118) ~[shiro-core-1.2.3-java8.jar:1.2.3-java8] at org.apache.shiro.session.mgt.AbstractNativeSessionManager.lookupSession(AbstractNativeSessionManager.java:108) ~[shiro-core-1.2.3-java8.jar:1.2.3-java8] at org.apache.shiro.session.mgt.AbstractNativeSessionManager.lookupRequiredSession(AbstractNativeSessionManager.java:112) ~[shiro-core-1.2.3-java8.jar:1.2.3-java8] at org.apache.shiro.session.mgt.AbstractNativeSessionManager.getAttribute(AbstractNativeSessionManager.java:209) ~[shiro-core-1.2.3-java8.jar:1.2.3-java8] at org.apache.shiro.session.mgt.DelegatingSession.getAttribute(DelegatingSession.java:141) ~[shiro-core-1.2.3-java8.jar:1.2.3-java8] at org.apache.shiro.session.ProxiedSession.getAttribute(ProxiedSession.java:121) ~[shiro-core-1.2.3-java8.jar:1.2.3-java8] at org.apache.shiro.session.ProxiedSession.getAttribute(ProxiedSession.java:121) ~[shiro-core-1.2.3-java8.jar:1.2.3-java8] at org.apache.shiro.session.ProxiedSession.getAttribute(ProxiedSession.java:121) ~[shiro-core-1.2.3-java8.jar:1.2.3-java8] at org.apache.shiro.subject.support.DelegatingSubject.getRunAsPrincipalsStack(DelegatingSubject.java:469) ~[shiro-core-1.2.3-java8.jar:1.2.3-java8] at org.apache.shiro.subject.support.DelegatingSubject.getPrincipals(DelegatingSubject.java:153) ~[shiro-core-1.2.3-java8.jar:1.2.3-java8] at org.apache.shiro.subject.support.DelegatingSubject.getPrincipal(DelegatingSubject.java:149) ~[shiro-core-1.2.3-java8.jar:1.2.3-java8] at org.obiba.opal.datashield.DataShieldLog.log(DataShieldLog.java:37) ~[opal-datashield-2.4-SNAPSHOT.jar:na] at org.obiba.opal.datashield.DataShieldLog.userLog(DataShieldLog.java:32) ~[opal-datashield-2.4-SNAPSHOT.jar:na] at org.obiba.opal.datashield.RestrictedRScriptROperation.doWithConnection(RestrictedRScriptROperation.java:34) ~[opal-datashield-2.4-SNAPSHOT.jar:na] {code}

    JIRA | 2 years ago | Yannick Marcon
    org.apache.shiro.session.UnknownSessionException: There is no session with id [66e6130f-c505-41b5-afb5-1ea1327ec032]

  1. kid 8 times, last 8 months ago

Root Cause Analysis

  1. org.apache.shiro.session.UnknownSessionException

    There is no session with id [66e6130f-c505-41b5-afb5-1ea1327ec032]

    at org.apache.shiro.session.mgt.eis.AbstractSessionDAO.readSession()
  2. Shiro
    DelegatingSubject.getPrincipal
    1. org.apache.shiro.session.mgt.eis.AbstractSessionDAO.readSession(AbstractSessionDAO.java:170)[shiro-core-1.2.3-java8.jar:1.2.3-java8]
    2. org.apache.shiro.session.mgt.eis.CachingSessionDAO.readSession(CachingSessionDAO.java:261)[shiro-core-1.2.3-java8.jar:1.2.3-java8]
    3. org.apache.shiro.session.mgt.DefaultSessionManager.retrieveSessionFromDataSource(DefaultSessionManager.java:236)[shiro-core-1.2.3-java8.jar:1.2.3-java8]
    4. org.apache.shiro.session.mgt.DefaultSessionManager.retrieveSession(DefaultSessionManager.java:222)[shiro-core-1.2.3-java8.jar:1.2.3-java8]
    5. org.apache.shiro.session.mgt.AbstractValidatingSessionManager.doGetSession(AbstractValidatingSessionManager.java:118)[shiro-core-1.2.3-java8.jar:1.2.3-java8]
    6. org.apache.shiro.session.mgt.AbstractNativeSessionManager.lookupSession(AbstractNativeSessionManager.java:108)[shiro-core-1.2.3-java8.jar:1.2.3-java8]
    7. org.apache.shiro.session.mgt.AbstractNativeSessionManager.lookupRequiredSession(AbstractNativeSessionManager.java:112)[shiro-core-1.2.3-java8.jar:1.2.3-java8]
    8. org.apache.shiro.session.mgt.AbstractNativeSessionManager.getAttribute(AbstractNativeSessionManager.java:209)[shiro-core-1.2.3-java8.jar:1.2.3-java8]
    9. org.apache.shiro.session.mgt.DelegatingSession.getAttribute(DelegatingSession.java:141)[shiro-core-1.2.3-java8.jar:1.2.3-java8]
    10. org.apache.shiro.session.ProxiedSession.getAttribute(ProxiedSession.java:121)[shiro-core-1.2.3-java8.jar:1.2.3-java8]
    11. org.apache.shiro.session.ProxiedSession.getAttribute(ProxiedSession.java:121)[shiro-core-1.2.3-java8.jar:1.2.3-java8]
    12. org.apache.shiro.session.ProxiedSession.getAttribute(ProxiedSession.java:121)[shiro-core-1.2.3-java8.jar:1.2.3-java8]
    13. org.apache.shiro.subject.support.DelegatingSubject.getRunAsPrincipalsStack(DelegatingSubject.java:469)[shiro-core-1.2.3-java8.jar:1.2.3-java8]
    14. org.apache.shiro.subject.support.DelegatingSubject.getPrincipals(DelegatingSubject.java:153)[shiro-core-1.2.3-java8.jar:1.2.3-java8]
    15. org.apache.shiro.subject.support.DelegatingSubject.getPrincipal(DelegatingSubject.java:149)[shiro-core-1.2.3-java8.jar:1.2.3-java8]
    15 frames
  3. org.obiba.opal
    RestrictedRScriptROperation.doWithConnection
    1. org.obiba.opal.datashield.DataShieldLog.log(DataShieldLog.java:37)[opal-datashield-2.4-SNAPSHOT.jar:na]
    2. org.obiba.opal.datashield.DataShieldLog.userLog(DataShieldLog.java:32)[opal-datashield-2.4-SNAPSHOT.jar:na]
    3. org.obiba.opal.datashield.RestrictedRScriptROperation.doWithConnection(RestrictedRScriptROperation.java:34)[opal-datashield-2.4-SNAPSHOT.jar:na]
    3 frames