I guess you are trying to remove or requesting to remove null referenced object.
Manish B. Joshi
(Adserving Team)



On Tue, May 5, 2009 at 1:58 PM, Enrico Goosen <EGoosen2@metropolitan.co.za> wrote:

Hi,

Im new to Lucene, and Im getting an exception while trying to do a manual indexing operation on one of my entities.

It works fine for the Product entity, but fails for the ProductInfo entity (see attached).

Versions:

hibernate-search 3.0.1.GA

Lucene 2.3

10:26:57,167 ERROR [IndexerBean] Exception during indexing operation.

org.hibernate.search.SearchException: Unable to remove from Lucene index: class za.co.mymed.model.Product#null

at org.hibernate.search.backend.impl.lucene.LuceneWorker.remove(LuceneWorker.java:109)

at org.hibernate.search.backend.impl.lucene.LuceneWorker.performWork(LuceneWorker.java:80)

at org.hibernate.search.backend.impl.lucene.LuceneWorker.performWork(LuceneWorker.java:46)

at org.hibernate.search.backend.impl.lucene.LuceneBackendQueueProcessor.run(LuceneBackendQueueProcessor.java:98)

at org.hibernate.search.backend.impl.BatchedQueueingProcessor.performWorks(BatchedQueueingProcessor.java:149)

at org.hibernate.search.backend.impl.TransactionalWorker.performWork(TransactionalWorker.java:45)

at org.hibernate.search.impl.FullTextSessionImpl.index(FullTextSessionImpl.java:140)

at za.co.mymed.action.IndexerBean.indexAllClasses(IndexerBean.java:93)

at za.co.mymed.action.IndexerBean.index(IndexerBean.java:63)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)

at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)

at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)

at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)

at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)

at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)

at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77)

at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)

at org.jboss.seam.bpm.BusinessProcessInterceptor.aroundInvoke(BusinessProcessInterceptor.java:51)

at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)

at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)

at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)

at org.jboss.seam.async.AsynchronousInterceptor.aroundInvoke(AsynchronousInterceptor.java:52)

at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)

at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)

at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)

at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102)

at za.co.mymed.action.IndexerBean_$$_javassist_5.index(IndexerBean_$$_javassist_5.java)

at za.co.mymed.action.IndexerBean.startProcess(IndexerBean.java:48)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)

at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)

at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)

at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)

at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)

at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)

at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77)

at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)

at org.jboss.seam.bpm.BusinessProcessInterceptor.aroundInvoke(BusinessProcessInterceptor.java:51)

at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)

at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)

at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)

at org.jboss.seam.async.AsynchronousInterceptor.aroundInvoke(AsynchronousInterceptor.java:52)

at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)

at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)

at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)

at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102)

at za.co.mymed.action.IndexerBean_$$_javassist_5.startProcess(IndexerBean_$$_javassist_5.java)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)

at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)

at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:126)

at org.jboss.seam.async.AsynchronousInvocation$1.process(AsynchronousInvocation.java:62)

at org.jboss.seam.async.Asynchronous$ContextualAsynchronousRequest.run(Asynchronous.java:80)

at org.jboss.seam.async.AsynchronousInvocation.execute(AsynchronousInvocation.java:44)

at org.jboss.seam.async.QuartzDispatcher$QuartzJob.execute(QuartzDispatcher.java:243)

at org.quartz.core.JobRunShell.run(JobRunShell.java:203)

at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)

Caused by: java.lang.NullPointerException

at org.apache.lucene.index.Term.compareTo(Term.java:92)

at org.apache.lucene.index.TermInfosReader.getIndexOffset(TermInfosReader.java:181)

at org.apache.lucene.index.TermInfosReader.get(TermInfosReader.java:216)

at org.apache.lucene.index.SegmentTermDocs.seek(SegmentTermDocs.java:54)

at org.apache.lucene.index.MultiSegmentReader$MultiTermDocs.termDocs(MultiSegmentReader.java:604)

at org.apache.lucene.index.MultiSegmentReader$MultiTermDocs.next(MultiSegmentReader.java:555)

at org.hibernate.search.backend.impl.lucene.LuceneWorker.remove(LuceneWorker.java:99)

... 63 more

Please help

cid:image001.gif@01C99DC9.CAAC8120

Enrico Goosen
Software Developer
Employee Benefits Information Systems (EBIS)
Tel: 0219406231
Physical Address: Parc Du Cap, Building 6, Mispel Street, Bellville 7530
Postal Address: P O Box 2212 Bellville, 7535

Understanding Business, Serving Metropolitan

This message is subject to Metropolitans disclaimer pertaining to electronic communications. To view the disclaimer please visit http://www.metropolitan.co.za/disclaimer.asp



---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org