title: Java openStream error
body: <p>I am using the method openStream with Java </p>
  
  <pre><code>in = new BufferedReader(new InputStreamReader(url.openStream(), "UTF-8"));
  </code></pre>
  
  <p>How long is the method waiting of a response from the service where the URL is sended?</p>
  
  <p>I am becoming same times errors messages like this and i don't know why.</p>
  
  <pre><code>java.net.UnknownHostException: dev.virtualearth.net
  
                 at java.net.PlainSocketImpl.connect(Unknown Source)
                 at java.net.Socket.connect(Unknown Source)
                 at java.net.Socket.connect(Unknown Source)
                 at sun.net.NetworkClient.doConnect(Unknown Source)
                 at sun.net.www.http.HttpClient.openServer(Unknown Source)
                 at sun.net.www.http.HttpClient.openServer(Unknown Source)
                 at sun.net.www.http.HttpClient.&lt;init&gt;(Unknown Source)
                 at sun.net.www.http.HttpClient.New(Unknown Source)
                 at sun.net.www.http.HttpClient.New(Unknown Source)
                 at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
                 at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
                 at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
                 at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
                 at java.net.URL.openStream(Unknown Source)
  </code></pre>
  
  <p>Thanks</p>