Uploaded image for project: '[Read Only] - Hippo Site Toolkit 2'
  1. [Read Only] - Hippo Site Toolkit 2
  2. HSTTWO-2266

BeanUtils getDisposablePoolSession creates multiple lazy jcr sessions for one and the same query for a single request

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 2.22.15, 2.24.07, 2.25.05
    • None

    Description

      Reproduction:

      In testsuite trunk, in FacetedDetail java component:

      After

      ProductBean product = BeanUtils.getFacetedNavigationResultDocument(request, hstQuery, getObjectConverter(), ProductBean.class);

      add

      product = BeanUtils.getFacetedNavigationResultDocument(request, hstQuery, getObjectConverter(), ProductBean.class);
      product = BeanUtils.getFacetedNavigationResultDocument(request, hstQuery, getObjectConverter(), ProductBean.class);
      product = BeanUtils.getFacetedNavigationResultDocument(request, hstQuery, getObjectConverter(), ProductBean.class);
      product = BeanUtils.getFacetedNavigationResultDocument(request, hstQuery, getObjectConverter(), ProductBean.class);
      product = BeanUtils.getFacetedNavigationResultDocument(request, hstQuery, getObjectConverter(), ProductBean.class);
      product = BeanUtils.getFacetedNavigationResultDocument(request, hstQuery, getObjectConverter(), ProductBean.class);

      This will result in

      [INFO] [talledLocalContainer] 2012-08-17 14:27:22,023 WARN [http-8080-3] [org.hippoecm.hst.core.container.DefaultPageErrorHandler.logWarningsForEachComponentExceptions():49] Component exception found on org.hippoecm.hst.demo.components.FacetedDetail : javax.jcr.RepositoryException: org.hippoecm.hst.core.jcr.pool.NoAvailableSessionException: No session is available now. Probably the session pool was exhausted.

      Attachments

        Activity

          People

            svoortman Simon Voortman (Inactive)
            aschrijvers Ard Schrijvers
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: