jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Todd Seiber <todd.sei...@gmail.com>
Subject Re: IndexWriter throwing an exception
Date Wed, 08 Jul 2009 12:07:08 GMT
I am using Lucene 2.3.2 for Jackrabbit core 1.5.3.

On Wed, Jul 8, 2009 at 5:16 AM, Marcel Reutegger
<marcel.reutegger@gmx.net>wrote:

> Hi,
>
> what version of jackrabbit and lucene are you using? please note that
> it is very important that you use the exact version of lucene as noted
> in the jackrabbit release.
>
> regards
>  marcel
>
> On Mon, Jul 6, 2009 at 21:41, Todd Seiber<todd.seiber@gmail.com> wrote:
> > 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>
> >
>



-- 
Todd Seiber
830 Fishing Creek Rd.
New Cumberland, PA 17070

h. 717-938-5778
c. 717-497-1742
e. todd.seiber@gmail.com

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