EOFException

297 views
Skip to first unread message

Marian Perca

unread,
Jun 18, 2013, 7:03:18 AM6/18/13
to robo...@googlegroups.com
Hi, 

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

Can anyone help me with this?
Thanks!

Stéphane Nicolas

unread,
Jun 21, 2013, 6:22:18 PM6/21/13
to robo...@googlegroups.com
This is a SpringAndroid error to indicate that there is no content when reading the headers of the response.
Are you sure to target an http server correctly in your request ? 

If your bug persists, please contact SpringAndroid, they will be more helpful here.

Stéphane


2013/6/18 Marian Perca <marian...@gmail.com>

--
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes RoboSpice.
Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse robospice+...@googlegroups.com.
Pour plus d'options, visitez le site https://groups.google.com/groups/opt_out .
 
 



--
Stéphane NICOLAS,
OCTO Technology 
Développeur & Consultant Android / Java
..........................................................
50, Avenue des Champs-Elysées
75008 Paris
+33 (0)6.26.32.34.09
www.octo.com - blog.octo.com
www.usievents.com
...........................................................
Reply all
Reply to author
Forward
0 new messages