Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Neo4j 2.0.1 Server via init parameter failed #74

Open
hoffmaaxe opened this issue Apr 10, 2014 · 1 comment
Open

Using Neo4j 2.0.1 Server via init parameter failed #74

hoffmaaxe opened this issue Apr 10, 2014 · 1 comment

Comments

@hoffmaaxe
Copy link

I tried to use my own Neo4j 2.0.1 Server via url parameter init. My url looks like this: http://localhost:8080/?init=http://localhost:7474/db/data/cypher

But I get an exception:

Graph Setup: http://localhost:7474/db/data/cypher

Query: match (n:Crew)-[r:KNOWS*]-m where n.name='Neo' return n as Neo,r,m 

Error: org.neo4j.rest.graphdb.RestResultException: Question mark is no longer used for optional patterns - use OPTIONAL MATCH instead (line 1, column 24) 
"start n=node(*) match n-[r?]->() return n,r" 
                        ^ at 

SyntaxException org.neo4j.cypher.internal.compiler.v2_0.parser.CypherParser$$anonfun$parseToQuery$1.apply(CypherParser.scala:65) 
org.neo4j.cypher.internal.compiler.v2_0.parser.CypherParser$$anonfun$parseToQuery$1.apply(CypherParser.scala:64) 
scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244) 
scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244) 
scala.collection.Iterator$class.foreach(Iterator.scala:727) 
scala.collection.AbstractIterator.foreach(Iterator.scala:1157) 
scala.collection.IterableLike$class.foreach(IterableLike.scala:72) 
scala.collection.AbstractIterable.foreach(Iterable.scala:54) 
scala.collection.TraversableLike$class.map(TraversableLike.scala:244) 
scala.collection.AbstractTraversable.map(Traversable.scala:105) 
org.neo4j.cypher.internal.compiler.v2_0.parser.CypherParser.parseToQuery(CypherParser.scala:64) 
org.neo4j.cypher.internal.compiler.v2_0.CypherCompiler$$anonfun$1.apply(CypherCompiler.scala:38) 
org.neo4j.cypher.internal.compiler.v2_0.CypherCompiler$$anonfun$1.apply(CypherCompiler.scala:37) 
org.neo4j.cypher.internal.LRUCache.getOrElseUpdate(LRUCache.scala:34) 
org.neo4j.cypher.internal.CypherCompiler$VersionProxy$$anonfun$1.apply(CypherCompiler.scala:47) 
org.neo4j.cypher.internal.CypherCompiler$VersionProxy$$anonfun$1.apply(CypherCompiler.scala:47) org.neo4j.cypher.internal.compiler.v2_0.CypherCompiler.prepare(CypherCompiler.scala:37) 
org.neo4j.cypher.internal.CypherCompiler$VersionProxy.prepare(CypherCompiler.scala:64) 
org.neo4j.cypher.ExecutionEngine$$anonfun$3.apply(ExecutionEngine.scala:83) 
org.neo4j.cypher.ExecutionEngine$$anonfun$3.apply(ExecutionEngine.scala:81) 
org.neo4j.cypher.internal.LRUCache.getOrElseUpdate(LRUCache.scala:34) 
org.neo4j.cypher.ExecutionEngine.prepare(ExecutionEngine.scala:81) 
org.neo4j.cypher.ExecutionEngine.execute(ExecutionEngine.scala:60) 
org.neo4j.cypher.ExecutionEngine.execute(ExecutionEngine.scala:65) 
org.neo4j.cypher.javacompat.ExecutionEngine.execute(ExecutionEngine.java:78) 
org.neo4j.server.rest.web.CypherService.cypher(CypherService.java:100) 
java.lang.reflect.Method.invoke(Method.java:606) 
org.neo4j.server.rest.transactional.TransactionalRequestDispatcher.dispatch(TransactionalRequestDispatcher.java:139) 
org.neo4j.server.rest.security.SecurityFilter.doFilter(SecurityFilter.java:112) 
java.lang.Thread.run(Thread.java:744) 

I also tried to set the start query to null with parameter query=" ".
If I try to type own queries, rabbithole can't find any results. And if I look in the network traffic of the loopback device, I can see, that rabbithole doesn't send anything to the Neo4j server. But at beginning, where I called the rabbit url http://localhost:8080/?init=http://localhost:7474/db/data/cypher I can see, that rabbithole sends the hardcoded query start n=node(*) match n-[r?]->() return n,r to the server.

I also tried the public rabbithole server console.neo4j.org with my Neo4j server (for this I made my server temporally public). And I had the same problems.

My Neo4j 2.0.1 server and rabbithole runs on Debian 7.0.4 and rabbithole was build today from the git repository (master branch).

@hoffmaaxe
Copy link
Author

I can use a Neo4j Server as backend (see #75) to save the share ids but I can't import a graph from a Neo4j server via init parameter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant