Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Socket operation on nonsocket

1 view
Skip to first unread message

Mikael Petterson

unread,
Jul 17, 2003, 3:06:04 PM7/17/03
to
Hi,

I have an SMSModule that:

* connects to an SMS center via a socket.
* sends an SMS.
* disconnects
* if SMS send fails then sms is put in queue and we do the whole thing
again.

This worked fine when I only did one sms. But when I put them in a queue
I got this problem.

Any hints or ideas?

//Mikael

Trace
********************
Sending sms to queue
now waiting...
Queue is not empty sending.....
class com.lightlabs.teaching.help.lab3.SMSModule:send()
class com.lightlabs.teaching.help.lab3.SMSModule:connect()
class com.lightlabs.teaching.help.lab3.MSIPProtocolHandler:connect()
MSIPIncomingHandlerThread starting...
GOT: !LogonConf:
mSIP Kommando var: !LogonConf
CoolFlix log: MSIPProtocolHandler;setLoggedin(true)
Is the module connected? :true
CoolFlix log: MSIPProtocolHandler;sendSMS
CoolFlix log: Waiting for response from SMSC
MSIPIncomingHandlerThread starting...
GOT: SubmitConf:MsgReference=9,At=1058494566369,
mSIP Kommando var: SubmitConf
CoolFlix log: MSIPProtocolHandler:setMessageSent()
GOT:
StatusInd:MsgReference=9,Sequence=11,At=1058494567359,Originator=0046702673044,Status=buffered,Reason=0,Time=1058494567,
mSIP Kommando var: StatusInd
CoolFlix log: MSIPProtocolHandler:getMessageSent()
CoolFlix log: Message has been sent
CoolFlix log: MSIPProtocolHandler:setMessageSent()
class com.lightlabs.teaching.help.lab3.SMSModule:disconnect()
class com.lightlabs.teaching.help.lab3.MSIPProtocolHandlerdisconnect()
GOT:
StatusInd:MsgReference=9,Sequence=12,At=1058494576359,Originator=0046702673044,Status=delivered,Reason=0,Time=1058494576,
mSIP Kommando var: StatusInd
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)
at
sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:445)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:179)
at java.io.InputStreamReader.read(InputStreamReader.java:167)
at java.io.BufferedReaMSIPIncomingHandlerThread dying...
der.fill(BufferedReader.java:136)
at java.io.BufferedReader.readLine(BufferedReader.java:299)
at java.io.BufferedReader.readLine(BufferedReader.java:362)
at
com.lightlabs.teaching.help.lab3.MSIPIncomingHandlerThread.run(MSIPIncomingHandlerThread.java:31)
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)
at
sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:445)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:179)
at java.io.InputStreamReader.read(InputStreamReader.java:167)
at java.io.BufferedReader.fill(BufferedReader.java:136)
at java.io.BufferedReader.readLine(BufferedReader.java:299)
at java.io.BufferedReader.readLine(BufferedReader.java:362)
at
com.lightlabs.teaching.help.lab3.MSIPIncomingHandlerThread.run(MSIPIncomingHandlerThreaMSIPIncomingHandlerThread
dying...
d.java:31)
Queue is not empty sending.....

0 new messages