Hi, I altered the code , now trying to get the arguments from the text file (earlier i used to get from property file), but still i'm getting the same exception , i have set properly, all dll file , if the exception is due to dll files then it should not work for when supplying arguments directly to SerialModemGateway() constructor
Following is the log file (these values i'm getting from text file MURL ,Mcom,MBaudRate ,MName,MSeries):- MURL : modem.com1 Mcom : com1 MBaudRate : 9600 MName : WAVECOM MODEM MSeries : AT+CGMM MULTIBAND 900E Excecute Query Example: Send message from a serial gsm modem. SMSLib: A Java API library for sending and receiving SMS via a GSM modem or other supported gateways. Web Site: http://smslib.org This software is distributed under the terms of the Apache v2.0 License. Version: 3.3.0 exception :org.smslib.GatewayException: Comm library exception: java.lang.reflect.InvocationTargetException 0 [Thread-1] WARN org.smslib - WatchDog: Gateway: modem.com1 restarting. 16 [Thread-1] ERROR org.smslib - WatchDog: error while starting Gateway: modem.com1 org.smslib.GatewayException: Comm library exception: java.lang.reflect.InvocationTargetException at org.smslib.modem.SerialModemDriver.connectPort(SerialModemDriver.java: 93) at org.smslib.modem.AModemDriver.connect(AModemDriver.java: 105) at org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:108) at org.smslib.Service$WatchDog.run(Service.java:1179) 15016 [Thread-1] WARN org.smslib - WatchDog: Gateway: modem.com1 restarting. 15031 [Thread-1] ERROR org.smslib - WatchDog: error while starting Gateway: modem.com1 org.smslib.GatewayException: Comm library exception: java.lang.reflect.InvocationTargetException at org.smslib.modem.SerialModemDriver.connectPort(SerialModemDriver.java: 93) at org.smslib.modem.AModemDriver.connect(AModemDriver.java: 105) at org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:108) at org.smslib.Service$WatchDog.run(Service.java:1179) 30031 [Thread-1] WARN org.smslib - WatchDog: Gateway: modem.com1 restarting. 30031 [Thread-1] ERROR org.smslib - WatchDog: error while starting Gateway: modem.com1 org.smslib.GatewayException: Comm library exception: java.lang.reflect.InvocationTargetException at org.smslib.modem.SerialModemDriver.connectPort(SerialModemDriver.java: 93) at org.smslib.modem.AModemDriver.connect(AModemDriver.java: 105) at org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:108) at org.smslib.Service$WatchDog.run(Service.java:1179) 45031 [Thread-1] WARN org.smslib - WatchDog: Gateway: modem.com1 restarting. 45031 [Thread-1] ERROR org.smslib - WatchDog: error while starting Gateway: modem.com1 org.smslib.GatewayException: Comm library exception: java.lang.reflect.InvocationTargetException at org.smslib.modem.SerialModemDriver.connectPort(SerialModemDriver.java: 93) at org.smslib.modem.AModemDriver.connect(AModemDriver.java: 105) at org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:108) at org.smslib.Service$WatchDog.run(Service.java:1179) On Nov 4, 5:52 am, "54 powerman" <[EMAIL PROTECTED]> wrote: > Or the dll file. > > 2008/11/4 Thanasis <[EMAIL PROTECTED]> > > > There is obviously something wrong in your code that manages the > > properties' file and how it passes the arguments to the constructor. > > > 2008/11/3 patil <[EMAIL PROTECTED]> > > >> Hi > >> I tried to send messages using this SendMessage.java , it worked fine > >> but > >> I'm getting the exception when i tried to set the parameters/argument > >> of "SerialModemGateway()" from the properties file(I set a property > >> file to avoid hardcoding of the modem details i.e com, baudrate, modem > >> etc..), > >> i.e if i pass the parameters in the SendMessage.java i.e hard coding > >> not taking from property file then code executes without error/ > >> exception > > >> The following exception: > >> exception :org.smslib.GatewayException: Comm library exception: > >> java.lang.reflect.InvocationTargetException > > >> Following is the log file > >> exception :org.smslib.GatewayException: Comm library exception: > >> java.lang.reflec > >> t.InvocationTargetException > >> 0 [Thread-1] WARN org.smslib - WatchDog: Gateway: modem.com1 > >> restarting. > >> 31 [Thread-1] ERROR org.smslib - WatchDog: error while starting > >> Gateway: modem. > >> com1 > >> org.smslib.GatewayException: Comm library exception: > >> java.lang.reflect.Invocatio > >> nTargetException > >> at > >> org.smslib.modem.SerialModemDriver.connectPort(SerialModemDriver.java > >> :93) > >> at org.smslib.modem.AModemDriver.connect(AModemDriver.java: > >> 105) > >> at > >> org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:108) > >> at org.smslib.Service$WatchDog.run(Service.java:1179) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SMSLib Users 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 -~----------~----~----~----~------~----~------~--~---
