• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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
 
I didn't do it. You can't prove it. Nobody saw me. The sheep are lying! This tiny ad is my witness!
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic