jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Todd Seiber <todd.sei...@gmail.com>
Subject IndexWriter throwing an exception
Date Mon, 06 Jul 2009 19:41:50 GMT
After running my application for several days I am getting this exception:
javax.jcr.RepositoryException: failed to instantiate AccessManager
implementation:
org.apache.jackrabbit.core.security.simple.SimpleAccessManager: abort() can
only be called when IndexWriter was opened with autoCommit=false: abort()
can only be called when IndexWriter was opened with autoCommit=false
        at
org.apache.jackrabbit.core.security.simple.SimpleSecurityManager.getAccessManager(SimpleSecurityManager.java:194)
        at
org.apache.jackrabbit.core.SessionImpl.createAccessManager(SessionImpl.java:362)
        at
org.apache.jackrabbit.core.SessionImpl.<init>(SessionImpl.java:280)
        at
org.apache.jackrabbit.core.SessionImpl.<init>(SessionImpl.java:249)
        at
org.apache.jackrabbit.core.XASessionImpl.<init>(XASessionImpl.java:98)
        at
org.apache.jackrabbit.core.RepositoryImpl.createSessionInstance(RepositoryImpl.java:1494)
        at
org.apache.jackrabbit.core.RepositoryImpl.createSession(RepositoryImpl.java:981)


What in my repository configuration is causing Lucene autoCommit to true?

 repsotiry.xml
===========================

<Repository>
    <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
        <param name="driver" value="com.mysql.jdbc.Driver"/>
        <param name="url" value="jdbc:mysql://127.0.0.1:3306/myka"/>
        <param name="user" value="<username>"/>
        <param name="password" value="<password>"/>
        <param name="schema" value="mysql"/>
        <param name="schemaObjectPrefix" value="fs_"/>
    </FileSystem>
    <Security appName="Jackrabbit">
        <AccessManager class="com.gotomyka.myka.base.core.KaAccessManager"/>
        <LoginModule class="com.gotomyka.myka.base.core.KaLoginModule">
        </LoginModule>
    </Security>
    <Workspaces rootPath="${rep.home}/workspaces" defaultWorkspace="default"
/>
    <Workspace name="${wsp.name}">
        <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
            <param name="driver" value="com.mysql.jdbc.Driver"/>
            <param name="url" value="jdbc:mysql://127.0.0.1:3306/myka"/>
            <param name="user" value="<username>"/>
            <param name="password" value="<password>"/>
            <param name="schema" value="mysql"/>
            <param name="schemaObjectPrefix" value="rep_"/>
        </FileSystem>
        <PersistenceManager
class="org.apache.jackrabbit.core.persistence.bundle.MySqlPersistenceManager">
            <param name="bundleCacheSize" value="8"/>
            <param name="consistencyCheck" value="false"/>
            <param name="consistencyFix" value="true"/>
            <param name="minBlobSize" value="16384"/>
            <param name="driver" value="com.mysql.jdbc.Driver"/>
            <param name="url" value="jdbc:mysql://127.0.0.1:3306/myka"/>
            <param name="user" value="<username>"/>
            <param name="password" value="<password>"/>
            <param name="schema" value="mysql"/>
            <param name="schemaObjectPrefix" value="rep_pm_"/>
            <param name="errorHandling" value=""/>
            <param name="externalBLOBs" value="false"/>
        </PersistenceManager>
        <SearchIndex
class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
            <param name="path" value="${wsp.home}/index"/>
            <param name="textFilterClasses" value="" />
            <param name="forceConsistencyCheck" value="false"/>
            <param name="enableConsistencyCheck" value="false"/>
            <param name="autoRepair" value="true"/>
        </SearchIndex>
    </Workspace>
    <Versioning rootPath="${rep.home}/versions">
        <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
            <param name="driver" value="com.mysql.jdbc.Driver"/>
            <param name="url" value="jdbc:mysql://127.0.0.1:3306/myka"/>
            <param name="user" value="<username>"/>
            <param name="password" value="<password>"/>
            <param name="schema" value="mysql"/>
            <param name="schemaObjectPrefix" value="ver_"/>
        </FileSystem>
        <PersistenceManager
class="org.apache.jackrabbit.core.persistence.bundle.MySqlPersistenceManager">
            <param name="bundleCacheSize" value="8"/>
            <param name="consistencyCheck" value="false"/>
            <param name="minBlobSize" value="16384"/>
            <param name="driver" value="com.mysql.jdbc.Driver"/>
            <param name="url" value="jdbc:mysql://127.0.0.1:3306/myka"/>
            <param name="user" value="<username>"/>
            <param name="password" value="<password>"/>
            <param name="schema" value="mysql"/>
            <param name="schemaObjectPrefix" value="ver_pm_"/>
            <param name="errorHandling" value=""/>
            <param name="externalBLOBs" value="false"/>
        </PersistenceManager>
    </Versioning>
    <DataStore class="org.apache.jackrabbit.core.data.FileDataStore">
        <param name="path" value="${rep.home}/repository/datastore"/>
        <param name="minRecordLength" value="100"/>
    </DataStore>

</Repository>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message