Disclaimer: These archives are mirrored from smsforum.net in 2007 before the forum got closed. Please only part of the forum is available here.
For any clarifications regarding these archives you can contact us at http://www.telecomspace.com/contact.

      TELECOMSPACE HOME PAGE         TELECOM DISCUSSION FORUM          CONTACT

+  SMS Forum Online Discussion
|-+  SMS Technologies
| |-+  ANSI-41 (CDMA & TDMA) Related (Moderator: SMS Forum Support)
| | |-+  CONNECTION BETWEEN ESME & SMPP GATEWAY PROBLEMS
« previous next »
Pages: [1] Go Down Print
Author Topic: CONNECTION BETWEEN ESME & SMPP GATEWAY PROBLEMS  (Read 467 times)
kzmuhia
Newbie
*
Offline Offline

Posts: 2


« on: March 31, 2007, 13:00:50 UTC »

I have implemented an ESME using java SMPP API 0.3.7. Every 55 seconds I get a connection reset error whose stack trace is
INFO  2007-03-31 14:52:42,459 [ReceiverDaemon] balancesms.BalanceSMS  - ESME successfully bound connection type 3, SMPP version 3.4
WARN  2007-03-31 14:53:37,687 [ReceiverDaemon] ie.omk.smpp.Connection  - I/O Exception caught
java.net.SocketException: Connection reset
        at java.net.SocketInputStream.read(SocketInputStream.java:168)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:258)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
        at ie.omk.smpp.net.SmscLink.readBytes(Unknown Source)
        at ie.omk.smpp.net.SmscLink.read(Unknown Source)
        at ie.omk.smpp.Connection.readNextPacketInternal(Unknown Source)
        at ie.omk.smpp.Connection.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:619)
INFO  2007-03-31 14:53:37,688 [ReceiverDaemon] balancesms.BalanceSMS  - SMPP API: receiver exception with type 4
java.net.SocketException: Connection reset
        at java.net.SocketInputStream.read(SocketInputStream.java:168)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:258)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
        at ie.omk.smpp.net.SmscLink.readBytes(Unknown Source)
        at ie.omk.smpp.net.SmscLink.read(Unknown Source)
        at ie.omk.smpp.Connection.readNextPacketInternal(Unknown Source)
        at ie.omk.smpp.Connection.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:619)
WARN  2007-03-31 14:53:37,688 [ReceiverDaemon] ie.omk.smpp.Connection  - I/O Exception caught
java.net.SocketException: Connection reset
        at java.net.SocketInputStream.read(SocketInputStream.java:113)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:258)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
        at ie.omk.smpp.net.SmscLink.readBytes(Unknown Source)
        at ie.omk.smpp.net.SmscLink.read(Unknown Source)
        at ie.omk.smpp.Connection.readNextPacketInternal(Unknown Source)
        at ie.omk.smpp.Connection.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:619)
INFO  2007-03-31 14:53:37,689 [ReceiverDaemon] balancesms.BalanceSMS  - SMPP API: receiver exception with type 4
java.net.SocketException: Connection reset
        at java.net.SocketInputStream.read(SocketInputStream.java:113)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:258)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
        at ie.omk.smpp.net.SmscLink.readBytes(Unknown Source)
        at ie.omk.smpp.net.SmscLink.read(Unknown Source)
        at ie.omk.smpp.Connection.readNextPacketInternal(Unknown Source)
        at ie.omk.smpp.Connection.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:619)
WARN  2007-03-31 14:53:37,689 [ReceiverDaemon] ie.omk.smpp.Connection  - I/O Exception caught
java.net.SocketException: Connection reset
        at java.net.SocketInputStream.read(SocketInputStream.java:113)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:258)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
        at ie.omk.smpp.net.SmscLink.readBytes(Unknown Source)
        at ie.omk.smpp.net.SmscLink.read(Unknown Source)
        at ie.omk.smpp.Connection.readNextPacketInternal(Unknown Source)
        at ie.omk.smpp.Connection.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:619)
INFO  2007-03-31 14:53:37,690 [ReceiverDaemon] balancesms.BalanceSMS  - SMPP API: receiver exception with type 4
java.net.SocketException: Connection reset
        at java.net.SocketInputStream.read(SocketInputStream.java:113)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:258)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
        at ie.omk.smpp.net.SmscLink.readBytes(Unknown Source)
        at ie.omk.smpp.net.SmscLink.read(Unknown Source)
        at ie.omk.smpp.Connection.readNextPacketInternal(Unknown Source)
        at ie.omk.smpp.Connection.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:619)
