| Reply | « Previous Thread | Next Thread » |
|
Hi all,
I've developed an application for Nokia model 7650, that connects to a remote server with HTTP. After I've made a connection successfully (just an instance with Connector's static open(String url) -method), I naturally want to read the response. When querying int status = httpConnectionInstance.getResponseCode(); Java VM throws java.io.IOException with message 'Status = -18' or 'Status = -33'. These error messages are weird to me, does someone know what they mean or where they come from? I'm using Sonera's gateway. Thank You in advance, anssi |
|
I got a status = -9 :(
|
|
Hello!
Could somebody from Nokia please reply to this, as it seems many are having this same problem? I have gotten both exit codes -9 and -18 while experimenting with http-connections and have as of yet not been able to get them to work with the phone (though they work fine in the emulator). Could you please explain what these error-codes mean? Has somebody been successful in making http-requests work over a gprs-connection with the 7650? Regards, Johan |
|
Hi
I have a similar problem (I get the java.io.IOException when calling the getResponseCode() method), but it works when I try connecting to servers within my company's intranet (i.e. that do not require proxy servers). Does anyone know how the HTTPConnection can be configured to use a proxy server? |
|
Hi again.
I'm starting to suspect that there is a bug in the phone's firmware, since even the basic sample application Sum provided by Nokia does not work on the phone itself although it works fine in the emulator. An IOException is thrown with the message 'Status = -18' when trying to send the entered number to the servlet. I've tried different ports, including 8080 (Servlet/HTTP-proxy), 80 (HTTP) and 143 (IMAP) to rule out some kind of blocking by the operator (the imap-mails can be read ok with the device from any server, so a port-block is unlikely to be the reason for the error). It would be appreciated if someone from Nokia commented this. Do we have to switch to C++ to get network connections working? Best regards, Johan |
|
HttpConnection works fine(is fully functional) on the Nokia 7650. Try downloading "Coolaz Comics Nokia 7650 v.1.0.4" from http://www.midletcentral.com under the applications category. Futhermore all applications by this vendor targeted for the 7650 work with HttpConnections both with the old and new firmware.
|
|
I get the status codes -33 and -21.
PLEASE CAN SOMEBODY AT NOKIA RESPOND TO THIS THREAD AND EXPLAIN THESE CODES TO US. Sorry about the screaming, just know a lot of people want this answered. |
| anderspanders |
| View Public Profile |
| Find all posts by anderspanders |
|
I'm also getting these weird exceptions. The connection works well initially, but after a while it throws status = -20019. It's like it gets tired or something :). I try again a few times after catching this exception, but the connection refuses to work anymore. On the retrys I get all sorts of status codes, including -9 and -18 like some of you, but also -20015 and -4. I don't see any pattern except that the first exception is always -20019.
|
|
To answer my own question...
After spending a lot of time searching the web I found a document describing the error codes produced on symbian phones: http://www.symbian.com/developer/techlib/papers/errores/Erresapi.html |
| anderspanders |
| View Public Profile |
| Find all posts by anderspanders |
|
Thanks a lot, this should help us...
Although... What does "-18 = not ready" mean, really? :-) |
| weatherman |
| View Public Profile |
| Find all posts by weatherman |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|