Guys this problem got solved but now i have a new Problem
When u say
msgList = new ArrayList<InboundMessage>();
this.srv.readMessages(msgList, MessageClasses.ALL);
for (InboundMessage msg : msgList)
System.out.println(msg);
is it supposed to read and display all messages? even those which are
already there
because currently its not doing so.
On Apr 25, 11:35 pm, Navam <[email protected]> wrote:
> Im getting this exception in the readMessages.java file provided
> i changed the values of the SerialModemGateway im using my Nokia Phone
> and the Com port is Showing as 9 in Device Manager so Using that .
> This is the Output...Im using Netbeans IDE 6.7.1 All the Libraries
> Have been added and also im using the Usb Cable Provided with my Nokia
> phone
>
> Example: Read messages from a serial gsm modem.
> SMSLib: A Java API library for sending and receiving SMS via a GSM
> modem or other supported gateways.
> This software is distributed under the terms of the Apache v2.0
> License.
> Web Site:http://smslib.org
> Version: 3.4.6>>> Gateway Status change for modem.com9, OLD: STOPPED -> NEW:
> RESTART
> >>> Gateway Status change for modem.com9, OLD: RESTART -> NEW: STOPPING
> >>> Gateway Status change for modem.com9, OLD: STOPPING -> NEW: STOPPED
>
> org.smslib.GatewayException: Comm library exception:
> java.lang.RuntimeException: javax.comm.NoSuchPortException
> at
> org.smslib.modem.SerialModemDriver.connectPort(SerialModemDriver.java:
> 97)
> at org.smslib.modem.AModemDriver.connect(AModemDriver.java:
> 113)
> at
> org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:187)
> at org.smslib.Service$1Starter.run(Service.java:321)
>
> --
> 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
> athttp://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.