Reputation: 235
I am creating a few nodes in neo4j using spring data, and then I am also accessing them via findByPropertyValue(prop, val)
.
Everything works correctly when I am reading/writing to the embedded DB using spring data.
Now, as per the Michael Hunger's book : Good Relationship
, I opened up Neoclipse
in read-only
mode connection to my currently active Neo4j connection in Java..
But, it somehow still says that Neo4j's kernel is actively used by some other program or something.
Question 1 :
What am I doing wrong here?
Also, I have created a few nodes and persisted them. Whenever I restart the embedded neo4j db, I can view all my nodes when I do findAll()
.
Question 2 :
When I try to visualize all my nodes in Neoclipse
(considering the db is accessible), I can only see one single
node(which is empty), has no properties
associated to it, whereas I have a name
property defined.
I started my java app, persisted few nodes, traversed and got the output from in the java console. Now, I shutdown the application and started the Neoclipse
IDE, connected to my DB and found that no nodes are present(Problem of Question 2).
After trying again(heads down), I go back to my Java app and ran my app, and surprisingly I found that I am getting a Lucene-file-corrupted error(unrecognized file format
) error. I had no code changes, I did not delete anything, but still got this error.
Question 3 :
Not sure what I am doing wrong. But since I found this discussion on my bug(lucene/concurrent db access), I am willing to know if this is a bug
or if this is due to any programatic error.(Does it have to do something with Eclipse Juno
)
Any reply would be highly appreciated.
Upvotes: 0
Views: 564
Reputation: 80166
Posting your code would help us to check for any issues.
Upvotes: 1