?
Solved

Error while using Logics SMPP APIs

Posted on 2009-04-12
2
Medium Priority
?
838 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 1500 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

Get MongoDB database support online, now!

At Percona’s web store you can order your MongoDB database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card. Handle your MongoDB database support now!

Question has a verified solution.

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

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This video teaches viewers about errors in exception handling.
Suggested Courses
Course of the Month10 days, 23 hours left to enroll

770 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