SourceForge.net Logo
Main Overview Wiki Issues Forum Build Fisheye
Issue Details (XML | Word | Printable)

Key: CMP-444
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Shay Banon
Reporter: Matt Stine
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Compass

Index failure using SpringHibernate3GpsDevice.performIndex()

Created: 14/Aug/07 12:00 PM   Updated: 14/Aug/07 12:02 PM
Component/s: Compass::Gps, Compass::Spring
Affects Version/s: 1.1.1
Fix Version/s: None

Environment: Mac OS X 10.4.10 Intel, Java 1.4.2_12-269, MySQL 5.0.45-osx10.4-i686


 Description  « Hide
When I attempt to index my database in my Mac environment, I get the following, which does not occur when using Windows XP:

[trakit] ERROR [Compass Gps Index] SpringHibernate3GpsDevice.performIndex(105) | {hibernateDevice}: Failed to index the database
org.compass.core.engine.SearchEngineException: Failed to create resource {publication} [stored/uncompressed,indexed<alias:publication>],[stored/uncompressed,indexed<$/publication/id:3930>],[stored/uncompressed,indexed,tokenized<title:A 'smart needle' to facilitate difficult vascular access in pediatric patients>],[stored/uncompressed,indexed,tokenized<authors:Lobe TE;Schropp KP;Rogers DA;Rao BN;>],[stored/uncompressed,indexed,tokenized<publicationType:JOUR>],[stored/uncompressed,indexed,tokenized<volume:28>],[stored/uncompressed,indexed,tokenized<startPage:1401>],[stored/uncompressed,indexed,tokenized<start:1401>],[stored/uncompressed,indexed,tokenized<endPage:1402>],[stored/uncompressed,indexed,tokenized<end:1402>],[stored/uncompressed,indexed,tokenized<publicationDate:1993-01-01-00-00-00-0-AM>],[stored/uncompressed,indexed,tokenized<date:1993-01-01-00-00-00-0-AM>],[stored/uncompressed,indexed,tokenized<publicationYear:1993>],[stored/uncompressed,indexed,tokenized<year:1993>],[stored/uncompressed,indexed,tokenized<curated:true>],[stored/uncompressed,indexed<$/publication/journal/id:255>],[stored/uncompressed,indexed,tokenized<name:J Pediatr Surg >],[stored/uncompressed,indexed,tokenized<journal:J Pediatr Surg >],[stored/uncompressed,indexed,tokenized<type:journal>],[stored/uncompressed,indexed,tokenized<type:publication>],[stored/uncompressed,indexed<$/publication/users/id:124>],[stored/uncompressed,indexed,tokenized<firstName:Bhaskar>],[stored/uncompressed,indexed,tokenized<pi:Bhaskar>],[stored/uncompressed<$/publication/users/firstName:Bhaskar>],[stored/uncompressed,indexed,tokenized<lastName:Rao>],[stored/uncompressed,indexed,tokenized<pi:Rao>],[stored/uncompressed<$/publication/users/lastName:Rao>],[stored/uncompressed,indexed,tokenized<type:user>],[stored/uncompressed,indexed<$/publication/users/colSize:1>],[stored/uncompressed,indexed<$/publication/departments/id:23>],[stored/uncompressed,indexed,tokenized<name:Surgery>],[stored/uncompressed,indexed,tokenized<department:Surgery>],[stored/uncompressed,indexed,tokenized<type:department>],[stored/uncompressed,indexed<$/publication/departments/colSize:1>],[stored/uncompressed,indexed<$/publication/multidisciplinaryPrograms/colSize:0>],[indexed,tokenized<all:alias,title,authors,publicationType,volume,startPage,start,endPage,end,publicationDate,date,publicationYear,year,curated,name,journal,type,type,firstName,pi,lastName,pi,type,name,department,type>]; nested exception is java.io.IOException: Cannot overwrite: /Users/mstine/Temp/trakit/compass/gpsindex/publication/deleteable.new
java.io.IOException: Cannot overwrite: /Users/mstine/Temp/trakit/compass/gpsindex/publication/deleteable.new
at org.apache.lucene.store.FSDirectory.createOutput(FSDirectory.java:322)
at org.apache.lucene.index.IndexWriter.writeDeleteableFiles(IndexWriter.java:819)
at org.apache.lucene.index.IndexWriter.deleteSegments(IndexWriter.java:771)
at org.apache.lucene.index.IndexWriter.mergeSegments(IndexWriter.java:732)
at org.apache.lucene.index.IndexWriter.mergeSegments(IndexWriter.java:686)
at org.apache.lucene.index.IndexWriter.maybeMergeSegments(IndexWriter.java:674)
at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:479)
at org.compass.core.lucene.util.LuceneUtils.createResource(LuceneUtils.java:70)
at org.compass.core.lucene.engine.transaction.BatchInsertTransaction.doCreate(BatchInsertTransaction.java:208)
at org.compass.core.lucene.engine.transaction.AbstractTransaction.create(AbstractTransaction.java:109)
at org.compass.core.lucene.engine.LuceneSearchEngine.create(LuceneSearchEngine.java:330)
at org.compass.core.impl.DefaultCompassSession.create(DefaultCompassSession.java:288)
at org.compass.gps.device.hibernate.AbstractHibernateGpsDevice$HibernateIndexEntitiesIndexer.performIndex(AbstractHibernateGpsDevice.java:97)
at org.compass.gps.device.support.parallel.ConcurrentParallelIndexExecutor$1$1.doInCompassWithoutResult(ConcurrentParallelIndexExecutor.java:98)
at org.compass.core.CompassCallbackWithoutResult.doInCompass(CompassCallbackWithoutResult.java:29)
at org.compass.core.CompassTemplate.execute(CompassTemplate.java:134)
at org.compass.gps.impl.SingleCompassGps.executeForIndex(SingleCompassGps.java:156)
at org.compass.gps.device.support.parallel.ConcurrentParallelIndexExecutor$1.call(ConcurrentParallelIndexExecutor.java:96)
at org.compass.core.util.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176)
at org.compass.core.util.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
at org.compass.core.util.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
at java.lang.Thread.run(Thread.java:552)
[trakit] ERROR [Compass Gps Index] SpringSyncTransaction.afterCompletion(237) | Exception occured when sync with transaction
org.compass.core.engine.SearchEngineException: Failed to optimize index writer for sub-index [publication]; nested exception is java.io.IOException: read past EOF
java.io.IOException: read past EOF
at org.apache.lucene.store.BufferedIndexInput.refill(BufferedIndexInput.java:60)
at org.apache.lucene.store.BufferedIndexInput.readByte(BufferedIndexInput.java:33)
at org.apache.lucene.store.IndexInput.readInt(IndexInput.java:46)
at org.apache.lucene.index.IndexWriter.readDeleteableFiles(IndexWriter.java:810)
at org.apache.lucene.index.IndexWriter.deleteSegments(IndexWriter.java:761)
at org.apache.lucene.index.IndexWriter.mergeSegments(IndexWriter.java:732)
at org.apache.lucene.index.IndexWriter.mergeSegments(IndexWriter.java:686)
at org.apache.lucene.index.IndexWriter.optimize(IndexWriter.java:543)
at org.compass.core.lucene.engine.transaction.BatchInsertTransaction$WriterManager.optimizeIndexWriter(BatchInsertTransaction.java:123)
at org.compass.core.lucene.engine.transaction.BatchInsertTransaction$WriterManager.closeIndexWriters(BatchInsertTransaction.java:137)
at org.compass.core.lucene.engine.transaction.BatchInsertTransaction.doRollback(BatchInsertTransaction.java:172)
at org.compass.core.lucene.engine.transaction.AbstractTransaction.rollback(AbstractTransaction.java:72)
at org.compass.core.lucene.engine.LuceneSearchEngine.rollback(LuceneSearchEngine.java:257)
at org.compass.spring.transaction.SpringSyncTransaction$SpringTransactionSynchronization.afterCompletion(SpringSyncTransaction.java:234)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.invokeAfterCompletion(AbstractPlatformTransactionManager.java:768)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.triggerAfterCompletion(AbstractPlatformTransactionManager.java:740)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.processRollback(AbstractPlatformTransactionManager.java:651)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.rollback(AbstractPlatformTransactionManager.java:599)
at org.compass.spring.transaction.SpringSyncTransaction.doRollback(SpringSyncTransaction.java:154)
at org.compass.core.transaction.AbstractTransaction.rollback(AbstractTransaction.java:46)
at org.compass.core.CompassTemplate.execute(CompassTemplate.java:140)
at org.compass.gps.impl.SingleCompassGps.executeForIndex(SingleCompassGps.java:156)
at org.compass.gps.device.support.parallel.ConcurrentParallelIndexExecutor$1.call(ConcurrentParallelIndexExecutor.java:96)
at org.compass.core.util.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176)
at org.compass.core.util.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
at org.compass.core.util.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
at java.lang.Thread.run(Thread.java:552)



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Matt Stine added a comment - 14/Aug/07 12:02 PM
I had set the affects version to 1.1.1 but for some reason it didn't take. Sorry about that.