org.springframework.dao.InvalidDataAccessApiUsageException: [Assertion failed] - entity is required; it must not be null

Spring JIRA | Jason Bennett | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0
  2. 0

    Root Cause Analysis

    1. org.springframework.dao.InvalidDataAccessApiUsageException

      [Assertion failed] - entity is required; it must not be null

      at org.springframework.data.neo4j.support.ParameterCheck.notNull()
    2. Spring Data Neo4j
      OneToNRelationshipEntityFieldAccessorFactory$OneToNRelationshipEntityFieldAccessor.setValue
      1. org.springframework.data.neo4j.support.ParameterCheck.notNull(ParameterCheck.java:26)
      2. org.springframework.data.neo4j.support.Neo4jTemplate.getPersistentState(Neo4jTemplate.java:217)
      3. org.springframework.data.neo4j.fieldaccess.OneToNRelationshipEntityFieldAccessorFactory$OneToNRelationshipEntityFieldAccessor.getState(OneToNRelationshipEntityFieldAccessorFactory.java:142)
      4. org.springframework.data.neo4j.fieldaccess.OneToNRelationshipEntityFieldAccessorFactory$OneToNRelationshipEntityFieldAccessor.createSetOfTargetNodes(OneToNRelationshipEntityFieldAccessorFactory.java:97)
      5. org.springframework.data.neo4j.fieldaccess.OneToNRelationshipEntityFieldAccessorFactory$OneToNRelationshipEntityFieldAccessor.setValue(OneToNRelationshipEntityFieldAccessorFactory.java:71)
      5 frames