I have an API on a public server and the same one on my local machine. Everything is working fine if I use the API from the public server, but when I switch to the local one I get the following error:
06-18 13:53:40.507: E/(22870): An exception occured during request network execution :I/O error: null; nested exception is java.io.EOFException
06-18 13:53:40.507: E/(22870): org.springframework.web.client.ResourceAccessException: I/O error: null; nested exception is java.io.EOFException
06-18 13:53:40.507: E/(22870): at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:491)
06-18 13:53:40.507: E/(22870): at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:439)
06-18 13:53:40.507: E/(22870): at org.springframework.web.client.RestTemplate.postForObject(RestTemplate.java:317)
06-18 13:53:40.507: E/(22870): at co.uk.thesoftwarefarm.swooshapp.api.LoginRequest.loadDataFromNetwork(LoginRequest.java:34)
06-18 13:53:40.507: E/(22870): at co.uk.thesoftwarefarm.swooshapp.api.LoginRequest.loadDataFromNetwork(LoginRequest.java:1)
06-18 13:53:40.507: E/(22870): at com.octo.android.robospice.request.CachedSpiceRequest.loadDataFromNetwork(CachedSpiceRequest.java:45)
06-18 13:53:40.507: E/(22870): at com.octo.android.robospice.request.RequestProcessor.processRequest(RequestProcessor.java:235)
06-18 13:53:40.507: E/(22870): at com.octo.android.robospice.request.RequestProcessor$3.run(RequestProcessor.java:295)
06-18 13:53:40.507: E/(22870): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:390)
06-18 13:53:40.507: E/(22870): at java.util.concurrent.FutureTask.run(FutureTask.java:234)
06-18 13:53:40.507: E/(22870): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
06-18 13:53:40.507: E/(22870): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
06-18 13:53:40.507: E/(22870): at java.lang.Thread.run(Thread.java:856)
06-18 13:53:40.507: E/(22870): Caused by: java.io.EOFException
06-18 13:53:40.507: E/(22870): at libcore.io.Streams.readAsciiLine(Streams.java:203)
06-18 13:53:40.507: E/(22870): at libcore.net.http.HttpEngine.readResponseHeaders(HttpEngine.java:573)
06-18 13:53:40.507: E/(22870): at libcore.net.http.HttpEngine.readResponse(HttpEngine.java:821)
06-18 13:53:40.507: E/(22870): at libcore.net.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:283)
06-18 13:53:40.507: E/(22870): at libcore.net.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:495)
06-18 13:53:40.507: E/(22870): at org.springframework.http.client.SimpleClientHttpResponse.getRawStatusCode(SimpleClientHttpResponse.java:54)
06-18 13:53:40.507: E/(22870): at org.springframework.http.client.SimpleClientHttpResponse.getStatusCode(SimpleClientHttpResponse.java:80)
06-18 13:53:40.507: E/(22870): at org.springframework.web.client.DefaultResponseErrorHandler.hasError(DefaultResponseErrorHandler.java:46)
06-18 13:53:40.507: E/(22870): at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:477)
06-18 13:53:40.507: E/(22870): ... 12 more