WARN  2007-03-31 14:53:37,690 [ReceiverDaemon] ie.omk.smpp.Connection  - I/O Exception caught
java.net.SocketException: Connection reset
        at java.net.SocketInputStream.read(SocketInputStream.java:113)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:258)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
        at ie.omk.smpp.net.SmscLink.readBytes(Unknown Source)
        at ie.omk.smpp.net.SmscLink.read(Unknown Source)
        at ie.omk.smpp.Connection.readNextPacketInternal(Unknown Source)
        at ie.omk.smpp.Connection.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:619)
INFO  2007-03-31 14:53:37,690 [ReceiverDaemon] balancesms.BalanceSMS  - SMPP API: receiver exception with type 4
java.net.SocketException: Connection reset
        at java.net.SocketInputStream.read(SocketInputStream.java:113)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:258)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
        at ie.omk.smpp.net.SmscLink.readBytes(Unknown Source)
        at ie.omk.smpp.net.SmscLink.read(Unknown Source)
        at ie.omk.smpp.Connection.readNextPacketInternal(Unknown Source)
        at ie.omk.smpp.Connection.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:619)
WARN  2007-03-31 14:53:37,691 [ReceiverDaemon] ie.omk.smpp.Connection  - I/O Exception caught
java.net.SocketException: Connection reset
        at java.net.SocketInputStream.read(SocketInputStream.java:113)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:258)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
        at ie.omk.smpp.net.SmscLink.readBytes(Unknown Source)
        at ie.omk.smpp.net.SmscLink.read(Unknown Source)
        at ie.omk.smpp.Connection.readNextPacketInternal(Unknown Source)
        at ie.omk.smpp.Connection.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:619)
INFO  2007-03-31 14:53:37,691 [ReceiverDaemon] balancesms.BalanceSMS  - SMPP API: receiver exception with type 4
java.net.SocketException: Connection reset
        at java.net.SocketInputStream.read(SocketInputStream.java:113)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:258)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
        at ie.omk.smpp.net.SmscLink.readBytes(Unknown Source)
        at ie.omk.smpp.net.SmscLink.read(Unknown Source)
        at ie.omk.smpp.Connection.readNextPacketInternal(Unknown Source)
        at ie.omk.smpp.Connection.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:619)
WARN  2007-03-31 14:53:37,691 [ReceiverDaemon] ie.omk.smpp.Connection  - I/O Exception caught
java.net.SocketException: Connection reset
        at java.net.SocketInputStream.read(SocketInputStream.java:113)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:258)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
        at ie.omk.smpp.net.SmscLink.readBytes(Unknown Source)
        at ie.omk.smpp.net.SmscLink.read(Unknown Source)
        at ie.omk.smpp.Connection.readNextPacketInternal(Unknown Source)
        at ie.omk.smpp.Connection.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:619)
INFO  2007-03-31 14:53:37,692 [ReceiverDaemon] balancesms.BalanceSMS  - SMPP API: receiver exception with type 4
java.net.SocketException: Connection reset
        at java.net.SocketInputStream.read(SocketInputStream.java:113)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:258)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
        at ie.omk.smpp.net.SmscLink.readBytes(Unknown Source)
        at ie.omk.smpp.net.SmscLink.read(Unknown Source)
        at ie.omk.smpp.Connection.readNextPacketInternal(Unknown Source)
        at ie.omk.smpp.Connection.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:619)
WARN  2007-03-31 14:53:37,692 [ReceiverDaemon] ie.omk.smpp.Connection  - Too many IOExceptions in receiver thread
java.net.SocketException: Connection reset
        at java.net.SocketInputStream.read(SocketInputStream.java:113)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:258)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
        at ie.omk.smpp.net.SmscLink.readBytes(Unknown Source)
        at ie.omk.smpp.net.SmscLink.read(Unknown Source)
        at ie.omk.smpp.Connection.readNextPacketInternal(Unknown Source)
        at ie.omk.smpp.Connection.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:619)
INFO  2007-03-31 14:53:37,692 [ReceiverDaemon] ie.omk.smpp.Connection  - Setting state 0
FATAL 2007-03-31 14:53:37,693 [ReceiverDaemon] balancesms.BalanceSMS  - an exception occurred in the receiver thread..
java.net.SocketException: Connection reset
        at java.net.SocketInputStream.read(SocketInputStream.java:113)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:258)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
        at ie.omk.smpp.net.SmscLink.readBytes(Unknown Source)
        at ie.omk.smpp.net.SmscLink.read(Unknown Source)
        at ie.omk.smpp.Connection.readNextPacketInternal(Unknown Source)
        at ie.omk.smpp.Connection.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:619)
I cannot figure out why this happens.
Please help
Logged
kzmuhia
Newbie
*
Offline Offline

Posts: 2


« Reply #1 on: April 03, 2007, 21:52:12 UTC »

OK i realized whats wrong the SMSC requires that I send an ENQUIRE_LINK every five seconds but times out after 10 tries.
How do I make my ESME send a reqular ENQUIRE_LINK
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  


Login with username, password and session length