I am continuously calling that method.
That is my project requirement.
After some successive message sending  i am getting that exception.

       urs,
      Vivek


On Wed, Jul 15, 2009 at 12:49 PM, Thanasis <[email protected]> wrote:

>
> Sorry, but I cannot understand what you've done...
>
> Why did you add an extra method in SMSServer? What is your purpose?
>
> On Jul 15, 10:15 am, Vivek <[email protected]> wrote:
> > yes it is in SMSServer class only .
> > Method is
> > public synchronized  boolean sendMsg(String mobileNo,String message){
> >          outMsg= new OutboundMessage(mobileNo,message);
> >          boolean status=false;
> >          System.out.println(message+" is sending ");
> >         try {
> >             status=getService().sendMessage(outMsg);
> >             System.out.println(" ---------------------------------- SENT
> > :"+status+" ----------------------------------");
> >         } catch (TimeoutException e1) {
> >             e1.printStackTrace();
> >         } catch (GatewayException e1) {
> >             e1.printStackTrace();
> >         } catch (IOException e1) {
> >             e1.printStackTrace();
> >         } catch (InterruptedException e1) {
> >             e1.printStackTrace();
> >         }
> >         catch (Exception e1) {
> >             e1.printStackTrace();
> >         }
> >         return status;
> >     }
> >        urs,
> >      Vivek
> >
> > On Wed, Jul 15, 2009 at 12:42 PM, Thanasis <[email protected]>
> wrote:
> >
> > > And where is this "sendMsg()" method???
> > > Its not part of smsserver.
> >
> > > On Jul 15, 9:46 am, Vivek <[email protected]> wrote:
> > > > Yes i am using SMSServer.
> > > > I am using smslib-v3.4.1.
> >
> > > >        urs,
> > > >      Vivek
> >
> > > > On Wed, Jul 15, 2009 at 11:41 AM, Thanasis <[email protected]>
> > > wrote:
> >
> > > > > Hi,
> >
> > > > > Are you using SMSServer? You are talking about a custom method, but
> > > > > the exception is coming from the SMSServer sources.
> > > > > Which version are you using?
> >
> > > > > On Jul 15, 7:02 am, Vivek <[email protected]> wrote:
> > > > > > Hi ,
> >
> > > > > > I am using smslib to send messages.
> > > > > > That method is :
> >
> > > > > > public synchronized  void sendMsg(String mobileNo,String
> message){
> > > > > >                 System.out.println("mobileNo  "+mobileNo);
> > > > > >                 System.out.println("message  "+message);
> > > > > >                  outMsg= new OutboundMessage(mobileNo,message);
> > > > > >                 try {
> > > > > >                         System.out.println("SENT
> > > > > "+getService().sendMessage(outMsg));
> > > > > >                 } catch (TimeoutException e1) {
> > > > > >                         e1.printStackTrace();
> > > > > >                 } catch (GatewayException e1) {
> > > > > >                         e1.printStackTrace();
> > > > > >                 } catch (IOException e1) {
> > > > > >                         e1.printStackTrace();
> > > > > >                 } catch (InterruptedException e1) {
> > > > > >                         e1.printStackTrace();
> > > > > >                 }
> > > > > >                 catch (Exception e1) {
> > > > > >                         e1.printStackTrace();
> > > > > >                 }
> > > > > >         }
> > > > > > I am sending  calling this method in for loop.
> > > > > > After few messages send ,i am getting following Exception
> >
> > > > > > org.smslib.GatewayException: Gateway is not responding, max
> number of
> > > > > > retries reached.
> > > > > >         at
> > > > > org.smslib.modem.athandler.ATHandler.sendMessage(ATHandler.java:
> > > > > > 296)
> > > > > >         at
> > > > > org.smslib.modem.ModemGateway.sendMessagePDU(ModemGateway.java:
> > > > > > 425)
> > > > > >         at
> > > > > org.smslib.modem.ModemGateway.sendMessage(ModemGateway.java:205)
> > > > > >         at org.smslib.Service.sendMessage(Service.java:567)
> > > > > >         at
> org.smslib.smsserver.SMSServer.sendMsg(SMSServer.java:366)
> > > > > >         at
> org.smslib.smsserver.SMSServer$OutboundPollingThread.run
> > > > > > (SMSServer.java:278)
> >
> > > > > > Any one plz give the solution for that
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SMSLib User Group" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/SMSLib?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to