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

2010-01-20 Thread Lachlan Cotter
Thanks Mattias,



I'm using the Apoc distribution that I recently downloaded from the  
Neo homepage:

http://neo4j.org/

I think this *is* the newer version, actually as the packaging doesn't  
match the packaging in the source listing I refereed to before.

I also found a work around to the problem:

SimpleIndexHits can also be used as an Iterable (as opposed to an  
Iterator); so if you call iterator() on it and then iterate using the  
object that is returned it works correctly. If you iterate on the  
original object, it throws the error.



Cheers,
Lach



On 20/01/2010, at 6:33 PM, Mattias Persson wrote:

 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 l...@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@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user




 -- 
 Mattias Persson, [matt...@neotechnology.com]
 Neo Technology, www.neotechnology.com
 ___
 Neo mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

___
Neo mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


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

2010-01-19 Thread Lachlan Cotter
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@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


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

2010-01-19 Thread Mattias Persson
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 l...@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@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user




-- 
Mattias Persson, [matt...@neotechnology.com]
Neo Technology, www.neotechnology.com
___
Neo mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user