title: java.net.SocketException:connectionreset with eclipse
body: <p>everytime it is getting the same error like 
      java.net.SocketException </p>
  
  <pre><code>in java.net.SocketException: Connection reset
      at java.net.SocketInputStream.read(Unknown Source)
      at java.net.SocketInputStream.read(Unknown Source)
      at java.net.SocketInputStream.read(Unknown Source)
      at java.io.FilterInputStream.read(Unknown Source)
      at Server.TcpServer.main(TcpServer.java:37)
  my code at the following line....
  
  phonenumber = Long.parseLong(query, inFromTcpClient.read());
  thanks in advance...
  </code></pre>