File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java Micro Edition and the fly likes Urgent! Help needed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Urgent! Help needed" Watch "Urgent! Help needed" New topic
Author

Urgent! Help needed

liang gu
Ranch Hand

Joined: Nov 05, 2001
Posts: 89
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

Joined: Nov 05, 2001
Posts: 89
Solution found.
using:
String url = "inethttp://quote.yahoo.com/d";
instead of
String url = "http://quote.yahoo.com/d";
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12760
    
    5
That problem appears to be unique to the Palm VIIx with built-in wireless - how annoying - it uses a slightly different library.
Bill
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Urgent! Help needed
 
Similar Threads
Writting Email App on Palm VIIx device
Wireless connection speed for J2ME app on Palm VIIx device
Opening comm. Connection on Palm VIIx
Why the wireless connection is so slow in J2ME
Palm VIIx Wireless application??