jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eugeny N Dzhurinsky <b...@redwerk.com>
Subject Re: session.save takes about 20 minutes
Date Mon, 08 May 2006 14:17:03 GMT
On Fri, May 05, 2006 at 01:43:41PM +0200, Stefan Guggisberg wrote:
> don't use XMLPersistenceManager; you should use jr's default configuration
> (i.e. DerbyPersistenceManager) instead.

okay, i configured repository like this:


<?xml version="1.0"?>
<Repository>
    <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
        <param name="path" value="${rep.home}/repository" />
    </FileSystem>

    <Security appName="Jackrabbit">
        <AccessManager class="cms.security.LuceneAccessManagerImpl">
            <param name="file" value="suxx" />

            <param name="test" value="suxx2" />
        </AccessManager>

        <LoginModule class="cms.auth.EasyLoginModule" />
    </Security>

    <Workspaces rootPath="${rep.home}/workspaces" defaultWorkspace="default" />

    <Workspace name="${wsp.name}">
        <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
            <param name="path" value="${wsp.home}" />
        </FileSystem>

        <PersistenceManager
        class="org.apache.jackrabbit.core.state.db.DerbyPersistenceManager">
            <param name="url" value="jdbc:derby:${wsp.home}/db;create=true" />

            <param name="schemaObjectPrefix" value="${wsp.name}_" />
        </PersistenceManager>
        <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
            <param name="path" value="${wsp.home}/index" />
        </SearchIndex>
    </Workspace>

    <Versioning rootPath="${rep.home}/versions">
        <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
            <param name="path" value="${rep.home}/versions" />
        </FileSystem>
        <PersistenceManager
        class="org.apache.jackrabbit.core.state.db.DerbyPersistenceManager">
            <param name="url" value="jdbc:derby:${rep.home}/version/db;create=true" />
            <param name="schemaObjectPrefix" value="version_" />
        </PersistenceManager>
    </Versioning>
</Repository>


And sometimes it throws an exception:
 [java] ERROR 08/11/06 05:11:55 [main] (ObservationManagerFactory:220) - Synchronous EventConsumer
threw exception.
     [java] java.lang.ClassCastException: org.apache.lucene.store.FSIndexOutput
     [java]     at org.apache.lucene.store.Directory.createFile(Directory.java:67)
     [java]     at org.apache.jackrabbit.core.query.lucene.FSDirectory.createFile(FSDirectory.java:160)
     [java]     at org.apache.lucene.store.Directory.createOutput(Directory.java:75)
     [java]     at org.apache.lucene.index.SegmentInfos.write(SegmentInfos.java:78)
     [java]     at org.apache.lucene.index.IndexWriter$1.doBody(IndexWriter.java:263)
     [java]     at org.apache.lucene.store.Lock$With.run(Lock.java:109)
     [java]     at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:260)
     [java]     at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:245)
     [java]     at org.apache.jackrabbit.core.query.lucene.AbstractIndex.<init>(AbstractIndex.java:104)
     [java]     at org.apache.jackrabbit.core.query.lucene.PersistentIndex.<init>(PersistentIndex.java:74)
     [java]     at org.apache.jackrabbit.core.query.lucene.MultiIndex.getOrCreateIndex(MultiIndex.java:477)
     [java]     at org.apache.jackrabbit.core.query.lucene.MultiIndex$CreateIndex.execute(MultiIndex.java:1419)
     [java]     at org.apache.jackrabbit.core.query.lucene.MultiIndex.executeAndLog(MultiIndex.java:763)
     [java]     at org.apache.jackrabbit.core.query.lucene.MultiIndex.commitVolatileIndex(MultiIndex.java:804)
     [java]     at org.apache.jackrabbit.core.query.lucene.MultiIndex.checkVolatileCommit(MultiIndex.java:782)
     [java]     at org.apache.jackrabbit.core.query.lucene.MultiIndex.update(MultiIndex.java:317)
     [java]     at org.apache.jackrabbit.core.query.lucene.SearchIndex.updateNodes(SearchIndex.java:279)
     [java]     at org.apache.jackrabbit.core.SearchManager.onEvent(SearchManager.java:476)
     [java]     at org.apache.jackrabbit.core.observation.EventConsumer.consumeEvents(EventConsumer.java:230)
     [java]     at org.apache.jackrabbit.core.observation.ObservationManagerFactory.dispatchEvents(ObservationManagerFactory.java:218)
     [java]     at org.apache.jackrabbit.core.observation.EventStateCollection.dispatch(EventStateCollection.java:430)
     [java]     at org.apache.jackrabbit.core.state.SharedItemStateManager$Update.end(SharedItemStateManager.java:602)
     [java]     at org.apache.jackrabbit.core.state.SharedItemStateManager.update(SharedItemStateManager.java:692)
     [java]     at org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:315)
     [java]     at org.apache.jackrabbit.core.state.LocalItemStateManager.update(LocalItemStateManager.java:291)
     [java]     at org.apache.jackrabbit.core.state.SessionItemStateManager.update(SessionItemStateManager.java:257)
     [java]     at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:1189)
     [java]     at org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:805)
     [java]     at tests.UserFileParsing.fileParsing(UserFileParsing.java:161)
     [java]     at tests.UserFileParsing.main(UserFileParsing.java:295)


and

 DEBUG 08/16/06 05:16:19 [main] (UserFileParsing:157) - 0%
     [java] Exception in thread "Timer-1" java.lang.ClassCastException: org.apache.lucene.store.FSIndexOutput
     [java]     at org.apache.lucene.store.Directory.createFile(Directory.java:67)
     [java]     at org.apache.jackrabbit.core.query.lucene.FSDirectory.createFile(FSDirectory.java:160)
     [java]     at org.apache.lucene.store.Directory.createOutput(Directory.java:75)
     [java]     at org.apache.lucene.index.SegmentInfos.write(SegmentInfos.java:78)
     [java]     at org.apache.lucene.index.IndexWriter$1.doBody(IndexWriter.java:263)
     [java]     at org.apache.lucene.store.Lock$With.run(Lock.java:109)
     [java]     at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:260)
     [java]     at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:245)
     [java]     at org.apache.jackrabbit.core.query.lucene.AbstractIndex.<init>(AbstractIndex.java:104)
     [java]     at org.apache.jackrabbit.core.query.lucene.PersistentIndex.<init>(PersistentIndex.java:74)
     [java]     at org.apache.jackrabbit.core.query.lucene.MultiIndex.getOrCreateIndex(MultiIndex.java:477)
     [java]     at org.apache.jackrabbit.core.query.lucene.MultiIndex$CreateIndex.execute(MultiIndex.java:1419)
     [java]     at org.apache.jackrabbit.core.query.lucene.MultiIndex.executeAndLog(MultiIndex.java:763)
     [java]     at org.apache.jackrabbit.core.query.lucene.MultiIndex.commitVolatileIndex(MultiIndex.java:804)
     [java]     at org.apache.jackrabbit.core.query.lucene.MultiIndex.flush(MultiIndex.java:683)
     [java]     at org.apache.jackrabbit.core.query.lucene.MultiIndex.checkFlush(MultiIndex.java:929)
     [java]     at org.apache.jackrabbit.core.query.lucene.MultiIndex.access$000(MultiIndex.java:72)
     [java]     at org.apache.jackrabbit.core.query.lucene.MultiIndex$1.run(MultiIndex.java:283)
     [java]     at java.util.TimerThread.mainLoop(Timer.java:512)
     [java]     at java.util.TimerThread.run(Timer.java:462)


I'm using Lucene 1.9

Any ideas what's wrong there?

-- 
Eugene N Dzhurinsky

Mime
View raw message