Are you using SMSServer or you are developing a custom app with
SMSLib?
On Oct 28, 9:14 am, lionkng123 <[email protected]> wrote:
> When GatewayException occured at that time Service can't be
> initialized. So,
> Service instance remains null, service.startService() can't able to
> intialize. We can stop the service by service.stopService() method. If
> service is not being started then we cant call stopService() method,
> it will
> return NullPointerException. We can avoid NullPointerException, but
> that's
> not the solution to stop the SMS server. Internally it's running and
> keep
> retying...
>
> On Oct 28, 11:31 am, Thanasis <[email protected]> wrote:
>
>
>
> > There is a "stopService" method - doesn't it do any good?
>
> > 2009/10/27 lionkng123 <[email protected]>
>
> > > whenever, some gateway exception happened, the internal sms (gateway)
> > > server keep running to retry.. how to stop that server whenever
> > > GatewayException will be occured? Am using
> > > SerialModemGateway gateway = new SerialModemGateway
> > > ("SMS",port,"default","default");
> > > at the time of GatewayException instnce of Serevice remain null...
> > > so, how can i stop the gateway server....??
>
> > > Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"SMSLib for Java 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
-~----------~----~----~----~------~----~------~--~---