Solved

Error while using Logics SMPP APIs

Posted on 2009-04-12
2
831 Views
Last Modified: 2013-11-10
HI,
I am using Logica SMPP APIs to connect to a SMSC for sending and receiving SMS.
I am using JDK 1.6 and Apache Tomcat 6.
The web application is being deployed in Windows Server 2003.

After running the application for couple of days, when I try to send a message, I am getting this error :

java.io.IOException: Not connected
      at com.logica.smpp.TCPIPConnection.send(TCPIPConnection.java:344)
      at com.logica.smpp.Transmitter.send(Transmitter.java:69)
      at com.logica.smpp.Session.send(Session.java:931)
      at com.logica.smpp.Session.send(Session.java:984)
      at com.logica.smpp.Session.submit(Session.java:585)
      at com.san.sms.smpp.SMPPMessaging.submitRequest(SMPPMessaging.java:777)
      at com.san.sms.smpp.SMPPMessaging.submitTextMessage(SMPPMessaging.java:403)
      at com.san.sms.smpp.SMPPMessaging.handleMessage(SMPPMessaging.java:314)
      at com.san.sms.smpp.SMPPMessaging.access$2(SMPPMessaging.java:310)
      at com.san.sms.smpp.SMPPMessaging$MessageQueListener.run(SMPPMessaging.java:258)

I think it is getting unbound. But I am neither sending any unbind requests nor the SMSC.
What might be the problem.
Is it an OS related issue or network related issue.

Thanks.
0
Comment
Question by:sandeep1984
2 Comments
 
LVL 2

Accepted Solution

by:
d_techguy earned 500 total points
ID: 24128567
From the error it seems that your application is not bounded to SMSC. But as you said the application was running & neither you nor SMSC sent any unbound request then first thing i'll look for is the time of Inactivity over the connection!!

Do you get this error while you try to send SMS after certain period of time? Try to find that do you get this error after inactivity of 1 hr or may be 24 hrs over connection. If yes, check with you SMSC that do they have a timeout mechanism in place. This can also happen because of some firewall rule over you network.

Solution to this can also be scheduler that sends can send dummy SMS as Keep Alive message (if you messaging is free ;) )

cheers
0
 
LVL 2

Author Comment

by:sandeep1984
ID: 24129048
Thanks for the reply.

It might not be because, I am sending Enquirelink request every 5 minutes & getting proper response.
What might be the problem then??
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
topping3 challenge 14 52
API Soap Calls 4 62
JAVA part two 5 42
Best iPhone Wireless Strength Tester 3 25
Need WiFi? Often, there are perfectly good networks that don't have WiFi capability - and there's a need to add it.  - Perhaps you have an Ethernet port into a network but no WiFi nearby. - Perhaps you have a powerline extender and no WiFi at the…
Tired of waiting for your show or movie to load?  Are buffering issues a constant problem with your internet connection?  Check this article out to see if these simple adjustments are the solution for you.
This video teaches viewers about errors in exception handling.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now