Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Generating excel using Apache POI containing AEM users and Groups. Sometimes unable to download the excel As its giving below error.

 04.02.2016 00:44:31.679 *ERROR* [172.31.92.128 [1454564662128] GET /bin/usergroups HTTP/1.1] org.apache.sling.servlets.resolver.internal.SlingServletResolver Original error class java.lang.IllegalStateException
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.MutableRoot.getTree(MutableRoot.java:216)
        at org.apache.jackrabbit.oak.core.MutableRoot.getTree(MutableRoot.java:66)
        at org.apache.jackrabbit.oak.security.user.AuthorizableBaseProvider.getByPath(AuthorizableBaseProvider.java:66)
        at org.apache.jackrabbit.oak.security.user.UserProvider.getAuthorizableByPath(UserProvider.java:199)
        at org.apache.jackrabbit.oak.security.user.UserManagerImpl.getAuthorizableByPath(UserManagerImpl.java:121)
        at org.apache.jackrabbit.oak.security.user.AuthorizableIterator$PathToAuthorizable.apply(AuthorizableIterator.java:100)
        at org.apache.jackrabbit.oak.security.user.AuthorizableIterator$PathToAuthorizable.apply(AuthorizableIterator.java:86)
        at com.google.common.collect.Iterators$8.transform(Iterators.java:794)
        at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48)
        at com.google.common.collect.Iterators$7.computeNext(Iterators.java:646)
        at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143)
        at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138)
        at org.apache.jackrabbit.oak.security.user.AuthorizableIterator.hasNext(AuthorizableIterator.java:58)
        at org.apache.jackrabbit.commons.iterator.RangeIteratorAdapter.hasNext(RangeIteratorAdapter.java:132)
        at com.google.common.collect.TransformedIterator.hasNext(TransformedIterator.java:43)
        at com.mam.servlets.UserGroupDetails.settingAccess(UserGroupDetails.java:365)
        at com.mam.servlets.UserGroupDetails.doGet(UserGroupDetails.java:239)
        at org.apache.sling.api.servlets.SlingSafeMethodsServlet.mayService(SlingSafeMethodsServlet.java:268)
        at org.apache.sling.api.servlets.SlingAllMethodsServlet.mayService(SlingAllMethodsServlet.java:139)
        at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.java:344)
        at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.java:375)
        at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:533)
        at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilterChai

1 Reply