Hello,

I tried with both library but same problem is coming. One question I want to
know, If I plug out the modem while Service is running, will it affect GSM
Modem when starting service next time?

I am not understanding the problem, please help me..

Thanks

Daya S Chaubey


On Thu, Jan 14, 2010 at 3:21 PM, Thanasis <[email protected]> wrote:

> From your description and source-of-exception, I would assume that
> there is something wrong with the installation of JavaComm...
> Are you sure that everything is in place?
> Have you tried with RxTx?
>
> Note that either Javacomm or RxTx should be present!
>
>
> On Jan 14, 11:36 am, Daya Shanker <[email protected]> wrote:
> > Hello Thanasis,
> >
> > Problem coming during service startup. When startService() method of
> Service
> > class is called. IOException is coming and then stopService() method is
> > called. I have analyzed the problem and reached to the line where problem
> is
> > coming.. Actual problem is coming in the following line of code in  the
> > CommPortIdentifier.java file, when the
> > setPortId(CommPortIdentifier.getPortIdentifier(getComPort())) method is
> > called from SerialModemDriver.java file in connect() method :
> >             Method method =
> > classCommPortIdentifier.getMethod("getPortIdentifier", String.class);
> >             port = new CommPortIdentifier(method.invoke(null, portName));
> > First line getMethod() is executed properly and InvocationTargetException
> is
> > coming in the second line.
> >
> > I am not understanding why such exception is coming.
> >
> > Please help me.
> >
> > Thanks for reply..
> >
> >
> >
> >
> >
> > On Thu, Jan 14, 2010 at 1:53 PM, Thanasis <[email protected]> wrote:
> > > Hi,
> >
> > > I can see that you get the exception upon disconnection.
> > > Is your message sent or not?
> >
> > > Can you setup the logging and post a log?
> >
> > > On Jan 14, 10:10 am, Daya Shanker <[email protected]> wrote:
> > > > Hello,
> >
> > > > Can any body help? I am still waiting 4 some reply about the
> exception
> > > > coming while starting the service.
> >
> > > > On Wed, Jan 13, 2010 at 4:43 PM, j2ee <[email protected]> wrote:
> > > > > Hello
> >
> > > > >  Please guide me.. When I am running SendMessage.java program
> > > > > following Exception is coming
> >
> > > > > java.lang.NullPointerException
> > > > >        at org.smslib.modem.SerialModemDriver.disconnectPort
> > > > > (SerialModemDriver.java:107)
> > > > >        at
> org.smslib.modem.AModemDriver.disconnect(AModemDriver.java:
> > > > > 280)
> > > > >        at
> org.smslib.modem.ModemGateway.stopGateway(ModemGateway.java:
> > > > > 197)
> > > > >        at org.smslib.Service.stopService(Service.java:338)
> > > > >        at org.smslib.Service.startService(Service.java:217)
> > > > >        at cdot.omcr.flt.be.SendSmsProcess.startService
> > > > > (SendSmsProcess.java:156)
> >
> > > > > Actullay I have connected GSM Modem to /dev/ttyS4 and when I am
> > > > > running CommTest.java example, it is detecting only  /dev/ttyS0
> port.
> > > > > Other Serial port are not detected by the CommTest.
> >
> > > > > Please help me.
> > > > > What to do to run SendMessage.java.
> >
> > > > > Thanks in advance
> >
> > > > > --
> > > > > 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]<smslib%[email protected]>
> <smslib%[email protected]<smslib%[email protected]>
> >
> > > <smslib%[email protected]<smslib%[email protected]>
> <smslib%252bunsubscr...@googlegroups. com>
> >
> > > > > .
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/smslib?hl=en.
> >
> > > > --
> > > > Thanks & Regds.
> > > > *****************************
> > > > Daya Shanker Chaubey
> > > > Research Engineer
> > > > IN Group
> > > > C-DOT Delhi
> >
> > > --
> > > 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]<smslib%[email protected]>
> <smslib%[email protected]<smslib%[email protected]>
> >
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/smslib?hl=en.
> >
> > --
> > Thanks & Regds.
> > *****************************
> > Daya Shanker Chaubey
>
> --
> 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]<smslib%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/smslib?hl=en.
>
>
>
>


-- 
Thanks & Regds.
*****************************
Daya Shanker Chaubey
Research Engineer
IN Group
C-DOT Delhi
--
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.

Reply via email to