jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cheng Zhang <zhangyongji...@yahoo.com>
Subject java.lang.IllegalStateException: abort() can only be called when IndexWriter was opened with autoCommit=false
Date Wed, 21 Jan 2009 15:32:04 GMT
Hi,

My code runs fine at beginning. After a while, I got exception below. 

java.lang.IllegalStateException: abort() can only be called when IndexWriter was opened with
autoCommit=false
    at org.apache.lucene.index.IndexWriter.abort(IndexWriter.java:2009)
    at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:1175)
    at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:1154)
    at org.apache.jackrabbit.core.query.lucene.AbstractIndex.getIndexReader(AbstractIndex.java:243)
    at org.apache.jackrabbit.core.query.lucene.VolatileIndex.getIndexReader(VolatileIndex.java:130)
    at org.apache.jackrabbit.core.query.lucene.AbstractIndex.getReadOnlyIndexReader(AbstractIndex.java:265)
    at org.apache.jackrabbit.core.query.lucene.MultiIndex.getIndexReader(MultiIndex.java:721)
    at org.apache.jackrabbit.core.query.lucene.SearchIndex.getIndexReader(SearchIndex.java:859)
    at org.apache.jackrabbit.core.query.lucene.SearchIndex.executeQuery(SearchIndex.java:702)
    at org.apache.jackrabbit.core.query.lucene.QueryResultImpl.executeQuery(QueryResultImpl.java:242)
    at org.apache.jackrabbit.core.query.lucene.QueryResultImpl.getResults(QueryResultImpl.java:292)
    at org.apache.jackrabbit.core.query.lucene.QueryResultImpl.<init>(QueryResultImpl.java:191)
    at org.apache.jackrabbit.core.query.lucene.QueryImpl.execute(QueryImpl.java:130)
    at org.apache.jackrabbit.core.query.QueryImpl.execute(QueryImpl.java:177)
    at com.openandgreen.amazon.aws.AmazonJcrObject.getUnloadedObjectList(AmazonJcrObject.java:136)
    at com.openandgreen.amazon.aws.JcrItem.getUnloadedObjectList(JcrItem.java:28)
    at com.openandgreen.amazon.aws.ASINManager.process(ASINManager.java:23)
    at com.openandgreen.amazon.aws.AmazonObjectManager.run(AmazonObjectManager.java:41)
    at java.lang.Thread.run(Thread.java:619)

Any idea?

Thanks,
Kevin


Mime
View raw message