Sounds like a version conflict. Can you make sure you have all Neo4j jar files of the same version in your project?
On Sat, Jan 4, 2014 at 7:59 AM, Kalidhakani J <[email protected]> wrote: > Hi all, > > I am tring to create a HighlyAvailableGraphDatabase with set of > configurations as follows, > > Map<String, String> haConfig = new HashMap<String, > String>(); > > haConfig.put("org.neo4j.server.database.mode", "HA"); > haConfig.put("org.neo4j.server.webserver.address","0.0.0.0"); > haConfig.put("ha.server_id", "1"); > haConfig.put("ha.initial_hosts", "192.168.9.1:5001,192.168.9.2:5002, > 192.168.9.3:5003"); > haConfig.put("ha.server", "192.168.9.56:6001"); > haConfig.put("ha.cluster_server", "192.168.9.1:5001"); > > graphDb = new HighlyAvailableGraphDatabaseFactory() > .newHighlyAvailableDatabaseBuilder("graph.db") > .setConfig(haConfig) > .newGraphDatabase(); > Transaction tx = graphDb.beginTx(); > Node firstNode = graphDb.createNode(); > createNode.setProperty("name","kk"); > tx.success(); > tx.close(); > > > It is showing me the following exception > > > Exception in thread "main" java.lang.NoSuchFieldError: indexProviders > at > org.neo4j.graphdb.factory.HighlyAvailableGraphDatabaseFactory$1.newDatabase(HighlyAvailableGraphDatabaseFactory.java:47) > at > org.neo4j.graphdb.factory.GraphDatabaseBuilder.newGraphDatabase(GraphDatabaseBuilder.java:197) > > > Help me. > Thanks in advance. > > -- > 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/groups/opt_out. > -- 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/groups/opt_out.
