Holy f... It works... but, let's clarify everything!
TEST 1: Using the code and tip you provided1. I have removed all code;
2. At Main class, I created only one method to test my use case.
Then, I made it like you said.
Result: I had no success! I got the same issue as before (eternal waiting).
TEST 2: Similar to Test 1 + changing dependencies1. I made everything like test1;
2. I changed my dependencies at
pom.xml.
2.1. I
removed every Spring Data and Neo4j dependencies
2.2. Then, I imported the latest
Neo4j (2.0.0-M02)Result: I got the following exception:
Caused by: java.lang.IllegalStateException: No such store[data/neostore.nodestore.db.labels] for org.neo4j.kernel.DefaultFileSystemAbstraction@11c1cc4a
at org.neo4j.kernel.impl.nioneo.store.CommonAbstractStore.checkStorage(CommonAbstractStore.java:151)
at org.neo4j.kernel.impl.nioneo.store.CommonAbstractStore.<init>(CommonAbstractStore.java:112)
at org.neo4j.kernel.impl.nioneo.store.AbstractDynamicStore.<init>(AbstractDynamicStore.java:75)
at org.neo4j.kernel.impl.nioneo.store.DynamicArrayStore.<init>(DynamicArrayStore.java:57)
at org.neo4j.kernel.impl.nioneo.store.StoreFactory.newNodeStore(StoreFactory.java:191)
at org.neo4j.kernel.impl.nioneo.store.StoreFactory.attemptNewNeoStore(StoreFactory.java:122)
at org.neo4j.kernel.impl.nioneo.store.StoreFactory.newNeoStore(StoreFactory.java:111)
at org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource.start(NeoStoreXaDataSource.java:283)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:491)
NOTE: Maybe it could be a bug of the new version.
TEST 3: Like Test 2 + using another version of Neo4j (1.9.RC2 and 1.9.M05)
1. I made everything like Test 2;
2. I changed the Neo4j version to test with 1.9.RC2 and 1.9.M05
Result: finally the SUCCESS! The print was:
Shortest Path using Cypher Query (No SDN) -- Starting at: 15:53:07
Node[310203] -- > Node[310201] -- > [... ... ...] -- > Node[949070] -- > Node[899999] -- > Node[900000]
Completed at: 15:53:14 -- COUNT: 659
7 seconds for this one at one shot.
CONCLUSION:1. It seems SDN (2.2.1.RELEASE) is using a bugged or not improved version of Neo4j for shortestPath algorithms.
2. Neo4j 2.0.0 is return some odd exception at starting. So, I'm not able to test it neither to explain the new problem.
3. Both Neo4j version 1.9.RC2 and 1.9.M05 worked just fine without SDN.
4. The initial tests I've made in Webadmin were done using 'neo4j-community-1.9.RC2'. It explains why they worked.
QUESTIONS:1. How I solve my problem using SDN? Is it possible to get SDN with Neo4j 1.9.RC2 or 1.9.M05?
2. What's wrong in Neo4j 2.0.0? Why I'm getting that exception? (maybe I should create a new topic for that one)
3. Have we enough information to help us solve the problem?