jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Foo Bar" <mittspamko...@gmail.com>
Subject dangling connections on JBoss
Date Sat, 13 Oct 2007 01:22:48 GMT

I'm using JBoss 4.2.1GA and jackrabbit 1.3.1, with JCA connector
1.3.1. My config is as follows:

		<config-property name="homeDir"
		<config-property name="configFile"
		<config-property name="bindSessionToTransaction"

My first issue was that I was experiencing the two-sessions per
transaction deadlock, for no apparent reason (used one transaction and
one session). This made me to use REQUIRES_NEW transaction attributes
on all jackrabbit save operations, which surprisingly helped getting
rid of the deadlock. Anyway, now that I've done that, it still seems
like jackrabbit is not really logging out sessions, since I run out of
transaction connections after exactly 20 fetches (reproducable):

java.lang.RuntimeException: Error initializing JCR
access:javax.jcr.RepositoryException: No ManagedConnections available
within configured blocking timeout ( 30000 [ms] ): No
ManagedConnections available within configured blocking timeout (
30000 [ms] )

I also get some warnings before this happens:

[org.jboss.resource.connectionmanager.CachedConnectionManager] Could
not find a close method on alleged connection objects.  Please close
your own connections.

I have an alternative storage implementation using java.io, and I have
no such problems when I switch to that solution, so I beleive that the
problem is from within jackrabbit.

My theory is that the sessions never get commited. The first
workaround with the double sessions convinced me, since I was calling
different session beans from a server, with no more than one jcr
session in each method call. The fact that the multiple session bug
was visible in this situation should indicate that the session must
survive the transaction and still be attached to the current thread
even after the transaction has ended.

This theory also seems logical with respect to the fact that
everything started to work after REQUIRES_NEW, but that I ran out of

Is there anything that I have missed to do in order to be sure that
sessions get closed at the end of each transaction? Do I need to do a
session logout programmatically? Does anyone have any suggestion as to
what I should do to make this work? Any help is greatly appriciated.

I've searched the mailing list, and found a couple of similar issues,
with no answers:

Best Regards

/Alexander T

View raw message