HTTP Post completely exiting thread, no exception caught, or hangs forever
<p>I knew my code was dying somehow because of the other symptoms, but even though I had try/catch around everything, there was never any message.  I've now finally narrowed it down by use of successive output statements.</p>

<pre><code>    String line = null;
    try {
        final HttpParams httpParams = new BasicHttpParams();
        HttpConnectionParams.setConnectionTimeout(httpParams, 30000);    
        DefaultHttpClient httpClient = new DefaultHttpClient(httpParams);
        HttpPost httpPost = new HttpPost(url);
        postDebugMessage("GlobalApplication", "Info", "Executing httppost");
        HttpResponse httpResponse = httpClient.execute(httpPost);
        postDebugMessage("GlobalApplication", "Info", "Getting entity");
        HttpEntity entity = httpResponse.getEntity();
        postDebugMessage("GlobalApplication", "Info", "Converting to line");
        line = EntityUtils.toString(entity);   //&lt;- the bad one
        postDebugMessage("GlobalApplication", "Info", "Conversion completed.");
    }
    catch (Exception ex) {
        // Any error occurring here we're going to state is
        // a network error.
        postDebugMessage("GlobalApplication", "Exception", ex.getStackTrace()[0].toString());
        throw new NetworkNotAvailableException(ex.toString());

    }
</code></pre>

<p>Based on my debug output statements, the line = EntityUtils.toString(entity) never completes, and no statement after that in the entire service thread executes...the whole thing just vanishes.</p>

<p>I know that EntityUtils.toString() can throw 2 exceptions, an IOException and a ParseException, and I'm going to try and add those next, but shouldn't an overall Exception catch it?</p>
