can you please raise this at the github.com/neo4j/neo4j-java-driver/issues ?
Thanks On Fri, Sep 16, 2016 at 9:54 AM, lahu sakhare <lahu.sakhar...@gmail.com> wrote: > org.neo4j.driver.v1.exceptions.value.Uncoercible: Cannot coerce PATH to > Java List > at org.neo4j.driver.internal.value.ValueAdapter.asList( > ValueAdapter.java:131) > at com.kpit.diagnostics.driver.cypher.BoltCypherExecutor. > convert(BoltCypherExecutor.java:78) > at com.kpit.diagnostics.driver.cypher.BoltCypherExecutor$$ > Lambda$4/1639043718.apply(Unknown Source) > at org.neo4j.driver.internal.util.Extract.map(Extract.java:124) > _______________My code is..._____________________________ > > static Object convert(Value value) { > switch (value.type().name()) { > > case "PATH": > > return value.asList(BoltCypherExecutor::convert); > //return Values.ofList(BoltCypherExecutor::convert); > //List<Value>li= (List<Value>) value.asEntity().asMap(); > //Values.ofList().apply(value).toString(); > //return Values.ofList().apply(value).toString(); > > case "NODE": > case "RELATIONSHIP": > return value.asMap(); > } > return value.asObject(); > } > > > /* (non-Javadoc) > * @see com.kpit.diagnostics.driver.cypher.CypherExecutor#query( > java.lang.String) > */ > public Iterator<Map<String, Object>> query(String statement) { > try (Session session = driver.session()) { > //Retrieve list by executing the query > List<Map<String, Object>> list = session.run(statement) > .list( r -> r.asMap(BoltCypherExecutor::convert)); > //Return the list > return list.iterator(); > } > } > > -- > 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. > -- 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.