jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ard Schrijvers" <a.schrijv...@hippo.nl>
Subject RE: Exception while login
Date Thu, 27 Dec 2007 09:30:08 GMT
Hello,

> 
> I am using Jackrabbit repository through my RMI Server. I am 
> using following code to login
> 
> Repository repository = new
>       TransientRepository(repositoryFile,repositoryHome);
> 
> session = repository.login(new SimpleCredentials("username",
>                         "password".toCharArray()));
> 
> And for logout I use following code
> 
> session.logout();
> 
> I am getting following exception when my 2nd client tries 
> login, after first client has logged out successfully.

I guess you are also calling  'new
TransientRepository(repositoryFile,repositoryHome);' again with you 2nd
client isn't? Obviously, at that moment you already have a repository
instance. So, either shutdown the repository (which I do not think you
want) or do not try to create a new instance

-Ard

> 
> javax.jcr.RepositoryException: The repository home 
> C:\TCM\Repository\jackrabbit\TestPro\repository appears to be 
> in use since the file named .lock is already locked by the 
>  

Mime
View raw message