incubator-graffito-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christophe Lombart <christophe.lomb...@gmail.com>
Subject JCR Mapping
Date Thu, 04 Aug 2005 13:06:28 GMT
When I execute the jcr mapping unit test, it seems there are some
issues witht jcr locks, do you have the same errors ?

First unit test execution : 

    [junit] 3835 [Thread-4] INFO observation.ObservationManagerFactory
 - Notification of EventListeners stopped.
    [junit] 3835 [Thread-4] INFO lucene.SearchIndex  - Closing search index.
    [junit] 3835 [Thread-3] INFO observation.ObservationManagerFactory
 - Notification of EventListeners stopped.
    [junit] 3835 [Thread-3] INFO lucene.SearchIndex  - Closing search index.
    [junit] 3855 [Thread-0] INFO observation.ObservationManagerFactory
 - Notification of EventListeners stopped.
    [junit] 3855 [Thread-0] INFO lucene.SearchIndex  - Closing search index.
    [junit] 3865 [Thread-2] INFO observation.ObservationManagerFactory
 - Notification of EventListeners stopped.
    [junit] 3865 [Thread-2] INFO lucene.SearchIndex  - Closing search index.
    [junit] 3865 [Thread-5] INFO observation.ObservationManagerFactory
 - Notification of EventListeners stopped.
    [junit] 3865 [Thread-5] INFO lucene.SearchIndex  - Closing search index.
    [junit] 3865 [Thread-6] INFO observation.ObservationManagerFactory
 - Notification of EventListeners stopped.
    [junit] 3875 [Thread-6] INFO lucene.SearchIndex  - Closing search index.
    [junit] 3875 [Thread-1] INFO observation.ObservationManagerFactory
 - Notification of EventListeners stopped.
    [junit] 3875 [Thread-0] ERROR lucene.MultiIndex  - Exception while
closing search index.
    [junit] java.io.IOException: failed to delete
target\repository\workspaces\default\index\_0\_2q.cfs: Unable to
delete target\r
epository\workspaces\default\index\_0\_2q.cfs
    [junit]     at
org.apache.jackrabbit.core.query.lucene.FileSystemDirectory.<init>(FileSystemDirectory.java:114)
    [junit]     at
org.apache.jackrabbit.core.query.lucene.FileSystemDirectory.getDirectory(FileSystemDirectory.java:82)
    [junit]     at
org.apache.jackrabbit.core.query.lucene.PersistentIndex.<init>(PersistentIndex.java:73)
    [junit]     at
org.apache.jackrabbit.core.query.lucene.MultiIndex.commit(MultiIndex.java:365)
    [junit]     at
org.apache.jackrabbit.core.query.lucene.MultiIndex.close(MultiIndex.java:311)
    [junit]     at
org.apache.jackrabbit.core.query.lucene.SearchIndex.close(SearchIndex.java:235)
    [junit]     at
org.apache.jackrabbit.core.SearchManager.close(SearchManager.java:165)
    [junit]     at
org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.dispose(RepositoryImpl.java:1175)
    [junit]     at
org.apache.jackrabbit.core.RepositoryImpl.shutdown(RepositoryImpl.java:655)
    [junit]     at
org.apache.jackrabbit.core.RepositoryImpl$1.run(RepositoryImpl.java:220)
    [junit] 3885 [Thread-1] INFO lucene.SearchIndex  - Closing search index.
    [junit] 3935 [Thread-1] ERROR lucene.MultiIndex  - Exception while
closing search index.
    [junit] java.io.IOException: failed to delete
target\repository\workspaces\default\index\_1\segments.new: Unable to
delete tar
get\repository\workspaces\default\index\_1\segments.new
    [junit]     at
org.apache.jackrabbit.core.query.lucene.FileSystemDirectory.<init>(FileSystemDirectory.java:114)
    [junit]     at
org.apache.jackrabbit.core.query.lucene.FileSystemDirectory.getDirectory(FileSystemDirectory.java:82)
    [junit]     at
org.apache.jackrabbit.core.query.lucene.PersistentIndex.<init>(PersistentIndex.java:73)
    [junit]     at
org.apache.jackrabbit.core.query.lucene.MultiIndex.commit(MultiIndex.java:365)
    [junit]     at
