Run time error in Invoking Servlet to J2ME tool kit
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Rasika_Attanayake
Posted On:   Sunday, March 27, 2005 10:56 PM



I am tried to invoke a servlet to my J2ME tool kit.
invoking will happen when user press command button on
the mobile phone, but when i do this there were run
time error called

"Warning: To avoid potential deadlock, operations that
may block, such asnetworking, should be performed in a
different thread than the commandAction() handler."

There are no compile errors and also i am using Jrun
webserver.

Re: Run time error in Invoking Servlet to J2ME tool kit

Posted By:   Rohit_Arora  
Posted On:   Monday, March 28, 2005 03:34 AM

Hi Rasika

You should always use a separate thread for making blocking calls such as an HTTP request. The emulator gives the same warning. You can make appropriate changes in your midlet to make the http request in a separate thread and the problem will be solved.



`RoHiT
About | Sitemap | Contact