Re: [Neo4j] Neo4j 2.2.1 error starting more than one istance

2015-05-14 Thread Rita
Ok now I understand the point. The last error : Caused by: java.lang.IllegalStateException: Wanted record STORE_VERSION, but this record wasn't read since the neostore didn't contain it at org.neo4j.kernel.impl.store.record.NeoStoreUtil.getValue(NeoStoreUtil. java:127) at org.neo4j.kernel.impl.

Re: [Neo4j] Neo4j 2.2.1 error starting more than one istance

2015-05-14 Thread Michael Hunger
The exception you shared last is a totally different one that the previous one: But you use different graph database directories for the two databases? If it can't read the STORE_VERSION something is really wrong with either the database or the setup ... Does this also happen with other web-con

Re: [Neo4j] Neo4j 2.2.1 error starting more than one istance

2015-05-14 Thread Rita
The log that I pasted in the previous message is the one about the test creation of two new empty test databases. It was not the opening of my two real databases that are ok, not broken (changing the order of opening I always get failed with second). So what can I do to use them like in previou

Re: [Neo4j] Neo4j 2.2.1 error starting more than one istance

2015-05-14 Thread Michael Hunger
It seems that you create a new graph database service per request, which is not what you would want to do. You should have it created only once and injected into your controllers. It is also trying to upgrade the store? Perhaps you should upgrade the store first and see if the problem persists.

Re: [Neo4j] Neo4j 2.2.1 error starting more than one istance

2015-05-14 Thread Rita
Thank you for the reply Michael. I also try to pass from Glassfish 3.1.2 to Glassfish 4 but the problem is the same: SEVERE: java.lang.RuntimeException: Error starting org.neo4j.kernel. EmbeddedGraphDatabase, C:\graph1 at org.neo4j.kernel.InternalAbstractGraphDatabase.run( InternalAbstractGra

Re: [Neo4j] Duplicated indexes on a Node

2015-05-14 Thread Michael Hunger
Are you running single or cluster mode? Do you still have the messages.log file and the tx logs from when it happened? Can you drop the indexes ? Otherwise delete the schema/index directory and they should be rebuild. It can be that you have to reissue the create index/constraint statements. Mi

Re: [Neo4j] Nested collections problem

2015-05-14 Thread Michael Hunger
DISTINCT makes no sense with aggregation I think this should be good enough for your needs Or if you need the individual labels MATCH (n)-[r]->(m) RETURN labels(n) as labelsn, labels(m) as labelsm,type(r) as typer, count(*) AS countr MATCH (n)-[r]->(m) UNWIND labels(n) as labelsn UNWIND label

Re: [Neo4j] Neo4j Property Store

2015-05-14 Thread Michael Hunger
You can run a consistency check on your graph: http://www.markhneedham.com/blog/2014/01/22/neo4j-backup-store-copy-and-consistency-check/ You can use my StoryCopy tool to migrate/compact your store: ht

Re: [Neo4j] Neo4j 2.2.1 error starting more than one istance

2015-05-14 Thread Michael Hunger
Perhaps something in Glassfish's JMX handling interferes there. Not sure how easy this is to reproduce ... best would be if you could provide an out of the box test (using embedded glassfish) that shows the behavior. Michael > Am 14.05.2015 um 11:26 schrieb Rita : > > Hi Sumit, > thank you. I

[Neo4j] Re: Neo4j 2.2.1 error starting more than one istance

2015-05-14 Thread Rita
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 Gl

Re: [Neo4j] INSERTing properties

2015-05-14 Thread Tom Zeppenfeldt
thanks.. this solves many issues on our side best, Tom Met vriendelijke groet / With kind regards Ir. T. Zeppenfeldt van der Waalsstraat 30 6706 JR Wageningen The Netherlands Mobile: +31 6 23 28 78 06 Phone: +31 3 17 84 22 17 E-mail: t.zeppenfe...@ophileon.com Web: www.ophileon.com Twitter