[ http://issues.apache.org/jira/browse/JCR-539?page=all ]
Marcel Reutegger resolved JCR-539.
----------------------------------
Fix Version/s: 1.1
Resolution: Fixed
Changed WorkspaceInfo.initialize() to first check the status of the
WorkspaceInfo within a read lock. This avoids the situation where
WorkspaceInfo.isInitialized() returns false while another thread is calling
WorkspaceInfo.initialize().
svn revision: 430373
> Concurrent Repository.login() throws IllegalStateException
> ----------------------------------------------------------
>
> Key: JCR-539
> URL: http://issues.apache.org/jira/browse/JCR-539
> Project: Jackrabbit
> Issue Type: Bug
> Components: core
> Affects Versions: 1.0.1
> Environment: svn: 430370
> Reporter: Marcel Reutegger
> Assigned To: Marcel Reutegger
> Fix For: 1.1
>
>
> See test case: org.apache.jackrabbit.test.core.ConcurrentLoginTest
> java.lang.IllegalStateException: workspace 'default' not initialized
> at
> org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.getItemStateProvider(RepositoryImpl.java:1448)
> at
> org.apache.jackrabbit.core.RepositoryImpl.getWorkspaceStateManager(RepositoryImpl.java:712)
> at org.apache.jackrabbit.core.SessionImpl.<init>(SessionImpl.java:247)
> at org.apache.jackrabbit.core.SessionImpl.<init>(SessionImpl.java:214)
> at
> org.apache.jackrabbit.core.XASessionImpl.<init>(XASessionImpl.java:98)
> at
> org.apache.jackrabbit.core.RepositoryImpl.createSessionInstance(RepositoryImpl.java:1233)
> at
> org.apache.jackrabbit.core.RepositoryImpl.createSession(RepositoryImpl.java:800)
> at
> org.apache.jackrabbit.core.RepositoryImpl.login(RepositoryImpl.java:1119)
> at
> org.apache.jackrabbit.core.RepositoryImpl.login(RepositoryImpl.java:1146)
> at
> org.apache.jackrabbit.core.jndi.BindableRepository.login(BindableRepository.java:181)
> at
> org.apache.jackrabbit.core.ConcurrentLoginTest$1.run(ConcurrentLoginTest.java:56)
> at java.lang.Thread.run(Thread.java:534)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira