title: USB GSM Modem (Huawei e160) Error while connecting?
body: <pre><code>javax.comm.NoSuchPortException  at javax.comm.CommPortIdentifier.getPortIdentifier
  </code></pre>
  
  <p><a href="https://stackoverflow.com/questions/4040665/sending-smstext-from-java-code-to-mobile-phone-in-windows">sending sms(text) from java code to mobile phone in windows</a></p>
  
  <p>i am using the above link source code .. but i am getting errors</p>
  
  <pre><code>javax.comm.NoSuchPortException
      at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:105)
      at com.codon.sms.SerialConnection.openConnection(SerialConnection.java:71)
      at com.codon.sms.Sender.send(Sender.java:45)
      at com.codon.sms.SMSClient.run(SMSClient.java:33)
      at java.lang.Thread.run(Unknown Source)
  java.lang.NullPointerException
      at com.codon.sms.SerialConnection.openConnection(SerialConnection.java:90)
      at com.codon.sms.Sender.send(Sender.java:45)
      at com.codon.sms.SMSClient.run(SMSClient.java:33)
      at java.lang.Thread.run(Unknown Source)
  </code></pre>