title: Java program to insert value in Aerospike database not working
body: <p>I have written a java program to insert an integer and a double in aerospike database. Here is the code snippet </p>
  
  <pre><code>import com.aerospike.client.AerospikeClient;
  import com.aerospike.client.Bin;
  import com.aerospike.client.Key;
  import com.aerospike.client.policy.WritePolicy;
  
  public class Test{
  
  public static void main(String[] args){
      try{
          AerospikeClient client = new AerospikeClient("192.168.140.62", 3000);
  
          for(int i=0;i&lt;10000;i++){
              try {
                  WritePolicy writePolicy =  new WritePolicy();
                  Key key = new Key("test" , "myset", "mykey");
                  double randomDouble = Math.random();
                  Bin bin1 = new Bin("ID",i);
                  Bin bin2 = new Bin("Value",randomDouble);
  
                  client.put(writePolicy,key,bin1,bin2);
  
              } catch (Exception e) {
                  e.printStackTrace();
              }   
          }
          client.close();
  
      }
      catch(Exception e){
          e.printStackTrace();
      }
  }
  </code></pre>
  
  <p>}</p>
  
  <p>The problem is the above code snippet is neither inserting any data nor throwing any errors. Please advise. 
  PS: I am new to aerospike</p>