MIDP application blocked by Connector.Open (..)

I had the worst time of my life trying to understand why this is happening, any input will be greatly appreciated.

This code runs in a different thread and then in a middlelet, although the thread starts after the connection is made, I tried the other way around and I end up in the same place.

When executing this line (with a verified 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 message:

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

      

+2


source to share


1 answer


I think you should implement your socket and networking code / modules in a separate thread.



0


source







All Articles