Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 15243 invoked from network); 27 May 2009 10:22:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 May 2009 10:22:55 -0000 Received: (qmail 54313 invoked by uid 500); 27 May 2009 10:23:08 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 54245 invoked by uid 500); 27 May 2009 10:23:07 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 54237 invoked by uid 99); 27 May 2009 10:23:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 May 2009 10:23:07 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 May 2009 10:23:05 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8FAEC234C004 for ; Wed, 27 May 2009 03:22:45 -0700 (PDT) Message-ID: <458898303.1243419765573.JavaMail.jira@brutus> Date: Wed, 27 May 2009 03:22:45 -0700 (PDT) From: "Thomas Mueller (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Resolved: (JCR-2106) SystemSessions created for GarbageCollector are not logged out of In-Reply-To: <1045163245.1241805105582.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-2106?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Mueller resolved JCR-2106. --------------------------------- Resolution: Fixed Thanks a lot for the patch! Committed in revision 779084 (trunk) > SystemSessions created for GarbageCollector are not logged out of > ----------------------------------------------------------------- > > Key: JCR-2106 > URL: https://issues.apache.org/jira/browse/JCR-2106 > Project: Jackrabbit Content Repository > Issue Type: Improvement > Components: jackrabbit-core > Affects Versions: 1.5.5 > Reporter: Peter Dettman > Assignee: Thomas Mueller > Priority: Minor > Attachments: JCR-2106-2nd.patch, JCR-2106-3rd.patch, JCR-2106.patch > > Original Estimate: 2h > Remaining Estimate: 2h > > I have a simple garbage collection task that runs periodically. After upgrading to 1.5.5 it started logging a warning shortly after each run: > 2009-05-09 03:44:45,480 WARN [org.apache.jackrabbit.core.SessionImpl] - > java.lang.Exception: Stack Trace > at org.apache.jackrabbit.core.SessionImpl.(SessionImpl.java:239) > at org.apache.jackrabbit.core.SystemSession.(SystemSession.java:76) > at org.apache.jackrabbit.core.SystemSession.create(SystemSession.java:64) > at org.apache.jackrabbit.core.SessionImpl.createDataStoreGarbageCollector(SessionImpl.java:649) > So it's not my session, but an internally created SystemSession. > Code I'm using: > getTemplate().execute(new JcrCallback() > { > public Object doInJcr(Session session) > throws IOException, RepositoryException { > SessionImpl sessionImpl = (SessionImpl)session; > GarbageCollector gc = sessionImpl.createDataStoreGarbageCollector(); > gc.scan(); > gc.stopScan(); > gc.deleteUnused(); > return null; > } > }, true); -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.