I have done what you told me that is what came afterwords. init: deps-jar: compile: run: 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.0 23-Apr-2009 15:32:09 org.smslib.helper.Logger logInfo INFO: 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 23-Apr-2009 15:32:09 org.smslib.helper.Logger logInfo INFO: Version: 3.4.0 23-Apr-2009 15:32:09 org.smslib.helper.Logger logInfo INFO: JRE Version: 1.6.0_13 23-Apr-2009 15:32:09 org.smslib.helper.Logger logInfo INFO: JRE Impl Version: 11.3-b02 23-Apr-2009 15:32:09 org.smslib.helper.Logger logInfo INFO: O/S: Windows XP / x86 / 5.1 23-Apr-2009 15:32:09 org.smslib.helper.Logger logInfo INFO: GTW: modem.com1: Starting gateway, using Generic AT Handler. 23-Apr-2009 15:32:09 org.smslib.helper.Logger logInfo INFO: GTW: modem.com1: Opening: COM1 @57600 >>> Gateway Status change for modem.com1, OLD: STOPPED -> NEW: RESTART org.smslib.GatewayException: Comm library exception: java.lang.RuntimeException: javax.comm.NoSuchPortException >>> Gateway Status change for modem.com1, OLD: RESTART -> NEW: STOPPING at org.smslib.modem.SerialModemDriver.connectPort (SerialModemDriver.java:99) at org.smslib.modem.AModemDriver.connect(AModemDriver.java: 110) at org.smslib.modem.ModemGateway.startGateway (ModemGateway.java:158) at org.smslib.Service$1Starter.run(Service.java:238) 23-Apr-2009 15:32:10 org.smslib.helper.Logger logInfo INFO: GTW: modem.com1: Stopping gateway... java.lang.NullPointerException at org.smslib.scheduler.Scheduler.remove(Scheduler.java:84) at org.smslib.AGateway.stopGateway(AGateway.java:360) at org.smslib.modem.ModemGateway.stopGateway(ModemGateway.java: 168) at org.smslib.Service.stopService(Service.java:314) at examples.modem.ReadMessages.doIt(ReadMessages.java:124) at examples.modem.ReadMessages.main(ReadMessages.java:169)
This is without connecting the phone so now I will connect and come back here to tell you the result On Apr 22, 8:39 pm, Thanasis <[email protected]> wrote: > Hi, > > If you are seeing the same message whether you have your phone > connected or not, its surely a javacomm issue. > > You said before: > << > even added the jdkDIR/jre/lib/ext to my libraries > so it can see the comm.jar and all other RXTXcomm files > > > > If you run on Win32, use JavaComm v2. If you are on Linux, use RxTx. > DO NOT USE BOTH!!! Remove the one completely! > > Tell me a bit more about your setup: Operating system, phone model, > connectivity method (serial, usb?)? > > On Apr 22, 9:33 pm, iliali16 <[email protected]> wrote: > > > > > It is the same error just the line numbers are different. But if I > > have to compare the two classes they are the same lines just different > > line numbers. I want to ask as if I connect the phone and I don't > > connect it the errors are the same. if there is no phone what shtell I > > expect or I first have to compile it and then I will be able to see > > the phone's msges > > > On Apr 22, 4:30 pm, Thanasis <[email protected]> wrote: > > > > Can you download and try with this > > > example:http://smslib.googlecode.com/svn/smslib/tags/v3.3.3/src/java/examples... > > > > On Apr 22, 4:43 pm, iliali16 <[email protected]> wrote: > > > > > well now I did everything as it was instructed in the docs and then I > > > > went to netbeans and even added the jdkDIR/jre/lib/ext to my libraries > > > > so it can see the comm.jar and all other RXTXcomm files. do I need to > > > > do something more specific for netbeans > > > > > On Apr 22, 3:35 pm, iliali16 <[email protected]> wrote: > > > > > > Do u think it might not make connection to my phone or maybe it does > > > > > not support my phone? > > > > > > On Apr 22, 10:55 am, Thanasis <[email protected]> wrote: > > > > > > > Hi, > > > > > > > This is a very vague error. It can be anything, most probably it > > > > > > must > > > > > > be an incorrect javacomm installation. > > > > > > Try to enable the debug in order to see what's really wrong. > > > > > > > On Apr 22, 4:44 am, iliali16 <[email protected]> wrote: > > > > > > > > Hy guys I have managed to plug the smslib in netbeans 6.5 but I > > > > > > > have > > > > > > > this problem when I run the ReadMessages.java I receive the > > > > > > > following > > > > > > > errors: > > > > > > > > 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.0 > > > > > > > java.lang.NullPointerException > > > > > > > at examples.modem.ReadMessages.doIt(ReadMessages.java:158) > > > > > > > at examples.modem.ReadMessages.main(ReadMessages.java:203) > > > > > > > BUILD SUCCESSFUL (total time: 1 second) > > > > > > > > Any help will be apreciated if you can explain what is exactly > > > > > > > leading > > > > > > > to this errors thansk in advance!- Hide quoted text - > > > > > > > - Show quoted text -- Hide quoted text - > > > > > > - Show quoted text -- Hide quoted text - > > > > - Show quoted text -- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
