• 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

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

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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)?
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
reply
    Bookmark Topic Watch Topic
  • New Topic