You Are Here:

Community: Developer Discussion Boards

#1 Old IOException while connecting with 7650 - 2002-05-22, 12:18

Join Date: Mar 2003
Posts: 1
sp_anssi
Offline
Registered User
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
Reply With Quote

#2 Old RE: IOException while connecting with 7650 - 2002-06-23, 09:31

Join Date: Mar 2003
Posts: 15
jstorm
Offline
Registered User
I got a status = -9 :(
Reply With Quote

#3 Old RE: IOException while connecting with 7650 - 2002-07-16, 17:42

Join Date: Mar 2003
Posts: 9
jengstro
Offline
Registered User
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
Reply With Quote

#4 Old RE: IOException while connecting with 7650 - 2002-07-17, 05:42

Join Date: Mar 2003
Posts: 9
meherzad
Offline
Registered User
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?
Reply With Quote

#5 Old RE: IOException while connecting with 7650 - 2002-07-17, 13:56

Join Date: Mar 2003
Posts: 9
jengstro
Offline
Registered User
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
Reply With Quote

#6 Old RE: IOException while connecting with 7650 - 2002-10-23, 11:14

Join Date: Mar 2003
Posts: 30
coolazmi
Offline
Registered User
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.
Reply With Quote

#7 Old RE: IOException while connecting with 7650 - 2003-03-04, 17:01

Join Date: Mar 2003
Posts: 7
anderspanders
Offline
Registered User
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.
Reply With Quote

#8 Old RE: IOException while connecting with 7650 - 2003-03-05, 07:27

Join Date: Mar 2003
Posts: 2,280
Location: Israel
shmoove
Offline
Forum Nokia Champion
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.
Reply With Quote

#9 Old RE: IOException while connecting with 7650 - 2003-03-07, 08:07

Join Date: Mar 2003
Posts: 7
anderspanders
Offline
Registered User
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
Reply With Quote

#10 Old WOW - 2003-08-16, 14:46

Join Date: Mar 2003
Posts: 8
weatherman
Offline
Registered User
Thanks a lot, this should help us...

Although... What does "-18 = not ready" mean, really? :-)
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia