title: Cassandra insertion: InvalidQueryException: Invalid null value in condition for column
body: <p>Hi I'm starting working with Cassandra, I'm trying to insert data into Cassandra table using this code in Java in REST server created by DropWizard</p>
  
  <pre><code>    public int insertqueueid(Datafilter data) throws UnknownHostException 
      {
      PreparedStatement prep = defaultSession.prepare("insert into queueid (queueid, filter, nom, date) values (?,?,?,?)");
      BoundStatement bound = prep.bind(data.getQueued(),data.getFilter(),getName(), new Date()) ;
      defaultSession.execute(bound);
      return 0 ;
      }
  </code></pre>
  
  <p>But it gives me this error :</p>
  
  <blockquote>
    <p>ERROR [2017-07-03 23:45:57,514] io.dropwizard.jersey.errors.LoggingExceptionMapper: Error handling a request: 5d2d169dd71c2520
    ! com.datastax.driver.core.exceptions.InvalidQueryException: Invalid null value in condition for column queueid
    ! at com.datastax.driver.core.Responses$Error.asException(Responses.java:136)
    ! at com.datastax.driver.core.DefaultResultSetFuture.onSet(DefaultResultSetFuture.java:179)
    ! at com.datastax.driver.core.RequestHandler.setFinalResult(RequestHandler.java:177)</p>
  </blockquote>
  
  <p>What do you think, it's the problem ?<br>
  Sorry for bad language  </p>