jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Toth" <JT...@wrri.com>
Subject Error Reading Locks
Date Mon, 22 May 2006 20:20:51 GMT
Using 1.0 with DbFileSystem, SimpleDbPersistenceManager, on MSSQL.

I don't know what is exactly causing this error, but sometimes after a
session is closed, a record where FSENTRY_NAME='locks' in the
[workspace]_FSENTRY table persists.  The next time a session is open I
receive the following stack trace.  Should this 'locks' record be there?
If so, is there a bug in the data from the field 'FSENTRY_DATA'?

Any ideas?

Thanks


javax.jcr.RepositoryException: I/O error while reading locks from
'/locks': error while reading locks file: error while reading locks file

            at
org.apache.jackrabbit.core.lock.LockManagerImpl.<init>(LockManagerImpl.j
ava:124)

            at
org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.getLockManager(R
epositoryImpl.java:1456)

            at
org.apache.jackrabbit.core.RepositoryImpl.getLockManager(RepositoryImpl.
java:750)

            at
org.apache.jackrabbit.core.WorkspaceImpl.getLockManager(WorkspaceImpl.ja
va:320)

            at
org.apache.jackrabbit.core.XASessionImpl.getLockManager(XASessionImpl.ja
va:169)

            at
org.apache.jackrabbit.core.XASessionImpl.init(XASessionImpl.java:126)

            at
org.apache.jackrabbit.core.XASessionImpl.<init>(XASessionImpl.java:99)

            at
org.apache.jackrabbit.core.RepositoryImpl.createSessionInstance(Reposito
ryImpl.java:1202)

            at
org.apache.jackrabbit.core.RepositoryImpl.createSession(RepositoryImpl.j
ava:792)

            at
org.apache.jackrabbit.core.RepositoryImpl.login(RepositoryImpl.java:1090
)

            at
org.apache.jackrabbit.core.TransientRepository.login(TransientRepository
.java:334)

            at
org.apache.jackrabbit.core.TransientRepository.login(TransientRepository
.java:359)

            at
com.wrri.testing.jtoth.JackRabbit.main(JackRabbit.java:46)

Caused by: org.apache.jackrabbit.core.fs.FileSystemException: error
while reading locks file

            at
org.apache.jackrabbit.core.lock.LockManagerImpl.load(LockManagerImpl.jav
a:153)

            at
org.apache.jackrabbit.core.lock.LockManagerImpl.<init>(LockManagerImpl.j
ava:121)

            ... 12 more

Caused by: java.io.IOException: Underlying input stream returned zero
bytes

            at
sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:415)

            at
sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:453)

            at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:183)

            at
java.io.InputStreamReader.read(InputStreamReader.java:167)

            at java.io.BufferedReader.fill(BufferedReader.java:136)

            at java.io.BufferedReader.readLine(BufferedReader.java:299)

            at java.io.BufferedReader.readLine(BufferedReader.java:362)

            at
org.apache.jackrabbit.core.lock.LockManagerImpl.load(LockManagerImpl.jav
a:146)

            ... 13 more

org.apache.jackrabbit.core.fs.FileSystemException: error while reading
locks file

            at
org.apache.jackrabbit.core.lock.LockManagerImpl.load(LockManagerImpl.jav
a:153)

            at
org.apache.jackrabbit.core.lock.LockManagerImpl.<init>(LockManagerImpl.j
ava:121)

            at
org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.getLockManager(R
epositoryImpl.java:1456)

            at
org.apache.jackrabbit.core.RepositoryImpl.getLockManager(RepositoryImpl.
java:750)

            at
org.apache.jackrabbit.core.WorkspaceImpl.getLockManager(WorkspaceImpl.ja
va:320)

            at
org.apache.jackrabbit.core.XASessionImpl.getLockManager(XASessionImpl.ja
va:169)

            at
org.apache.jackrabbit.core.XASessionImpl.init(XASessionImpl.java:126)

            at
org.apache.jackrabbit.core.XASessionImpl.<init>(XASessionImpl.java:99)

            at
org.apache.jackrabbit.core.RepositoryImpl.createSessionInstance(Reposito
ryImpl.java:1202)

            at
org.apache.jackrabbit.core.RepositoryImpl.createSession(RepositoryImpl.j
ava:792)

            at
org.apache.jackrabbit.core.RepositoryImpl.login(RepositoryImpl.java:1090
)

            at
org.apache.jackrabbit.core.TransientRepository.login(TransientRepository
.java:334)

            at
org.apache.jackrabbit.core.TransientRepository.login(TransientRepository
.java:359)

            at
com.wrri.testing.jtoth.JackRabbit.main(JackRabbit.java:46)

Caused by: java.io.IOException: Underlying input stream returned zero
bytes

            at
sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:415)

            at
sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:453)

            at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:183)

            at
java.io.InputStreamReader.read(InputStreamReader.java:167)

            at java.io.BufferedReader.fill(BufferedReader.java:136)

            at java.io.BufferedReader.readLine(BufferedReader.java:299)

            at java.io.BufferedReader.readLine(BufferedReader.java:362)

            at
org.apache.jackrabbit.core.lock.LockManagerImpl.load(LockManagerImpl.jav
a:146)

            ... 13 more


Mime
View raw message