Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Error in SMPP connection  RSS feed

 
Suchi Choudhary
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have successfully connected my client with the SMSC and able to send both short and long messages(both english and chinese).
i am using Logica SMPP code downloaded from net.

as we have to bind ourself all the time, i used to get these error quite regularly and rapidly.

1)java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at javax.net.DefaultSocketFactory.createSocket(Unknown Source)
at com.knowcross.gmhs.smpp.TCPIPConnection.open(TCPIPConnection.java:249)
at com.knowcross.gmhs.smpp.Session.open(Session.java:272)
at com.knowcross.gmhs.smpp.Session.bind(Session.java:403)
at com.knowcross.gmhs.wsdldao.smsserviceimpl.SMPPInterface.bindTransmitter(SMPPInterface.java:205)
at com.knowcross.gmhs.smpp.controller.SMPPReceiver$EnquiryLink.enquireLink(SMPPReceiver.java:201)
at com.knowcross.gmhs.smpp.controller.SMPPReceiver$EnquiryLink.run(SMPPReceiver.java:157)

2java.net.SocketException: Software caused connection abort: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(Unknown Source)
at java.net.SocketOutputStream.write(Unknown Source)
at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
at java.io.BufferedOutputStream.write(Unknown Source)
at com.knowcross.gmhs.smpp.TCPIPConnection.send(TCPIPConnection.java:348)
at com.knowcross.gmhs.smpp.Transmitter.send(Transmitter.java:69)
at com.knowcross.gmhs.smpp.Session.send(Session.java:931)
at com.knowcross.gmhs.smpp.Session.send(Session.java:986)
at com.knowcross.gmhs.smpp.Session.enquireLink(Session.java:740)
at com.knowcross.gmhs.smpp.Session.enquireLink(Session.java:766)
at com.knowcross.gmhs.smpp.controller.SMPPReceiver$EnquiryLink.enquireLink(SMPPReceiver.java:191)
at com.knowcross.gmhs.smpp.controller.SMPPReceiver$EnquiryLink.run(SMPPReceiver.java:159)

on getting this error i am trying to rebind with the SMSC, but the errors keeps on coming and after that my thread stops processing.
Can anyone please help me out.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!