java.lang.IllegalArgumentException: Null parameter, key=street2, value=null

Hibernate JIRA | Gunnar Morling | 3 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

    Using an {{@ElementCollection}} of an {{@Embeddable}} type with a null-valued property gives an exception in Neo4j. The reason is that no null values are allowed in Neo4j structures. {code} java.lang.IllegalArgumentException: Null parameter, key=street2, value=null at org.neo4j.kernel.impl.core.Primitive.setProperty(Primitive.java:292) at org.neo4j.kernel.impl.core.RelationshipProxy.setProperty(RelationshipProxy.java:173) at org.hibernate.ogm.datastore.neo4j.Neo4jDialect.createRelationship(Neo4jDialect.java:278) at org.hibernate.ogm.datastore.neo4j.Neo4jDialect.createRelationshipUnlessExists(Neo4jDialect.java:199) at org.hibernate.ogm.datastore.neo4j.Neo4jDialect.putAssociationOperation(Neo4jDialect.java:192) at org.hibernate.ogm.datastore.neo4j.Neo4jDialect.applyAssociationOperation(Neo4jDialect.java:179) at org.hibernate.ogm.datastore.neo4j.Neo4jDialect.updateAssociation(Neo4jDialect.java:142) at org.hibernate.ogm.dialect.GridDialectLogger.updateAssociation(GridDialectLogger.java:133) at org.hibernate.ogm.util.impl.AssociationPersister.flushToCache(AssociationPersister.java:381) at org.hibernate.ogm.persister.OgmCollectionPersister.recreate(OgmCollectionPersister.java:570) at org.hibernate.action.internal.CollectionRecreateAction.execute(CollectionRecreateAction.java:67) at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:453) at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:345) at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:350) at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:56) at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1218) at org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:421) at org.hibernate.ogm.transaction.impl.JTATransactionManagerTransaction.beforeTransactionCommit(JTATransactionManagerTransaction.java:108) at org.hibernate.engine.transaction.spi.AbstractTransactionImpl.commit(AbstractTransactionImpl.java:177) at org.hibernate.ogm.backendtck.embeddable.EmbeddableTest.testElementCollectionOfEmbeddable(EmbeddableTest.java:115) {code}

    Hibernate JIRA | 3 years ago | Gunnar Morling
    java.lang.IllegalArgumentException: Null parameter, key=street2, value=null
  2. 0

    Using an {{@ElementCollection}} of an {{@Embeddable}} type with a null-valued property gives an exception in Neo4j. The reason is that no null values are allowed in Neo4j structures. {code} java.lang.IllegalArgumentException: Null parameter, key=street2, value=null at org.neo4j.kernel.impl.core.Primitive.setProperty(Primitive.java:292) at org.neo4j.kernel.impl.core.RelationshipProxy.setProperty(RelationshipProxy.java:173) at org.hibernate.ogm.datastore.neo4j.Neo4jDialect.createRelationship(Neo4jDialect.java:278) at org.hibernate.ogm.datastore.neo4j.Neo4jDialect.createRelationshipUnlessExists(Neo4jDialect.java:199) at org.hibernate.ogm.datastore.neo4j.Neo4jDialect.putAssociationOperation(Neo4jDialect.java:192) at org.hibernate.ogm.datastore.neo4j.Neo4jDialect.applyAssociationOperation(Neo4jDialect.java:179) at org.hibernate.ogm.datastore.neo4j.Neo4jDialect.updateAssociation(Neo4jDialect.java:142) at org.hibernate.ogm.dialect.GridDialectLogger.updateAssociation(GridDialectLogger.java:133) at org.hibernate.ogm.util.impl.AssociationPersister.flushToCache(AssociationPersister.java:381) at org.hibernate.ogm.persister.OgmCollectionPersister.recreate(OgmCollectionPersister.java:570) at org.hibernate.action.internal.CollectionRecreateAction.execute(CollectionRecreateAction.java:67) at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:453) at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:345) at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:350) at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:56) at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1218) at org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:421) at org.hibernate.ogm.transaction.impl.JTATransactionManagerTransaction.beforeTransactionCommit(JTATransactionManagerTransaction.java:108) at org.hibernate.engine.transaction.spi.AbstractTransactionImpl.commit(AbstractTransactionImpl.java:177) at org.hibernate.ogm.backendtck.embeddable.EmbeddableTest.testElementCollectionOfEmbeddable(EmbeddableTest.java:115) {code}

    Hibernate JIRA | 3 years ago | Gunnar Morling
    java.lang.IllegalArgumentException: Null parameter, key=street2, value=null
  3. 0

    justtrees broke

    GitHub | 3 years ago | josephwb
    java.lang.IllegalArgumentException: Null parameter, key=source_tree_id, value=null
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 97#45792637

    GitHub | 3 years ago | blackrim
    java.lang.IllegalArgumentException: Null parameter, key=source_tree_id, value=null
  6. 0

    GitHub comment 97#45792790

    GitHub | 3 years ago | blackrim
    java.lang.IllegalArgumentException: Null parameter, key=source_tree_id, value=null

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Null parameter, key=street2, value=null

      at org.neo4j.kernel.impl.core.Primitive.setProperty()
    2. Neo4j - Graph Database Kernel
      RelationshipProxy.setProperty
      1. org.neo4j.kernel.impl.core.Primitive.setProperty(Primitive.java:292)
      2. org.neo4j.kernel.impl.core.RelationshipProxy.setProperty(RelationshipProxy.java:173)
      2 frames
    3. org.hibernate.ogm
      GridDialectLogger.updateAssociation
      1. org.hibernate.ogm.datastore.neo4j.Neo4jDialect.createRelationship(Neo4jDialect.java:278)
      2. org.hibernate.ogm.datastore.neo4j.Neo4jDialect.createRelationshipUnlessExists(Neo4jDialect.java:199)
      3. org.hibernate.ogm.datastore.neo4j.Neo4jDialect.putAssociationOperation(Neo4jDialect.java:192)
      4. org.hibernate.ogm.datastore.neo4j.Neo4jDialect.applyAssociationOperation(Neo4jDialect.java:179)
      5. org.hibernate.ogm.datastore.neo4j.Neo4jDialect.updateAssociation(Neo4jDialect.java:142)
      6. org.hibernate.ogm.dialect.GridDialectLogger.updateAssociation(GridDialectLogger.java:133)
      6 frames
    4. Hibernate Object Grid Mapper
      AssociationPersister.flushToCache
      1. org.hibernate.ogm.util.impl.AssociationPersister.flushToCache(AssociationPersister.java:381)
      1 frame
    5. org.hibernate.ogm
      OgmCollectionPersister.recreate
      1. org.hibernate.ogm.persister.OgmCollectionPersister.recreate(OgmCollectionPersister.java:570)
      1 frame
    6. Hibernate
      SessionImpl.managedFlush
      1. org.hibernate.action.internal.CollectionRecreateAction.execute(CollectionRecreateAction.java:67)
      2. org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:453)
      3. org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:345)
      4. org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:350)
      5. org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:56)
      6. org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1218)
      7. org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:421)
      7 frames
    7. Hibernate Object Grid Mapper
      JTATransactionManagerTransaction.beforeTransactionCommit
      1. org.hibernate.ogm.transaction.impl.JTATransactionManagerTransaction.beforeTransactionCommit(JTATransactionManagerTransaction.java:108)
      1 frame
    8. Hibernate
      AbstractTransactionImpl.commit
      1. org.hibernate.engine.transaction.spi.AbstractTransactionImpl.commit(AbstractTransactionImpl.java:177)
      1 frame
    9. org.hibernate.ogm
      EmbeddableTest.testElementCollectionOfEmbeddable
      1. org.hibernate.ogm.backendtck.embeddable.EmbeddableTest.testElementCollectionOfEmbeddable(EmbeddableTest.java:115)
      1 frame