title: Javapns give InvalidDeviceTokenFormatException
body: <p>I'm using Java PNS to send notification. However, i'm getting the follwoing error:</p>
  
  <pre><code>javapns.devices.exceptions.InvalidDeviceTokenFormatException: Device Token has a length of [140] and not the required 64 bytes!eror has occusred:Device Token has a length of [140] and not the required 64 bytes!
  
          at javapns.devices.implementations.basic.BasicDevice.validateTokenFormat(BasicDevice.java:67)
          at javapns.devices.implementations.basic.BasicDevice.&lt;init&gt;(BasicDevice.java:49)
          at javapns.devices.implementations.basic.BasicDevice.&lt;init&gt;(BasicDevice.java:37)
  </code></pre>
  
  <p>this how I created my device list:</p>
  
  <pre><code>List&lt;Device&gt; newList = new ArrayList&lt;Device&gt;();
              Iterator&lt;String&gt; tempItr = v.iterator();
              while (tempItr.hasNext()) {
                  String myDeviceToken = (String) (vItr.next());
                  try {
                      BasicDevice device = new BasicDevice(myDeviceToken);
  
                      newList.add(device);
  
                  } catch (Exception e) { // error=2; // notification issue
                      System.out.println("eror has occusred:" + e.getMessage());
                      e.printStackTrace();
  
                  }
              }
  </code></pre>
  
  <p>any clue why it's giving invalid token format:</p>