Sudhakar,
first, the impl over REST sounds a bit expensive roundtrip-wise.
Secondly, could you extract a simple test that gets this problem? I
think it might be that since you are using the iterator index hits,
the second time, it is already empty?
Cheers,
/peter neubauer
Neo4j 1.8.RC1 "Vindeln Vy" -
http://blog.neo4j.org/2012/09/neo4j-18rc1-really-careful-ftw.html
G: neubauer.peter
S: peter.neubauer
P: +46 704 106975
L:
http://www.linkedin.com/in/neubauer
T: @peterneubauer
Wanna learn something new? Come to @graphconnect.
On Tue, Sep 11, 2012 at 7:53 AM, Sudhakar G <
sudhak...@gmail.com> wrote:
> Hi,,
>
> I am using blueprints 1.2 over Java REST API for Neo4J.
> I have an usecase where I need to retrieve the same vertex from Neo4J twice
> in a single transaction.
>
> First call is working perfectly fine where as the second call is failing
> with the below exception.
>
> java.lang.NullPointerException
>
> at
> org.neo4j.rest.graphdb.index.SimpleIndexHits.hasNext(SimpleIndexHits.java:80)
>
> at
> com.tinkerpop.blueprints.pgm.impls.neo4j.util.Neo4jVertexSequence.hasNext(Neo4jVertexSequence.java:35)
>
> at
> com.pg.social.dao.graphdb.IteratorUtil.getSingle(IteratorUtil.java:18)
>
> at
> com.pg.social.dao.graphdb.service.profile.SocialProfileManager.getSocialVertex(SocialProfileManager.java:273)
>
> at
> com.pg.social.dao.graphdb.service.network.NetworkProfileManager.importNetworkProfile(NetworkProfileManager.java:234)
>
>
> Can someone let me know why and when this error comes....
>
> Thanks in advance.
>
>
> --
>
>