I am doing the same thing and got errors.Did you solve it?Can you help
me how to run it all time?

On May 2, 3:41 am, noob wrote:
> that because I need to send a confirmation message, I need to do this:
>
> I am programming a sms desktop app with java using smslib, my program needs
> to store sms in a database table, then compare the sms with another table,
> and finally return a new sms, how to implement this process, with threads??
> timers? I need to keep the app running all the day, the program just need
> to compare numbers with another table and then return the ones that are
> different, I have the app but in parts, I just want to know your approach,
> the user needs to receive a sms with the new numbers thanks
>
> p.d I use smslib and the classes readmessages and sendmessages. I am
> stucked in this part, I dont want that my program crashes
>
> El miércoles, 18 de abril de 2012 14:20:57 UTC-5, T.Delenikas escribió:
>
>
>
>
>
>
>
>
>
> > Hi,
>
> > Why are you trying to stop the Service?
> > Isn't it possible for your design to leave the Service running all the
> > time?
>
> > On Wednesday, April 11, 2012 1:41:19 AM UTC+3, noob wrote:
>
> >> I have a GUI that stops the service of reading sms, I use this code and
> >> then I get this result
> >>  >>> Gateway Status change for modem.com1, OLD: STARTED -> NEW: STOPPING
> >> >>> Gateway Status change for modem.com1, OLD: STOPPING -> NEW: STOPPED,
>
> >> code:
> >>         try {
> >>             //System.exit(0);
>
> >>             Service.getInstance().stopService();
> >>             //gateway.stopGateway();
> >>             //worker.cancel(false);
> >>         } catch (SMSLibException ex) {
> >>             Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null,
> >> ex);
> >>         }  catch (IOException ex) {
> >>             Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null,
> >> ex);
> >>         } catch (InterruptedException ex) {
> >>             Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null,
> >> ex);
> >>         }
>
> >> how can I release the port If I want to read the messages again, I always
> >> get this message, and I use service.stop, please help
>
> >> GatewayException: Comm library exception: java.lang.RuntimeException:
> >> javax.comm.PortInUseException: Port currently owned by org.smslib
> >>     at
> >> org.smslib.modem.SerialModemDriver.connectPort(SerialModemDriver.java:102)
> >>     at org.smslib.modem.AModemDriver.connect(AModemDriver.java:114)
> >>     at org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:189)
> >>     at org.smslib.Service$1Starter.run(Service.java:276)

-- 
You received this message because you are subscribed to the Google Groups 
"SMSLib Discussion 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.

  • [smslib] ... noob
    • [sms... T.Delenikas
      • ... noob
        • ... SMSLib Discussion Group on behalf of asish
          • ... SMSLib Discussion Group on behalf of T.Delenikas
            • ... smslib+noreply-APn2wQfRyr9VQybWi7i57ganhsPt66DcSQ0Oxh6ZAweN4JcJI
    • [sms... smslib+noreply-APn2wQddzTTkHD3eQ-ihRPQfW_nr7FkMkd9kPa0Eo5HxMLn5l
      • ... SMSLib Discussion Group on behalf of nick

Reply via email to