This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java Micro Edition and the fly likes Error  Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Error  "Blocking call performed in the event thread"" Watch "Error  "Blocking call performed in the event thread"" New topic
Author

Error "Blocking call performed in the event thread"

kalyen kumar
Ranch Hand

Joined: Sep 18, 2008
Posts: 53
Hi,

My j2me login application runs properly and logs me in when I run it in the emulator as follows

Run Project -> loginApp

But if I run the login application as follows

Run Project via OTA -> loginApp

then I get the following message after I click login

"Blocking call performed in the event thread"

Any idea what is the reason for this....?

Thanks in advance

kalyen kumar
Ranch Hand

Joined: Sep 18, 2008
Posts: 53
Its working for me now and the problem was,

The commandAction was simply calling the respective functions.
Instead, when I started a new thread for each case in commandAction and in that thread, called the respective function,
everything seems to be fine.



Thanks everybody for giving me this opportunity.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Error "Blocking call performed in the event thread"
 
Similar Threads
Java Debugger API example - Trace.java running problem
Struts2 newbee - Problem when using form tag
GPRS + J2ME Related queires
Problem in Deployment
Mutable Property in Ant Script