AnsweredAssumed Answered

Index errors with simpleexample

Question asked by btorfs on Jan 25, 2007
Latest reply on Jan 25, 2007 by btorfs
Hi, I got the following error:

16:15:56,659 ERROR [transform.magick.AbstractImageMagickContentTransformer] ImageMagickContentTransformer not available: Failed to execute command: imconvert "C:\DOCUME~1\btorfs\LOCALS~1\Temp\Alfresco\ImageMagickContentTransformer_init_source_56810.gif"  "C:\DOCUME~1\btorfs\LOCALS~1\Temp\Alfresco\ImageMagickContentTransformer_init_target_56811.png"
16:16:01,206 ERROR [lucene.index.IndexInfo] java.lang.ArrayIndexOutOfBoundsException: -1
16:16:01,425 ERROR [util.transaction.SpringAwareUserTransaction] Transaction didn't commit
java.lang.ArrayIndexOutOfBoundsException: -1
   at java.util.ArrayList.get(Unknown Source)
   at org.apache.lucene.index.FieldInfos.fieldInfo(FieldInfos.java:155)
   at org.apache.lucene.index.FieldInfos.fieldName(FieldInfos.java:151)
   at org.apache.lucene.index.SegmentTermEnum.readTerm(SegmentTermEnum.java:149)
   at org.apache.lucene.index.SegmentTermEnum.next(SegmentTermEnum.java:115)
   at org.apache.lucene.index.TermInfosReader.readIndex(TermInfosReader.java:103)
   at org.apache.lucene.index.TermInfosReader.<init>(TermInfosReader.java:50)
   at org.apache.lucene.index.SegmentReader.initialize(SegmentReader.java:112)
   at org.apache.lucene.index.SegmentReader.<init>(SegmentReader.java:89)
   at org.apache.lucene.index.IndexReader$1.doBody(IndexReader.java:118)
   at org.apache.lucene.store.Lock$With.run(Lock.java:109)
   at org.apache.lucene.index.IndexReader.open(IndexReader.java:111)
   at org.apache.lucene.index.IndexReader.open(IndexReader.java:101)
   at org.alfresco.repo.search.impl.lucene.index.IndexInfo.getReferenceCountingIndexReader(IndexInfo.java:1400)
   at org.alfresco.repo.search.impl.lucene.index.IndexInfo.createMainIndexReader(IndexInfo.java:1364)
   at org.alfresco.repo.search.impl.lucene.index.IndexInfo.getMainIndexReferenceCountingReadOnlyIndexReader(IndexInfo.java:748)
   at org.alfresco.repo.search.impl.lucene.LuceneBase2.getReader(LuceneBase2.java:256)
   at org.alfresco.repo.search.impl.lucene.LuceneIndexerImpl2.flushPending(LuceneIndexerImpl2.java:911)
   at org.alfresco.repo.search.impl.lucene.LuceneIndexerImpl2.prepare(LuceneIndexerImpl2.java:723)
   at org.alfresco.repo.search.impl.lucene.LuceneIndexerAndSearcherFactory2.prepare(LuceneIndexerAndSearcherFactory2.java:705)
   at org.alfresco.repo.transaction.AlfrescoTransactionSupport$TransactionSynchronizationImpl.beforeCommit(AlfrescoTransactionSupport.java:593)
   at org.springframework.transaction.support.AbstractPlatformTransactionManager.triggerBeforeCommit(AbstractPlatformTransactionManager.java:657)
   at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:482)
   at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:469)
   at org.springframework.transaction.interceptor.TransactionAspectSupport.doCommitTransactionAfterReturning(TransactionAspectSupport.java:266)
   at org.alfresco.util.transaction.SpringAwareUserTransaction.commit(SpringAwareUserTransaction.java:397)
   at org.alfresco.repo.transaction.TransactionUtil.executeInTransaction(TransactionUtil.java:178)
   at org.alfresco.repo.transaction.TransactionUtil.executeInUserTransaction(TransactionUtil.java:74)
   at org.alfresco.repo.descriptor.DescriptorServiceImpl.onBootstrap(DescriptorServiceImpl.java:174)
   at org.alfresco.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:54)
   at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:45)
   at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:225)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:323)
   at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:87)
   at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:72)
   at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:63)
   at org.alfresco.sample.jcr.SimpleExample.main(SimpleExample.java:46)
Exception in thread "main" org.alfresco.error.AlfrescoRuntimeException: Unexpected rollback of exception:
Transaction didn't commit: -1
   at org.alfresco.repo.transaction.TransactionUtil.executeInTransaction(TransactionUtil.java:184)
   at org.alfresco.repo.transaction.TransactionUtil.executeInUserTransaction(TransactionUtil.java:74)
   at org.alfresco.repo.descriptor.DescriptorServiceImpl.onBootstrap(DescriptorServiceImpl.java:174)
   at org.alfresco.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:54)
   at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:45)
   at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:225)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:323)
   at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:87)
   at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:72)
   at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:63)
   at org.alfresco.sample.jcr.SimpleExample.main(SimpleExample.java:46)
Caused by: javax.transaction.RollbackException: Transaction didn't commit: -1
   at org.alfresco.util.transaction.SpringAwareUserTransaction.commit(SpringAwareUserTransaction.java:404)
   at org.alfresco.repo.transaction.TransactionUtil.executeInTransaction(TransactionUtil.java:178)
   … 10 more
Does this mean the simpleexample cannot see my existing indexes?

Outcomes