Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Warning: To avoid potential deadlock networking, should be performed in a diff.thread.

 
vibhor Bhat
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i am trying to do networking with the help of HttpConnection class but always get this warning either i use thread or not..


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

and after this the MIDP application is not working.

this is my code & it is a code for a mobile application.
anybody can please update this code because i am trying to call in a different thread but its not working.





[HENRY: Added Code Tags]
 
Henry Wong
author
Marshal
Pie
Posts: 20907
76
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
anybody can please update this code because i am trying to call in a different thread but its not working.


How are you "trying to call in a different thread"? I don't see any threading code here.

Henry
 
Chanakya Gupta
Ranch Hand
Posts: 37
Fedora Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vibhor

Sorry for picking up an old thread !
But we are getting the same error
while running a MIDlet.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic