java.lang.NullPointerException: Map values cannot be null

DataStax JIRA | Jacques-Henri Berthemet | 2 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.

    Root Cause Analysis

    1. java.lang.NullPointerException

      Map values cannot be null

      at com.datastax.driver.core.TypeCodec$MapCodec.serialize()
    2. DataStax Java Driver for Apache Cassandra - Core
      BoundStatement.set
      1. com.datastax.driver.core.TypeCodec$MapCodec.serialize(TypeCodec.java:1872)
      2. com.datastax.driver.core.TypeCodec$MapCodec.serialize(TypeCodec.java:1756)
      3. com.datastax.driver.core.AbstractData.set(AbstractData.java:555)
      4. com.datastax.driver.core.AbstractData.set(AbstractData.java:541)
      5. com.datastax.driver.core.BoundStatement.set(BoundStatement.java:840)
      5 frames
    3. com.datastax.driver
      Mapper.save
      1. com.datastax.driver.mapping.Mapper.setObject(Mapper.java:229)
      2. com.datastax.driver.mapping.Mapper.saveQuery(Mapper.java:205)
      3. com.datastax.driver.mapping.Mapper.saveQuery(Mapper.java:162)
      4. com.datastax.driver.mapping.Mapper.save(Mapper.java:240)
      4 frames
    4. com.genesys.ucs
      CassandraTestor.test
      1. com.genesys.ucs.CassandraTestor.test(CassandraTestor.java:70)
      1 frame