Hi Sumit,
thank you. I am opening the 2 databases in 2 differents web application 
using Glassfish 3.1.2 I've seen that the error exists only using the web 
app with Glassfish. So your case is ok, I am sorry I did not mention 
details before. So the problem is the combination of Neo4j 2.2.1 and 
Glassfish.

Rita


Il giorno mercoledì 13 maggio 2015 05:30:38 UTC+2, Sumit Gupta ha scritto:
>
> Hi Rita,
>
> I tried to creating multiple instances of embedded Neo4j (using different 
> DB locations) it works fine for me with Neo4j 2.2.1 Community versions. 
>
> Here is my code: -
>
> public static void main(String[] args) {
> GraphDatabaseFactory graphDbFactory = new GraphDatabaseFactory();
> GraphDatabaseService graphDb = graphDbFactory
>       .newEmbeddedDatabase("c:\\Temp\\data\\dbName");
>
> System.out.println("First graph is initialized ");
>  GraphDatabaseFactory graphDbFactory1 = new GraphDatabaseFactory();
> GraphDatabaseService graphDb1 = graphDbFactory1
>       .newEmbeddedDatabase("c:\\Temp\\data\\dbName1");
>  System.out.println("Second graph is initialized ");
>  }
>
>
> Can you please paste your the code which is initializing the 2 different 
> Databases.
>
> Thanks,
> Sumit
>
> On Tuesday, 12 May 2015 13:07:56 UTC+5:30, Rita wrote:
>>
>> Thank you for the reply.
>> I am starting different Neo4j graphs. As I said before, I always do it 
>> until 1.9.9 version, so it is a new problem of 2.2.1! With one db 1.9.9 and 
>> one 2.2.1 the start  is ok, instead with both db 2.2.1 the start gives that 
>> error.
>> So I please ask if it is possible to investigate on this issue that seems 
>> to be a bug.
>>
>> Many thanks
>> Rita
>>
>> Il giorno martedì 12 maggio 2015 02:47:52 UTC+2, Sumit Gupta ha scritto:
>>>
>>> Hi,
>>>
>>> Are you starting both instances with same DB files or different?  
>>>
>>> I any case i do not think you will be able to do it because the JMX 
>>> beans from second instance will try to get registered within same JMX 
>>> domain, which was started by first instance.
>>>
>>> I will check and see if there is any configuration which can support 
>>> user defined JMX domains.
>>>
>>> Thanks,
>>> Sumit 
>>>
>>> On Monday, 11 May 2015 14:57:00 UTC+5:30, Rita wrote:
>>>>
>>>> Anyone does have an idea please?
>>>>
>>>> Thanks,
>>>> Rita
>>>>
>>>>
>>>>
>>>> Il giorno venerdì 8 maggio 2015 10:00:21 UTC+2, Rita ha scritto:
>>>>>
>>>>> Hi all,
>>>>> I am using Neo4j 2.2.1 embedded in java application. I've found a 
>>>>> problem. I cannot open different Neo4j graphs on my server because when I 
>>>>> start the second istance I'm getting an error. In the messages.log I have 
>>>>> the following:
>>>>>  
>>>>> --- INITIALIZED diagnostics END ---
>>>>> Failed to register Kernel JMX Bean
>>>>> Failed to register JMX Bean org.neo4j.jmx.impl.ManagementBeanProvider[
>>>>> Primitive count] (javax.management.InstanceAlreadyExistsException: org
>>>>> .neo4j:instance=kernel#0,name=Primitive count)
>>>>> Failed to register JMX Bean org.neo4j.jmx.impl.ManagementBeanProvider[
>>>>> Store file sizes] (javax.management.InstanceAlreadyExistsException: 
>>>>> org.neo4j:instance=kernel#0,name=Store file sizes)
>>>>> Failed to register Configuration JMX Bean
>>>>> Couldn't close neostore after startup failure
>>>>> --- STOPPING diagnostics START ---
>>>>> --- STOPPING diagnostics END ---
>>>>> Shutdown started
>>>>>
>>>>> I don't have this error when I use version 1.9.9 on both graphs or if 
>>>>> only one is 2.2.1. Could you give me an idea to solve this issue please ? 
>>>>> Thank you.
>>>>>
>>>>> Rita
>>>>>
>>>>

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

Reply via email to