Reputation: 123
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
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
Reputation: 7385
Dont forget the midlet permissions in the Jad file too. They too may cause an error.
Upvotes: 0
Reputation: 8671
All sorts of possible causes:
Which API call in particular generates the exception?
Upvotes: 1