Solved

Error while using Logics SMPP APIs

Posted on 2009-04-12
2
836 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

How to Defend Against the WCry Ransomware Attack

On May 12, 2017, an extremely virulent ransomware variant named WCry 2.0 began to infect organizations. Within several hours, over 75,000 victims were reported in 90+ countries. Learn more from our research team about this threat & how to protect your organization!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Working settings for French ISP Orange "Prêt à Surfer" SIM cards for data connections only. Can't be found anywhere else !
In this post we will learn different types of Android Layout and some basics of an Android App.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses

734 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