I am getting below error when i am trying to run apoc from java application
Neo.ClientError.Procedure.ProcedureCallFailed: Failed to invoke procedure apoc.testApoc
: Caused by: org.neo4j.kernel.StoreLockException: Unable to obtain lock on store lock file: C:\Users\n360733.Neo4jDesktop\neo4jDatabases\database-34032bd4-8cfe-4ac3-976b-27b13d339b0b\installation-3.5.5\data\databases\store_lock. Please ensure no other process is using this database, and that the directory is writable (required even for read-only access)
I am using below code
@Procedure(value = "apoc.testApoc")
@Description("This is used for laoding the test plan Details and create the graph")
public Stream loadClient(@Name(value = "planCode") String planCode) {
/*graphDb = new GraphDatabaseFactory().
newEmbeddedDatabase()
.new;*/
GraphDatabaseService db = new GraphDatabaseFactory()
.newEmbeddedDatabaseBuilder(
new File("C:\\Users\\n360733\\.Neo4jDesktop\\neo4jDatabases\\database-34032bd4-8cfe-4ac3-976b-27b13d339b0b\\installation-3.5.5\\data\\databases\\graph.db")).newGraphDatabase();
Result str=db.execute("call apoc.loadPlan('')");
List<String> alpha = Arrays.asList(str.resultAsString());
if(CollectionUtils.isNotEmpty(alpha)){
return alpha.stream().map(planName-> new PlanDTO(str.resultAsString()));
}else{
return null;
}
}
Can any one help me