-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: NRTWorkspaceImpl - NullPointerException - oldReader is null
PostPosted: Thu Dec 22, 2011 3:28 am 
Newbie

Joined: Mon Dec 19, 2011 5:44 am
Posts: 3
Hi Hibernate Search Team!!!!

I just upgraded to Hibernate Search 4.0.0.Final and started working (at least tried :)) with the NRTIndexManager.

My application first phase is creation of demo database (indexing is done before reading)

At this phase I get exception with the following call stack:

java.lang.NullPointerException
at org.hibernate.search.backend.impl.lucene.NRTWorkspaceImpl.afterTransactionApplied(NRTWorkspaceImpl.java:84)
at org.hibernate.search.backend.impl.lucene.LuceneBackendQueueTask.applyUpdates(LuceneBackendQueueTask.java:141)
at org.hibernate.search.backend.impl.lucene.LuceneBackendQueueTask.run(LuceneBackendQueueTask.java:69)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)

With debugger, I see that the oldReader is indeed null, so trying to close him throws the exception.

I guess the oldReader may be null if I write to the index before any reading...

Can you assist me with this one?
Thanks!


Top
 Profile  
 
 Post subject: Re: NRTWorkspaceImpl - NullPointerException - oldReader is null
PostPosted: Wed Jan 11, 2012 6:58 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
Sounds like a bug. Do you mind opening a Jira issue in https://hibernate.onjira.com/browse/HSEARCH? Maybe you could provide a test case as well.

--Hardy


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.