pujakhemka
pujakhemka

Reputation: 123

Http Error in J2ME app

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.

Upvotes: 0

Views: 641

Answers (3)

pujakhemka
pujakhemka

Reputation: 123

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.

Upvotes: 0

omermuhammed
omermuhammed

Reputation: 7385

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

Upvotes: 0

funkybro
funkybro

Reputation: 8671

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?

Upvotes: 1

Related Questions