sling-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carl Hall <c...@hallwaytech.com>
Subject Lots of Shared Session Logging
Date Thu, 14 Oct 2010 14:50:43 GMT
I'm running into a lot of InvalidItemStateException issues as I process a
user but more on that later.  I'm trying to find the root of this problem
and saw /a lot/ of messages about "Session is being shared between threads".
 I enabled a debug log for the noted class and see this message repeated ad
nauseum as I load users in a multithreaded environment.

We have our own user creation servlet (extends AbstractUserPostServlet).  It
retrieves the session by:

Session currentSession =
request.getResourceResolver().adaptTo(Session.class);

and shares this session with several post processors for setting up a user
account (profile, calendar, etc).  I hit the ItemInvalidStateException when
I try to save in the post processors.

Can someone tell me if the message below is something to be dealt with or
just a notification?  I see the same "Session
org.apache.jackrabbit.core.XASessionImpl@29e54f45" all the way through my
log file for this server's test session.

14.10.2010 09:16:50.859 *DEBUG* [0:0:0:0:0:0:0:1 [1287062210748] POST
/system/userManager/user.create.html HTTP/1.1]
org.apache.jackrabbit.core.SharedThreadDetector Violation Bound to
Thread[0:0:0:0:0:0:0:1 [1287062210748] POST
/system/userManager/user.create.html HTTP/1.1,5,main] called by
Thread[0:0:0:0:0:0:0:1 [1287062210748] POST
/system/userManager/user.create.html HTTP/1.1,5,main]
 Session org.apache.jackrabbit.core.XASessionImpl@29e54f45
java.lang.Exception: Bound At
    at
org.apache.jackrabbit.core.SharedThreadDetector.<init>(SharedThreadDetector.java:22)
    at org.apache.jackrabbit.core.ItemManager.getNode(ItemManager.java:635)
    at
org.apache.jackrabbit.core.LazyItemIterator.prefetchNext(LazyItemIterator.java:112)
    at
org.apache.jackrabbit.core.LazyItemIterator.<init>(LazyItemIterator.java:96)
    at
org.apache.jackrabbit.core.ItemManager.getChildNodes(ItemManager.java:734)
    at org.apache.jackrabbit.core.NodeImpl.getNodes(NodeImpl.java:2474)
    at
org.apache.sling.jcr.resource.internal.helper.jcr.JcrNodeResource.listJcrChildren(JcrNodeResource.java:234)
    at
org.apache.sling.jcr.resource.internal.helper.jcr.JcrResourceProvider.listChildren(JcrResourceProvider.java:111)
    at
org.apache.sling.jcr.resource.internal.helper.WrappedResourceProvider.listChildren(WrappedResourceProvider.java:65)
    at
org.apache.sling.jcr.resource.internal.helper.ResourceProviderEntry$1.seek(ResourceProviderEntry.java:206)
    at
org.apache.sling.jcr.resource.internal.helper.ResourceProviderEntry$1.next(ResourceProviderEntry.java:192)
    at
org.apache.sling.jcr.resource.internal.helper.ResourceProviderEntry$1.next(ResourceProviderEntry.java:201)
    at
org.apache.sling.jcr.resource.internal.ResourceIteratorDecorator.next(ResourceIteratorDecorator.java:49)
    at
org.apache.sling.jcr.resource.internal.ResourceIteratorDecorator.next(ResourceIteratorDecorator.java:28)
    at
org.apache.sling.servlets.resolver.internal.helper.ResourceCollector.getWeightedResources(ResourceCollector.java:177)
    at
org.apache.sling.servlets.resolver.internal.helper.AbstractResourceCollector.getServlets(AbstractResourceCollector.java:89)
    at
org.apache.sling.servlets.resolver.internal.SlingServletResolver.getServlet(SlingServletResolver.java:617)
    at
org.apache.sling.servlets.resolver.internal.SlingServletResolver.resolveServlet(SlingServletResolver.java:576)
    at
org.apache.sling.servlets.resolver.internal.SlingServletResolver.resolveServlet(SlingServletResolver.java:254)
    at
