Hi.
First of all some background. I'm developing a client/server app with J2ME, using Nokia's Toolkit for Symbian. I do frequent polling with HTTP requests using an HttpConnection.
When I start running the application, it works well. However, sooner or later the connection somehow fails. The following exception is thrown:
java.io.IOException: Status = -20019
when I try to get the response code with the following line:
status = c.getResponseCode(); (c is the HttpConnection object)
What's really strange is that when I check the web server's log, I can see that the connection was made, and according to the logs the response code is 200. But this isn't reaching back the MIDlet, like I said, an IOException is thrown when I try getting the response code.
Does anyone know the meaning of the above mentioned exception?
I must add that I am running two emulators (EPOC32) simultaneously, and one of them is always polling the server for updates (and I suspect this might have something to do with it).
[edit]
Upon closer inspection of the server's logs, I realized that the requests aren't reaching the server. Can anyone tell me why the Connection would suddenly stop working? Even if I make some retrys after catching this exception, the connection doesn't come back.
[/edit]

Reply With Quote




