[
http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-526?pag...
]
j nadler commented on HSEARCH-526:
----------------------------------
Sanne,
I have @Indexed class Parent, @Indexed class Child1 extends Parent, @Indexed class Child2
extends Parent, unindexed class Child3 extends Parent.
I create an indexer fullTextEntityManager.createIndexer(Parent.class), it seems that it
then fetches all Parent entities. This includes all Child3 entities but Child3 is not
indexed. It seems like the MassIndexer attempts to index them anyway.
Best behavior might be to ignore these (explicitly check if the concrete subtype is
@Indexed, skip that record if not, possibly log a warning) or as you say it could at least
throw an error that makes it clear what the developer (me) did wrong.
Thanks!
Jeff
Mass Indexer Logs Multiple NullPointerExceptions
------------------------------------------------
Key: HSEARCH-526
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-526
Project: Hibernate Search
Issue Type: Bug
Affects Versions: 3.2.0.Final
Environment: Hibernate Core 3.5.1, Hibernate Search 3.2.0.Final
Reporter: j nadler
We just moved our 'old style' reindex code to the new MassIndexer and gave it a
run. It seems to have mostly worked (the index was clearly populated with some records)
but a few NPEs in the logs:
[2010-05-06 08:22:25.115,105054]ERROR[Hibernate Search:
collectionsloader-4](EntityConsumerLuceneworkProducer.java:96) - error during batch
indexing:
java.lang.NullPointerException
at
org.hibernate.search.batchindexing.EntityConsumerLuceneworkProducer.index(EntityConsumerLuceneworkProducer.java:139)
at
org.hibernate.search.batchindexing.EntityConsumerLuceneworkProducer.indexAllQueue(EntityConsumerLuceneworkProducer.java:117)
at
org.hibernate.search.batchindexing.EntityConsumerLuceneworkProducer.run(EntityConsumerLuceneworkProducer.java:92)
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:619)
[2010-05-06 08:22:37.170,117109]ERROR[Hibernate Search:
collectionsloader-1](EntityConsumerLuceneworkProducer.java:96) - error during batch
indexing:
java.lang.NullPointerException
at
org.hibernate.search.batchindexing.EntityConsumerLuceneworkProducer.index(EntityConsumerLuceneworkProducer.java:139)
at
org.hibernate.search.batchindexing.EntityConsumerLuceneworkProducer.indexAllQueue(EntityConsumerLuceneworkProducer.java:117)
at
org.hibernate.search.batchindexing.EntityConsumerLuceneworkProducer.run(EntityConsumerLuceneworkProducer.java:92)
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:619)
[2010-05-06 08:22:37.466,117405]ERROR[Hibernate Search:
collectionsloader-2](EntityConsumerLuceneworkProducer.java:96) - error during batch
indexing:
java.lang.NullPointerException
at
org.hibernate.search.batchindexing.EntityConsumerLuceneworkProducer.index(EntityConsumerLuceneworkProducer.java:139)
at
org.hibernate.search.batchindexing.EntityConsumerLuceneworkProducer.indexAllQueue(EntityConsumerLuceneworkProducer.java:117)
at
org.hibernate.search.batchindexing.EntityConsumerLuceneworkProducer.run(EntityConsumerLuceneworkProducer.java:92)
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:619)
[2010-05-06 08:22:37.566,117505]ERROR[Hibernate Search:
collectionsloader-8](EntityConsumerLuceneworkProducer.java:96) - error during batch
indexing:
java.lang.NullPointerException
at
org.hibernate.search.batchindexing.EntityConsumerLuceneworkProducer.index(EntityConsumerLuceneworkProducer.java:139)
at
org.hibernate.search.batchindexing.EntityConsumerLuceneworkProducer.indexAllQueue(EntityConsumerLuceneworkProducer.java:117)
at
org.hibernate.search.batchindexing.EntityConsumerLuceneworkProducer.run(EntityConsumerLuceneworkProducer.java:92)
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:619)
[2010-05-06 08:22:51.710,131649]WARN [http-8080-7](StatefulPersistenceContext.java:662) -
Narrowing proxy to class com.attensa.core.entity.User - this operation breaks ==
[2010-05-06 08:22:51.738,131677]DEBUG[http-8080-7](BaseArticleListQuery.java:579) -
getLatestDateModified: took: 0:00:00.024
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira