It depends on what version of Jackrabbit you are using - I had errors like this in the past and the solution was a fix on the CVS. Make sure you get the latest version and in case the error keeps poping up take the issue with Jackrabbit.
In most cases, the problem comes from the fact that the jcr session you are using is closed.


