Thanks for ur reply.
I changed the versions. But now i am getting the following exception,


Exception in thread "main" java.lang.RuntimeException:
org.neo4j.kernel.lifecycle.LifecycleException: Component
'org.neo4j.kernel.StoreLockerLifecycleAdapter@64df80ff' was successfully
initialized, but failed to start. Please see attached cause exception.
at
org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:280)
at
org.neo4j.kernel.ha.HighlyAvailableGraphDatabase.<init>(HighlyAvailableGraphDatabase.java:156)
at
org.neo4j.graphdb.factory.HighlyAvailableGraphDatabaseFactory$1.newDatabase(HighlyAvailableGraphDatabaseFactory.java:47)
at
org.neo4j.graphdb.factory.GraphDatabaseBuilder.newGraphDatabase(GraphDatabaseBuilder.java:207)


On Fri, Jan 10, 2014 at 1:09 PM, Michael Hunger <
[email protected]> wrote:

> You see that you have 3 different versions !!
>
> Fix that and you're good.
>
> Michael
>
> Am 10.01.2014 um 08:36 schrieb Kalidhakani J <[email protected]>:
>
> Thanks for ur reply.
>
> There is no version problem. I use oly the following four jar files.
>     neo4j-cluster-1.9.4.jar
>     neo4j-ha-1.9.3.jar
>     neo4j-kernel-2.0.0-M06.jar
>     jboss-transaction-api_1.1_spec-1.0.1.Final.jar.
>
> Internally while creating new HighlyAvailableGraphDatabase, It is
> requesting Indexprovides, CacheProviders,etc in its constructor. Should i
> set those values explicitly??
>
>
> On Fri, Jan 10, 2014 at 12:38 PM, Michael Hunger <
> [email protected]> wrote:
>
>> See my answer on StackOverflow.
>>
>> Am 10.01.2014 um 08:01 schrieb Kalidhakani J <[email protected]>:
>>
>> I am trying to create embedded HighlyAvailableGraphDatabase. My server
>> configurations,
>>
>> ha.server_id=1
>> ha.initial_hosts=192.168.9.1:5001,192.168.9.2:5002,192.168.9.3:5003
>> ha.server=192.168.9.1:6002
>> ha.cluster_server=192.168.9.1:5001
>>
>> ha.server_id=2
>> ha.initial_hosts=192.168.9.1:5001,192.168.9.2:5002,192.168.9.3:5003
>> ha.server=192.168.9.2:6002
>> ha.cluster_server=192.168.9.2:5002
>>
>> ha.server_id=3
>> ha.initial_hosts=192.168.9.1:5001,192.168.9.2:5002,192.168.9.3:5003
>> ha.server=192.168.9.3:6002
>> ha.cluster_server=192.168.9.3:5003
>>
>> In my java class I create the database as follows,
>>
>> public class HighAvailableDbTest
>> {
>>     private static GraphDatabaseService graphDb;
>>     private static Map<String, String> haConfig = new HashMap<String, 
>> String>();
>>
>>     public static void main(String a[])
>>     {
>>         HighlyAvailableGraphDatabaseFactory databaseFactory = new 
>> HighlyAvailableGraphDatabaseFactory();
>>
>>        haConfig.put("org.neo4j.server.database.mode", "HA");
>>        haConfig.put("org.neo4j.server.webserver.address","0.0.0.0");
>>        haConfig.put("CONFIG_KEY_HA_MACHINE_ID","1");
>>        haConfig.put("CONFIG_KEY_HA_SERVER", "192.168.9.1:6002");
>>
>>
>>         graphDb = new HighlyAvailableGraphDatabaseFactory()
>>       .newHighlyAvailableDatabaseBuilder("test.db")
>>       .setConfig(haConfig)
>>       .newGraphDatabase();
>>
>>     }
>>  }
>>
>> But when I run the code, I am getting 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.
>>
>
>
> --
> 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.
>

-- 
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.

Reply via email to