tags:

views:

49

answers:

3

Hi,

I am trying to make an Http connection in a J2ME application.

Problem is that it is running fine in the emulator; but in a mobile, it is showing IO exception- Error in Http Operation.

Can anyone tell me what prompts this kind of error. Thanks in adv.

+1  A: 

All sorts of possible causes:

  • Incorrect network settings
  • No mobile reception
  • No credit on PAYG
  • URL inaccessible through mobile operator's walled garden

Which API call in particular generates the exception?

funkybro
A: 

Dont forget the midlet permissions in the Jad file too. They too may cause an error.

omermuhammed
A: 

Hi... Thanks for your answers. Seems like it was a very stupid mistake on my part...I had'nt written the Connection code within a thread. Small change solved the problem. Just rewrote the Connection part within run() of thread.

pujakhemka