org.apache.jackrabbit.core.query.lucene.MultiIndex.close(MultiIndex.java:311)
    [junit]     at
org.apache.jackrabbit.core.query.lucene.SearchIndex.close(SearchIndex.java:235)
    [junit]     at
org.apache.jackrabbit.core.SearchManager.close(SearchManager.java:165)
    [junit]     at
org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.dispose(RepositoryImpl.java:1175)
    [junit]     at
org.apache.jackrabbit.core.RepositoryImpl.shutdown(RepositoryImpl.java:655)
    [junit]     at
org.apache.jackrabbit.core.RepositoryImpl$1.run(RepositoryImpl.java:220)
    [junit] 3945 [Thread-2] ERROR lucene.FileSystemDirectory  - Unable
to release lock file Lock@commit.lock: org.apache.jackrabbi
t.core.fs.FileSystemException:
target\repository\workspaces\default\index\_1\commit.lock does not
denote an existing file

On a second run, the unit test fails with : 

    [junit] Tests run: 8, Failures: 0, Errors: 1, Time elapsed: 3,145 sec
    [junit] 2885 [Thread-2] INFO observation.ObservationManagerFactory
 - Notification of EventListeners stopped.
    [junit] 2885 [Thread-2] INFO lucene.SearchIndex  - Closing search index.
    [junit] 2895 [Thread-3] INFO observation.ObservationManagerFactory
 - Notification of EventListeners stopped.
    [junit] 2895 [Thread-3] INFO lucene.SearchIndex  - Closing search index.
    [junit] 2905 [Thread-1] INFO observation.ObservationManagerFactory
 - Notification of EventListeners stopped.
    [junit] 2905 [Thread-1] INFO lucene.SearchIndex  - Closing search index.
    [junit] 2905 [Thread-4] INFO observation.ObservationManagerFactory
 - Notification of EventListeners stopped.
    [junit] 2905 [Thread-4] INFO lucene.SearchIndex  - Closing search index.
    [junit] 2925 [Thread-5] INFO observation.ObservationManagerFactory
 - Notification of EventListeners stopped.
    [junit] 2925 [Thread-5] INFO lucene.SearchIndex  - Closing search index.
    [junit] 2925 [Thread-0] INFO observation.ObservationManagerFactory
 - Notification of EventListeners stopped.
    [junit] 2925 [Thread-0] INFO lucene.SearchIndex  - Closing search index.
    [junit] 2985 [Thread-0] ERROR lucene.MultiIndex  - Exception while
closing search index.
    [junit] java.io.IOException: Lock obtain timed out: Lock@write.lock
    [junit]     at org.apache.lucene.store.Lock.obtain(Lock.java:58)
    [junit]     at
org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:223)
    [junit]     at
org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:213)
    [junit]     at
org.apache.jackrabbit.core.query.lucene.AbstractIndex.getIndexWriter(AbstractIndex.java:147)
    [junit]     at
org.apache.jackrabbit.core.query.lucene.PersistentIndex.mergeIndex(PersistentIndex.java:122)
    [junit]     at
org.apache.jackrabbit.core.query.lucene.MultiIndex.commit(MultiIndex.java:376)
    [junit]     at
org.apache.jackrabbit.core.query.lucene.MultiIndex.close(MultiIndex.java:311)
    [junit]     at
org.apache.jackrabbit.core.query.lucene.SearchIndex.close(SearchIndex.java:235)
    [junit]     at
org.apache.jackrabbit.core.SearchManager.close(SearchManager.java:165)
    [junit]     at
org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.dispose(RepositoryImpl.java:1175)
    [junit]     at
org.apache.jackrabbit.core.RepositoryImpl.shutdown(RepositoryImpl.java:655)
    [junit]     at
org.apache.jackrabbit.core.RepositoryImpl$1.run(RepositoryImpl.java:220)
    [junit] 3055 [Thread-1] ERROR lucene.FileSystemDirectory  - Unable
to release lock file Lock@write.lock: org.apache.jackrabbit
.core.fs.FileSystemException:
target\repository\workspaces\default\index\_1\write.lock does not
denote an existing file
    [junit] [ERROR] TEST org.apache.portals.graffito.jcr.TestAll FAILED


Thanks, 
Christophe

Mime
View raw message