• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Urgent! Help needed

 
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have the J2ME application working on the emulator and some features of the J2ME app working on the Palm VIIx device. However, I coudn't get a J2ME app talk to a http server over the builtin wireless connection on the actual Palm VIIx device.
Partial code is in the following:
...............
try {
String url = "http://quote.yahoo.com/d";
Connector.openDataInputStream(url);
} catch (Exception e ) {
t = new TextBox ("Error", e.toString(), 1024,0);
}
.............
When running on the actual device, I got an IllegalArgumentException at the line :
Connector.openDataInputStream(url);

I am desparate on this issue. Any help will be greatly appreciated.
Liang

------------------
 
liang gu
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Solution found.
using:
String url = "inethttp://quote.yahoo.com/d";
instead of
String url = "http://quote.yahoo.com/d";
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That problem appears to be unique to the Palm VIIx with built-in wireless - how annoying - it uses a slightly different library.
Bill
 
Do the next thing next. That’s a pretty good rule. Read the tiny ad, that’s a pretty good rule, too.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic