P
Petterson Mikael
Hi,
I have coded a package that sends an sms via a gateway.
Here is what is happening:
* I create a singleton of my SMSModule.
* I create an sms object.
* I put the object in a Queue.
* I start a new Thread in my sms module that reads sms from queue.
* I connect to sms gateway.
* I send the sms.
* I disconnect from socket! This is where things go wrong and I get the
following error (see below).
I have a zip file with the code so if you have time to take a look at it
I would appreciate it.
I am also interested in looking at other examples of code just so I can
figure out what is going wrong.
I have been stuck on this matter for a while so your help will be
greatly appreciated.
//Mikael
GOT: !LogoffConf: mSIP
Kommando var: !LogoffConf
CoolFlix log: MSIPProtocolHandler;setLoggedin(false) We got LogOffConf
Waiting ......for thread to die
java.net.SocketException: Socket operation on nonsocket: JVM_recv in
socket input stream read at
java.net.SocketInputStream.socketRead0(Native Method) at
java.net.SocketInputStream.read(SocketInputStream.java:116) at
sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:405)
I have coded a package that sends an sms via a gateway.
Here is what is happening:
* I create a singleton of my SMSModule.
* I create an sms object.
* I put the object in a Queue.
* I start a new Thread in my sms module that reads sms from queue.
* I connect to sms gateway.
* I send the sms.
* I disconnect from socket! This is where things go wrong and I get the
following error (see below).
I have a zip file with the code so if you have time to take a look at it
I would appreciate it.
I am also interested in looking at other examples of code just so I can
figure out what is going wrong.
I have been stuck on this matter for a while so your help will be
greatly appreciated.
//Mikael
GOT: !LogoffConf: mSIP
Kommando var: !LogoffConf
CoolFlix log: MSIPProtocolHandler;setLoggedin(false) We got LogOffConf
Waiting ......for thread to die
java.net.SocketException: Socket operation on nonsocket: JVM_recv in
socket input stream read at
java.net.SocketInputStream.socketRead0(Native Method) at
java.net.SocketInputStream.read(SocketInputStream.java:116) at
sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:405)