Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
02-06-2023 07:39 PM
Java version:12
Sprintboot verson:
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.18.RELEASE</version>
Here are my ogms version
Applicaton.properties as:
spring.data.neo4j.uri=http://47.106.122.233:7474 // here connect neo4j with http
spring.data.neo4j.username=neo4j
spring.data.neo4j.password=neo4j
where query an example as:
@Query("MATCH (person:Person {name:'Tom Hanks'})-[r:ACTED_IN]->(movie) RETURN person,collect(movie) as movies")
PersonMovie getPersonMoviesbyName(@Param("name") String name);
PersonMovie Class as:
@QueryResult
@JsonIgnoreProperties(ignoreUnknown = true)
public class PersonMovie {
private Person person;
private Set<Movie> movies;
}
then exception:
2023-02-07 11:29:46.512 ERROR 52183 --- [nio-8080-exec-2] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.RuntimeException: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "contains_system_updates" (class org.neo4j.ogm.response.model.QueryStatisticsModel), not marked as ignorable (13 known properties: "labels_added", "indexes_added", "relationships_created", "contains_updates", "nodes_deleted", "relationship_deleted", "relationships_deleted", "properties_set", "constraints_added", "nodes_created", "labels_removed", "constraints_removed", "indexes_removed"])
at [Source: UNKNOWN; line: -1, column: -1] (through reference chain: org.neo4j.ogm.response.model.QueryStatisticsModel["contains_system_updates"])] with root cause
com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "contains_system_updates" (class org.neo4j.ogm.response.model.QueryStatisticsModel), not marked as ignorable (13 known properties: "labels_added", "indexes_added", "relationships_created", "contains_updates", "nodes_deleted", "relationship_deleted", "relationships_deleted", "properties_set", "constraints_added", "nodes_created", "labels_removed", "constraints_removed", "indexes_removed"])
at [Source: UNKNOWN; line: -1, column: -1] (through reference chain: org.neo4j.ogm.response.model.QueryStatisticsModel["contains_system_updates"])
at com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException.from(UnrecognizedPropertyException.java:61) ~[jackson-databind-2.9.10.6.jar:2.9.10.6]
at com.fasterxml.jackson.databind.DeserializationContext.handleUnknownProperty(DeserializationContext.java:823) ~[jackson-databind-2.9.10.6.jar:2.9.10.6]
at com.fasterxml.jackson.databind.deser.std.StdDeserializer.handleUnknownProperty(StdDeserializer.java:1153) ~[jackson-databind-2.9.10.6.jar:2.9.10.6]
at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.handleUnknownProperty(BeanDeserializerBase.java:1589) ~[jackson-databind-2.9.10.6.jar:2.9.10.6]
at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.handleUnknownVanilla(BeanDeserializerBase.java:1567) ~[jackson-databind-2.9.10.6.jar:2.9.10.6]
at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:294) ~[jackson-databind-2.9.10.6.jar:2.9.10.6]
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:151) ~[jackson-databind-2.9.10.6.jar:2.9.10.6]
at com.fasterxml.jackson.databind.ObjectMapper._readValue(ObjectMapper.java:3985) ~[jackson-databind-2.9.10.6.jar:2.9.10.6]
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2277) ~[jackson-databind-2.9.10.6.jar:2.9.10.6]
at com.fasterxml.jackson.databind.ObjectMapper.treeToValue(ObjectMapper.java:2759) ~[jackson-databind-2.9.10.6.jar:2.9.10.6]
at org.neo4j.ogm.drivers.http.response.AbstractHttpResponse.statistics(AbstractHttpResponse.java:145) ~[neo4j-ogm-http-driver-3.1.22.jar:3.1.22]
at org.neo4j.ogm.drivers.http.response.RestModelResponse.next(RestModelResponse.java:45) ~[neo4j-ogm-http-driver-3.1.22.jar:3.1.22]
at org.neo4j.ogm.drivers.http.response.RestModelResponse.next(RestModelResponse.java:33) ~[neo4j-ogm-http-driver-3.1.22.jar:3.1.22]
at org.neo4j.ogm.context.RestModelMapper.map(RestModelMapper.java:58) ~[neo4j-ogm-core-3.1.22.jar:3.1.22]
at org.neo4j.ogm.session.delegates.ExecuteQueriesDelegate.lambda$query$0(ExecuteQueriesDelegate.java:122) ~[neo4j-ogm-core-3.1.22.jar:3.1.22]
which block me quite long time , hope for help. thanks a lot
02-06-2023 07:45 PM
And neo4j version I use is:neo4j-community-4.4.16
All the sessions of the conference are now available online