org.smslib.GatewayException

: Comm library exception: java.lang.RuntimeException:
javax.comm.NoSuchPortException 

 

It’s seem this is your problem, 

You don’t define correct COM Port for transaction. 

Please check where is your Modem recognized by your O/S.

Then use it as parameter in this line (SendMessage.java line 28) :

SerialModemGateway gateway = new SerialModemGateway("modem.com1", "COM1",
57600, "Nokia", "6310i");

 

 

 

From: [email protected] [mailto:[email protected]] On Behalf Of
Piyush Dhamija
Sent: Thursday, March 05, 2009 7:10 PM
To: [email protected]
Subject: [smslib] Re: Empty Message Exception

 

Hi,

 

I am using Eclipse Europa.When i am running SendMessage.java file the
eception is coming...

 

Please anyone tell me what to do before run this file.

The Exception is like this

 

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.3.3

org.smslib.GatewayException

: Comm library exception: java.lang.RuntimeException:
javax.comm.NoSuchPortException 

at org.smslib.modem.SerialModemDriver.connectPort(

SerialModemDriver.java:93) 

at org.smslib.modem.AModemDriver.connect(

AModemDriver.java:111) 

at org.smslib.modem.ModemGateway.startGateway(

ModemGateway.java:138) 

at org.smslib.Service$1Starter.run(

Service.java:223) 

Can anyone help to solve this...this is very appreciable. 

 

Thanks & Regards

Piyush Dhamija

 

On 3/5/09, Thanasis <[email protected]> wrote: 


Hello,

Cannot reproduce this - works fine here.
Are you sure its the empty message that is causing you trouble? Could
it be some non-text message (i.e. picture, ringtone, etc)?

On Mar 4, 9:37 am, Karthik <[email protected]> wrote:
> Hi,
>
> When I send an empty message to SMSLib it doesn't read that message
> from the phone which I connected to my PC, but it throws the following
> exception
>
> java.lang.ArrayIndexOutOfBoundsException: -1
>         at org.smslib.InboundMessage.<init>(InboundMessage.java:145)
>         at
org.smslib.modem.ModemGateway.readMessagesPDU(ModemGateway.java:
> 427)
>         at
org.smslib.modem.ModemGateway.readMessages(ModemGateway.java:147)
>         at org.smslib.Service.readMessages(Service.java:438)
>         at org.smslib.Service.readMessages(Service.java:342)
>         at examples.modem.ReadMessages.doIt(ReadMessages.java:109)
>         at examples.modem.ReadMessages.main(ReadMessages.java:170)
> 31 [main] ERROR org.smslib  - GTW: modem.com3: ERROR PDU:
> 0791198904100161040C9119790916731200009030402174052200
>
> << UNKNOWN MESSAGE DUMP >>
>
---------------------------------------------------------------------------
----
>  Gateway Id: modem.com3
>  Memory Index: 2
>  Memory Location: SM
>
> Please give any solution for this.



-- 
Best Regards 
Piyush Dhamija 

No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.0.237 / Virus Database: 270.11.8/1984 - Release Date: 03/04/09
19:17:00


--~--~---------~--~----~------------~-------~--~----~
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