Add labels to your nodes. or use GlobalGraphOperations.at(gdb).getAllNodes() and iterate over those.
Cheers, Michael ---- (michael)-[:SUPPORTS]->(YOU)-[:USE]->(Neo4j) Learn Online, Offline or Read a Book (in Deutsch) We're trading T-shirts for cool Graph Models Am 12.03.2014 um 15:03 schrieb Sotiris Beis <[email protected]>: > I want to get all the nodes having the same property value. I am trying to > work with this > findNodesByLabelAndProperty(label, key, value) > the nodes in my database has not any labels. I put null in the label field > and i get this exception > Exception in thread "main" java.lang.NullPointerException > at > org.neo4j.kernel.InternalAbstractGraphDatabase.nodesByLabelAndProperty(InternalAbstractGraphDatabase.java:1488) > at > org.neo4j.kernel.InternalAbstractGraphDatabase.access$200(InternalAbstractGraphDatabase.java:184) > at > org.neo4j.kernel.InternalAbstractGraphDatabase$8.iterator(InternalAbstractGraphDatabase.java:1477) > at > org.neo4j.kernel.InternalAbstractGraphDatabase$8.iterator(InternalAbstractGraphDatabase.java:1473) > at > eu.socialsensor.graphdatabases.Neo4jGraphDatabase.test(Neo4jGraphDatabase.java:68) > at > eu.socialsensor.graphdatabases.Neo4jGraphDatabase.main(Neo4jGraphDatabase.java:61) > > Is there another way or i should re create my database with node labels? > > (I use neo4j-2.1.0) > > Thanks, > Sotiris > > -- > You received this message because you are subscribed to the Google Groups > "Neo4j" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
