Following your code: scom.sendMessage(msg);
you should check the "msg" object after the call and see if it has been sent out, etc. The OutboundMessage class has relevant fields. On 2 July 2010 00:34, jorge <[email protected]> wrote: > Hi, > Im having problems with sms lib. > 1. First when i try to connect to the modem, and the modem has no SIM > on it the sms lib takes several minutes to raise error, and when it > sends the error, the application doesn't respond. > How i get back the controll of my application. > > 2. How do i catch sms lib errors, for example, i'm sending messages, > but im just testing the application, the SIM on the modem has no > balance (i know that, in fact), and the smslib take several time and > it send message of error, but i cant catch those message to interrupt > the procedure, how can i catch it > these are the errors: > > <WARN 2010-07-01 15:21:04,883 smslib::sendMessage:265> CMS Error 535: > Retrying... > 596975 [Thread-9] WARN org.smslib - CMS Error 535: Retrying... > <ERROR 2010-07-01 15:21:14,258 smslib::sendMessage:259> CMS Error 535: > Quit retrying, message lost... > 606350 [Thread-9] ERROR org.smslib - CMS Error 535: Quit retrying, > message lost... > > i dont concern about the errors, im concern because i cant catch them > to send a error message. when the application is out of the line code > there's no exception, so in the procedure the value returned is true, > that means that the message was succefuly send it, but it doesn't. > > lines of code: > scom.sendMessage(msg); //sending message > return true; //the message wasn't send it but the application > returns true because there's no exception to catch. > > Regards. > > -- > 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]<smslib%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/smslib?hl=en. > > -- 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.