org.apache.sling.engine.impl.request.RequestData.initServlet(RequestData.java:214)
    at
org.apache.sling.engine.impl.SlingMainServlet.service(SlingMainServlet.java:303)
    at
org.apache.sling.engine.impl.SlingMainServlet.service(SlingMainServlet.java:207)
    at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
    at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:389)
    at
org.ops4j.pax.web.service.internal.HttpServiceServletHandler.handle(HttpServiceServletHandler.java:64)
    at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
    at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
    at
org.ops4j.pax.web.service.internal.HttpServiceContext.handle(HttpServiceContext.java:111)
    at
org.ops4j.pax.web.service.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:64)
    at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at org.mortbay.jetty.Server.handle(Server.java:324)
    at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:535)
    at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:880)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
    at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
    at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520)
java.lang.Exception: Rebound 0 at
    at
org.apache.jackrabbit.core.SharedThreadDetector.check(SharedThreadDetector.java:29)
    at org.apache.jackrabbit.core.ItemManager.getNode(ItemManager.java:637)
    at
org.apache.jackrabbit.core.LazyItemIterator.prefetchNext(LazyItemIterator.java:112)
    at
org.apache.jackrabbit.core.LazyItemIterator.<init>(LazyItemIterator.java:96)
    at
org.apache.jackrabbit.core.ItemManager.getChildNodes(ItemManager.java:734)
    at org.apache.jackrabbit.core.NodeImpl.getNodes(NodeImpl.java:2474)
    at
org.apache.sling.jcr.resource.internal.helper.jcr.JcrNodeResource.listJcrChildren(JcrNodeResource.java:234)
    at
org.apache.sling.jcr.resource.internal.helper.jcr.JcrResourceProvider.listChildren(JcrResourceProvider.java:111)
    at
org.apache.sling.jcr.resource.internal.helper.WrappedResourceProvider.listChildren(WrappedResourceProvider.java:65)
    at
org.apache.sling.jcr.resource.internal.helper.ResourceProviderEntry$1.seek(ResourceProviderEntry.java:206)
    at
org.apache.sling.jcr.resource.internal.helper.ResourceProviderEntry$1.next(ResourceProviderEntry.java:192)
    at
org.apache.sling.jcr.resource.internal.helper.ResourceProviderEntry$1.next(ResourceProviderEntry.java:201)
    at
org.apache.sling.jcr.resource.internal.ResourceIteratorDecorator.next(ResourceIteratorDecorator.java:49)
    at
org.apache.sling.jcr.resource.internal.ResourceIteratorDecorator.next(ResourceIteratorDecorator.java:28)
    at
org.apache.sling.servlets.resolver.internal.helper.ResourceCollector.getWeightedResources(ResourceCollector.java:177)
    at
org.apache.sling.servlets.resolver.internal.helper.AbstractResourceCollector.getServlets(AbstractResourceCollector.java:89)
    at
org.apache.sling.servlets.resolver.internal.SlingServletResolver.getServlet(SlingServletResolver.java:617)
    at
org.apache.sling.servlets.resolver.internal.SlingServletResolver.resolveServlet(SlingServletResolver.java:576)
    at
org.apache.sling.servlets.resolver.internal.SlingServletResolver.resolveServlet(SlingServletResolver.java:254)
    at
org.apache.sling.engine.impl.request.RequestData.initServlet(RequestData.java:214)
    at
org.apache.sling.engine.impl.SlingMainServlet.service(SlingMainServlet.java:303)
    at
org.apache.sling.engine.impl.SlingMainServlet.service(SlingMainServlet.java:207)
    at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
    at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:389)
    at
org.ops4j.pax.web.service.internal.HttpServiceServletHandler.handle(HttpServiceServletHandler.java:64)
    at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
    at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
    at
org.ops4j.pax.web.service.internal.HttpServiceContext.handle(HttpServiceContext.java:111)
    at
org.ops4j.pax.web.service.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:64)
    at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at org.mortbay.jetty.Server.handle(Server.java:324)
    at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:535)
    at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:880)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
    at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
    at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520)

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message