Copy the "misc/log4j.properties" in the directory where you place the
".class" files and run the example once more. This will (probably)
enable the full debug log output - I need to check it.

On May 1, 8:22 pm, Nadir <[email protected]> wrote:
> Thank you Thanasis for your comment. I think i, installed the JavaComm
> well, like the description in :http://smslib.org/doc/installation/
> and i'm sur that COM8 is the correct com for my system. but for now i
> will use RxTx who gives me more results, and i wish someone could help
> me from here.
>
> On 1 mai, 16:54, Thanasis <[email protected]> wrote:
>
>
>
>
>
> > Hi,
>
> > Yes, you must have either RxTx or JavaComm installed.
>
> > From the error you get (javax.comm.NoSuchPortException) I understand
> > that either JavaComm is not installed properly or COM8 is not the
> > correct port on your system.
>
> > On May 1, 7:46 pm, Nadir <[email protected]> wrote:
>
> > > I just read that it can't work if i use RxTx and Javacomm in the same
> > > time, so with using only Rxtx i have in the log screen :
>
> > > 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.6
> > > log4j:WARN No appenders could be found for logger (smslib).
> > > log4j:WARN Please initialize the log4j system properly.
> > > log4j:WARN Seehttp://logging.apache.org/log4j/1.2/faq.html#noconfig
> > > for more info.
> > > Stable Library
> > > =========================================
> > > Native lib Version = RXTX-2.1-7
> > > Java lib Version   = RXTX-2.1-7
>
> > > >>> Gateway Status change for modem.com8, OLD: STOPPED -> NEW: STARTING
> > > >>> Gateway Status change for modem.com8, OLD: STARTING -> NEW: STARTED
>
> > > Modem Information:
> > >   Manufacturer: SAMSUNG
> > >   Model: SAMSUNG SGH-E250
> > >   Serial No: 357451 01 825742 0
> > >   SIM IMSI: ** MASKED **
> > >   Signal Level: 80%
> > >   Battery Level: 75%
>
> > > >>> Gateway Status change for modem.com8, OLD: STARTED -> NEW: RESTART
>
> > > Now Sleeping - Hit <enter> to stop service.
>
> > > >>> Gateway Status change for modem.com8, OLD: RESTART -> NEW: STOPPING
> > > >>> Gateway Status change for modem.com8, OLD: STOPPING -> NEW: STOPPED
> > > >>> Gateway Status change for modem.com8, OLD: STOPPED -> NEW: RESTART
> > > >>> Gateway Status change for modem.com8, OLD: RESTART -> NEW: RESTART
> > > >>> Gateway Status change for modem.com8, OLD: RESTART -> NEW: STARTING
> > > >>> Gateway Status change for modem.com8, OLD: STARTING -> NEW: STARTED
>
> > > but i still not have any message to read. So, when i use JavaComm,
> > > this is the result :
>
> > > 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.6
> > > log4j:WARN No appenders could be found for logger (smslib).
> > > log4j:WARN Please initialize the log4j system properly.
> > > log4j:WARN Seehttp://logging.apache.org/log4j/1.2/faq.html#noconfig
> > > for more info.>>> Gateway Status change for modem.com8, OLD: STOPPED -> 
> > > NEW: RESTART
> > > >>> Gateway Status change for modem.com8, OLD: RESTART -> NEW: STOPPING
> > > >>> Gateway Status change for modem.com8, OLD: STOPPING -> NEW: STOPPED
>
> > > org.smslib.GatewayException: Comm library exception:
> > > java.lang.RuntimeException: javax.comm.NoSuchPortException
> > >         at
> > > org.smslib.modem.SerialModemDriver.connectPort(SerialModemDriver.java:
> > > 97)
> > >         at org.smslib.modem.AModemDriver.connect(AModemDriver.java:
> > > 113)
> > >         at
> > > org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:187)
> > >         at org.smslib.Service$1Starter.run(Service.java:321)
>
> > > So, please can you help me from here?
>
> > > On 1 mai, 14:31, Nadir <[email protected]> wrote:
>
> > > > Hi everybody! Thanks for your answers and sorry for being late to
> > > > respond.
> > > > So I'm using SAMSUNG SGH-E250, and i think that i add needed
> > > > librairies to my project :
>
> > > > comm.jar
> > > > commons-net-2.0.jar
> > > > jsmpp-2.1.0.jar
> > > > log4j-1.2.16.jar
> > > > pduutils.jar
> > > > RXTXcomm.jar
> > > > smslib-3.4.6.jar
> > > > smsserver-3.4.6.jar
>
> > > > I'm using netbeans so i think i don't need to add Ant. Now, when i
> > > > compile the ReadMessages example class, i have this log screen error :
>
> > > > 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.6
> > > > log4j:WARN No appenders could be found for logger (smslib).
> > > > log4j:WARN Please initialize the log4j system properly.
> > > > log4j:WARN Seehttp://logging.apache.org/log4j/1.2/faq.html#noconfig
> > > > for more info.>>> Gateway Status change for modem.com8, OLD: STOPPED -> 
> > > > NEW: RESTART
> > > > >>> Gateway Status change for modem.com8, OLD: RESTART -> NEW: STOPPING
> > > > >>> Gateway Status change for modem.com8, OLD: STOPPING -> NEW: STOPPED
>
> > > > org.smslib.GatewayException: Comm library exception:
> > > > java.lang.RuntimeException: javax.comm.NoSuchPortException
> > > >         at
> > > > org.smslib.modem.SerialModemDriver.connectPort(SerialModemDriver.java:
> > > > 97)
> > > >         at org.smslib.modem.AModemDriver.connect(AModemDriver.java:
> > > > 113)
> > > >         at
> > > > org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:187)
> > > >         at org.smslib.Service$1Starter.run(Service.java:321)
> > > > BUILD SUCCESSFUL (total time: 2 seconds)
>
> > > > On 30 avr, 15:29, Navam <[email protected]> wrote:
>
> > > > > Which Modem?
>
> > > > > On Apr 30, 7:00 pm, osama ashraf <[email protected]> wrote:
>
> > > > > > did u configure comm jar files and all ths stuff?
>
> > > > > > --
> > > > > > 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 
> > > > > > athttp://groups.google.com/group/smslib?hl=en.
>
> > > > > --
> > > > > 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 
> > > > > athttp://groups.google.com/group/smslib?hl=en.
>
> > > > --
> > > > 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 
> > > > athttp://groups.google.com/group/smslib?hl=en.
>
> > > --
> > > 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 
> > > athttp://groups.google.com/group/smslib?hl=en.
>
> > --
> > 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 
> > athttp://groups.google.com/group/smslib?hl=en.
>
> --
> 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 
> athttp://groups.google.com/group/smslib?hl=en.

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