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]>
> >
> > > .
> > > 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]>
> .
> 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].
For more options, visit this group at http://groups.google.com/group/smslib?hl=en.

Reply via email to