-debugging a thread exception error in CoapSocket.java class