You Are Here:

Community: Developer Discussion Boards

#1 Old Nokia 7650 IOException: Status =-9 - 2003-04-12, 21:15

Join Date: Apr 2003
Posts: 2
antovskiljupco
Offline
Registered User
I am using Nokia 7650 with GSM Analog Data connection over Kanel 1.2.1 WAP Gateway. The sample from Sun and the Network Midlet Sample from Nokia Forum produces the IOException: Status =-9 when httpconnection is used, or blocks on that section.

Here is an extract from the code I've used:
String url=.....
HttpConnection c = null;
InputStream is = null;
try {
c = (HttpConnection)Connector.open(url);
is = c.openInputStream();
String type = c.getType();
int len = (int)c.getLength();
if (len > 0) {
byte[] data = new byte[len];
int actual = is.read(data);
//...
String response = new String(data);
Alert aa = new Alert("Response", response, null, null);
aa.setTimeout(Alert.FOREVER);
display.setCurrent(aa, inForm);

} else {
int ch;
while ((ch = is.read()) != -1) {
//...
}
}
} finally {
if (is != null)
is.close();
if (c != null)
c.close();
}

Could the problem be in the GSM network or Wap gateway not supporting http or something? By the way the POP3 and SMTP protocols are working fine.

Thanks in advance.
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