views:

151

answers:

0

Hi all i've been having the worst time of my life trying to understand why this is happening, any input would be greatly appriciated.

The code in question runs in a diffrent thread then the midlet, although the thread starts after the connection is made, I've tried the other way around and i end up at the same spot..

when executing this line (with a proven and working server address of course):

this.socket = (SocketConnection) Connector.open(url);

nothing happens and when I hit pause in debug It takes me to this msg:

  • @exception IllegalMonitorStateException if the current thread is not
  • the owner of the object's monitor.