Precisely I am getting this error when using local server from Java:

Exception in thread "main" java.lang.RuntimeException: 
java.nio.file.AccessDeniedException: 
/var/lib/neo4j/data/graph.db/neostore.schemastore.db.id
at neo4j.graphminer.clearDbPath(graphminer.java:100)
at neo4j.graphminer.run(graphminer.java:36)
at neo4j.graphminer.main(graphminer.java:31)
Caused by: java.nio.file.AccessDeniedException: 
/var/lib/neo4j/data/graph.db/neostore.schemastore.db.id
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at 
sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:244)
at 
sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:103)
at java.nio.file.Files.delete(Files.java:1079)
at 
org.neo4j.kernel.impl.util.FileUtils.deleteFileWithRetries(FileUtils.java:453)
at org.neo4j.kernel.impl.util.FileUtils.access$000(FileUtils.java:46)
at org.neo4j.kernel.impl.util.FileUtils$1.visitFile(FileUtils.java:61)
at org.neo4j.kernel.impl.util.FileUtils$1.visitFile(FileUtils.java:57)
at java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:135)
at java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:199)
at java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:69)
at java.nio.file.Files.walkFileTree(Files.java:2602)
at java.nio.file.Files.walkFileTree(Files.java:2635)
at org.neo4j.kernel.impl.util.FileUtils.deleteRecursively(FileUtils.java:56)
at neo4j.graphminer.clearDbPath(graphminer.java:96)
... 2 more



On Thursday, 25 September 2014 07:16:56 UTC+5:30, Mohana Krishna, IIT 
Bombay, India wrote:
>
> I am trying to connect to remote neo4j server and perform some cypher 
> queries on it. I am using the reference example: 
> https://github.com/neo4j/neo4j/blob/2.1.4/community/cypher/docs/cypher-docs/src/test/java/org/neo4j/cypher/example/JavaQuery.java
> But I do not get how to configure my code so as to access remote neo4j 
> server. 
>
> I am also not clear with what exactly "DB_PATH" in above program refers 
> to. I have given my path as "/var/lib/neo4j/data/graph.db" for local neo4j 
> server. But it says permission denied even though graph.db folder can be 
> accessed by all users as can be seen in permission settings.
>
> So, I need help regarding two things:
>
> 1) What exactly is "DB_PATH"? Am I wrong in my understanding of path? If 
> not, why I am unable to connect to my local neo4j server and perform a 
> simple cypher query on it? (Why permission denied?)
>
> 2) How to access remote neo4j server from java code?
>
> Somebody please help. I am novice in using neo4j with Java and this is my 
> first project. Thanks in advance.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to