You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Caused by: org.springframework.data.mapping.model.MappingInstantiationException: Failed to instantiate com.example.demo.SomeEntity using constructor fun (kotlin.String, kotlin.String, kotlin.String): com.example.demo.SomeEntity with arguments null,one,null,1,null
Caused by: java.lang.NullPointerException: Parameter specified as non-null is null: method com.example.demo.SomeEntity.<init>, parameter propertyTwo
Spring Data Neo4j Version: 7.2.5 Neo4J Java Drivder Version: 5.19.0
The text was updated successfully, but these errors were encountered:
If the enitity is a Kotlin data class with non nullable values the projection fails.
The following minimal project reproduces the error:
Error
org.springframework.data.mapping.MappingException: Error mapping Record<{someEntity: {propertyOne: "one", __elementId__: 11019, __nodeLabels__: ["SomeEntity"]}}>
Caused by: org.springframework.data.mapping.model.MappingInstantiationException: Failed to instantiate com.example.demo.SomeEntity using constructor fun
(kotlin.String, kotlin.String, kotlin.String): com.example.demo.SomeEntity with arguments null,one,null,1,null
Caused by: java.lang.NullPointerException: Parameter specified as non-null is null: method com.example.demo.SomeEntity.<init>, parameter propertyTwo
Spring Data Neo4j Version: 7.2.5
Neo4J Java Drivder Version: 5.19.0
The text was updated successfully, but these errors were encountered: