[Neo] Infinite recursion bug in SimpleIndexHits.java (LuceneIndexService.getNodes)

Mattias Persson mattias at neotechnology.com
Wed Jan 20 08:33:26 CET 2010


The "index-util" component has changed name to "index" (with the
artifactId "neo4j-index") after our refactoring... so please
considering using that instead (where this bug is fixed). But I'll fix
this bug anyways, well spotted!

2010/1/20 Lachlan Cotter <lach at lachlanc.id.au>:
> Hi all,
>
>
>
> I've just started working with Neo4j and I've run into a problem
> (bug?) with the indexing component.
>
> I did a simple test calling getNodes() on a LuceneIndexService instance.
>
> This results in a stack overflow error caused by apparently infinite
> recursion in SimpleIndexHits.
>
> When I dug a little deeper, I found that SimpleIndexHits implements
> next() like so:
>
> public T next()
>     {
>         return this.next();
>     }
>
> https://svn.neo4j.org/components/index-util/trunk/src/main/java/org/neo4j/util/index/SimpleIndexHits.java
>
> So no wonder there is a problem.
>
> Anybody else have this issue?
>
> Is anybody able to use the indexing component successfully?
>
> Thanks for your help.
>
>
>
>
> Cheers,
> Lach
> _______________________________________________
> Neo mailing list
> User at lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>



-- 
Mattias Persson, [mattias at neotechnology.com]
Neo Technology, www.neotechnology.com


More information about the User mailing list