neo4j java rest binding api not returning from getNodeAutoIndexer

2014-03-21T15:27:49

I have an application which uses neo4j embedded database. Now, I want to migrate to neo4j server as I need to integrate this application with a web app (using servlets, tomcat).

I want to change the code minimally, So I thought of using java-rest-binding api of neo4j. But I am stuck at getting the auto node index. The method getAutoNodeIndexer doesn't return. In messages.log of the database, It shows

[o.n.k.EmbeddedGraphDatabase]: GC Monitor: Application threads blocked for an additional 254ms [total block time: 2.678s]

I have no idea how to solve this.

I have set the appropriate properties in the neo4j.properties, which are

node_auto_indexing=true
node_keys_indexable=primaryKey
relationship_auto_indexing=true
relationship_keys_indexable=X-->Y

And this is what my code looks like:

graphDb = new RestGraphDatabase("http://localhost:7474/db/data/"); 
ReadableIndex<Node> autoNodeIndex =     graphDb.index().getNodeAutoIndexer().getAutoIndex();
ReadableRelationshipIndex autoRelIndex = graphDb.index().getRelationshipAutoIndexer().getAutoIndex();

Copyright License:
Author:「user117342」,Reproduced under the CC 4.0 BY-SA copyright license with link to original source & disclaimer.
Link to:https://stackoverflow.com/questions/22552727/neo4j-java-rest-binding-api-not-returning-from-getnodeautoindexer

About “neo4j java rest binding api not returning from getNodeAutoIndexer” questions

I have an application which uses neo4j embedded database. Now, I want to migrate to neo4j server as I need to integrate this application with a web app (using servlets, tomcat). I want to change the
I want to use neo4j in rest way with Java. In this case, should I use java-rest-binding(https://github.com/neo4j/java-rest-binding)? I cannot find javadoc comments in the source code, so where can...
I am trying to get more familiar with the java-rest-binding (https://github.com/neo4j/java-rest-binding). My main question is what operations of the GraphDatabaseService supports. For example I...
I use Java REST binding of Neo4j on my project, but I face a problem on handling transactions. When the name is Error, it can success insert node into DB..., event if I take off Transaction contro...
Is there an existing library that I can use that has the functionality: http://docs.neo4j.org/chunked/milestone/rest-api-transactional.html I've looked into https://github.com/neo4j/java-rest-bin...
I am trying to get the project from github to work. It can be found here: https://github.com/neo4j/java-rest-binding Has anyone put this into a JAR already? I am to connect to a local neo4j store...
I have a simple relationship test that I am trying to run to create a unique node using Rest API (java-rest-binding) https://github.com/neo4j/java-rest-binding but unfortunately I am stuck on somet...
What suggestions do you have for creating neo4j API to serve clients, if I already created a neo4j database? It seems there are two sets of API: 1) Rest API: https://neo4j.com/docs/rest-docs/current/
I am currently using the neo4j java-rest-binding project to try and make the client code the same for embedded and remote databases, which is highly desirable for me. But I am currently having tro...
having problems with the neo4j java-rest-binding API git clone https://github.com/neo4j/java-rest-binding mvn clean package Then got my JAR. Tried this: import org.neo4j.rest.graphdb.RestAPI;

Copyright License:Reproduced under the CC 4.0 BY-SA copyright license with link to original source & disclaimer.