aspose file tools*
The moose likes Java Micro Edition and the fly likes Second Time: MIDlet cann't connect to servlet on website Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Second Time: MIDlet cann Watch "Second Time: MIDlet cann New topic
Author

Second Time: MIDlet cann't connect to servlet on website

Bander Al-Mehmadi
Greenhorn

Joined: Jan 09, 2005
Posts: 4
Hello guys,

I posted my problem yesterday hopping that some one will help me!

but, sadly, no one was intrested to reply to me! As I sed I'm new here, & I hope to see some guidness!

i'm working on a simple MIDlet that connect to a servlet on test website (stream in & out simple text), but the problem that the MIDlet enters a waiting state & never finishes!!

I test it localy on tomcat Server it works fine, Also there is no problem in my Internet connection,SO? is there any kind of different setting between a MIDlet talking to a Local servlet (on tomcat)OR Remote Servlet(on website)?
Pam Ludford
Greenhorn

Joined: Jan 04, 2005
Posts: 4
What kind of device are you coding for?

I had a similar problem coding for a Motorola iDEN cell phone, and the problem was that the device software couldn't handle a port number in the URL. It worked fine on the Motorola SDK emulator, but didn't work when I loaded the code on the phone. I resolved it by using the default port number in the URL.
Bander Al-Mehmadi
Greenhorn

Joined: Jan 09, 2005
Posts: 4
Hi,

Thanks for your reply, I didn't yet but it on the device(P900), the Emulater cann't connect to the server, I'm using WSDD IDE with it's default Emulater.
viktor berzsinszky
Greenhorn

Joined: Jan 13, 2005
Posts: 1
check your gprs settings.
use a web [internet] gateway.
--> web.orange.com
not wap.orange.com

you should encode your request, so there is no space in it
--> http://test.yodel.de/test.php?foo=my super foo // wont work
--> http://test.yodel.de/test.php=foo=my%20super%20foo // should do

check the headers of your request
content-length... etc...
some server cannot handle the request without....

keep on trying!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Second Time: MIDlet cann't connect to servlet on website
 
Similar Threads
How to connect the mobile device to server
java.io.exception with SonyEricsson T630
phone identify
MIDlet cann't connect to servlet on website
Problem with SSL connection