Closed GoogleCodeExporter closed 9 years ago
Hi,
Copy the sample "log4j.properties" found in the "/misc" directory of the smslib
distribution to your current execution directory.
Original comment by T.Delenikas
on 4 May 2010 at 12:36
Hi, Thanks men for your quick reply; I dont really know what is the problem. I
did
all what is in different forums but to no avail.
I will try another machine. But by the way there was no sample log4j.properties
file
in /misc in the download. Any other tip?
Original comment by chep...@gmail.com
on 5 May 2010 at 8:10
Look at the directory "\misc\Log4j Sample Configuration"
Original comment by ad...@smslib.org
on 6 May 2010 at 5:32
HI, i think this has something to do with XP; tried what you said, copied the
Log4j
config file but still same error. I tried another labtop with XP, same error;
Do u
know if there is anyone who has configured it successfully using XP?
Alternatively
how can one compile without Log4j?
Regards
Chris
Original comment by chep...@gmail.com
on 6 May 2010 at 2:58
No way... I am using XP for ages...
Do this:
1) Run "ant compile-smslib"
2) Copy the "log4j.properties" in [smslib-directory]/dist/classes
3) Go to [smslib-directory]/dist/classes
4) Run "java examples.modem.ReadMessages"
Original comment by ad...@smslib.org
on 6 May 2010 at 6:21
Below is the outcome. Now I see it looks like my port has a problem; But I
still get
the code one when I run "java -jar smsserver-3.4.6.jar" where log4j.properties
is in
the smsserver-3.4.6.jar directory. I dont understand, the two should be giving
same
results?? Code two below is the outcome of running ReadMessages.
Thanks for your continous support, im moving though.
Code one
SMSLib API version: 3.4.6
SMSServer version: 3.4.6
log4j:WARN No appenders could be found for logger (smslib).
log4j:WARN Please initialize the log4j system properly.
Code two
E:\>cd E:\jsms\smslib-v3.4.6
E:\jsms\smslib-v3.4.6>ant compile-smslib
Buildfile: E:\jsms\smslib-v3.4.6\build.xml
compile.smslib:
compile.examples:
[javac] Compiling 10 source files to E:\jsms\smslib-v3.4.6\dist\classes
compile.misc:
[javac] Compiling 1 source file to E:\jsms\smslib-v3.4.6\dist\classes
compile-smslib:
BUILD SUCCESSFUL
Total time: 20 seconds
E:\jsms\smslib-v3.4.6>cd dist
E:\jsms\smslib-v3.4.6\dist>cd classes
E:\jsms\smslib-v3.4.6\dist\classes>java examples.modem.ReadMessages
Example: Read messages from a serial gsm modem.
SMSLib: A Java API library for sending and receiving SMS via a GSM modem or othe
r supported gateways.
This software is distributed under the terms of the Apache v2.0 License.
Web Site: http://smslib.org
Version: 3.4.6
0 2010-05-06 21:42:31,656 [main] INFO org.smslib.helper.Logger - SMSLib:
A Java API library for sending and receiving SMS via a GSM modem or other suppor
ted gateways.
This software is distributed under the terms of the Apache v2.0 License.
Web Site: http://smslib.org
0 2010-05-06 21:42:31,656 [main] INFO org.smslib.helper.Logger - Version:
3.4.6
0 2010-05-06 21:42:31,656 [main] INFO org.smslib.helper.Logger - JRE Vers
ion: 1.6.0_13
0 2010-05-06 21:42:31,656 [main] INFO org.smslib.helper.Logger - JRE Impl
Version: 11.3-b02
0 2010-05-06 21:42:31,656 [main] INFO org.smslib.helper.Logger - O/S: Win
dows XP / x86 / 5.1
31 2010-05-06 21:42:31,687 [main] DEBUG org.smslib.helper.Logger - Initiali
zed.
31 2010-05-06 21:42:31,687 [DelayQueueManager] DEBUG org.smslib.helper.Logge
r - Running...
31 2010-05-06 21:42:31,687 [DelayQueueManager] DEBUG org.smslib.helper.Logge
r - DelayQueueManager running...
47 2010-05-06 21:42:31,703 [main] DEBUG org.smslib.helper.Logger - Initiali
zed.
47 2010-05-06 21:42:31,703 [NotifyQueueManager] DEBUG org.smslib.helper.Logg
er - Running...
47 2010-05-06 21:42:31,703 [NotifyQueueManager] DEBUG org.smslib.helper.Logg
er - NotifyQueueManager running...
62 2010-05-06 21:42:31,718 [main] DEBUG org.smslib.helper.Logger - Initiali
zed.
78 2010-05-06 21:42:31,734 [WatchDog] DEBUG org.smslib.helper.Logger - Runn
ing...
78 2010-05-06 21:42:31,734 [Thread-3] INFO org.smslib.helper.Logger - GTW:
modem.com1: Starting gateway, using Generic AT Handler.
78 2010-05-06 21:42:31,734 [Thread-3] INFO org.smslib.helper.Logger - GTW:
modem.com1: Opening: COM1 @57600
187 2010-05-06 21:42:31,843 [Thread-3] INFO org.smslib.helper.Logger - GTW:
modem.com1: Closing: COM1 @57600
>>> Gateway Status change for modem.com1, OLD: STOPPED -> NEW: RESTART
1062 2010-05-06 21:42:32,718 [DelayQueueManager] DEBUG org.smslib.helper.Logge
r - Stopped.
1062 2010-05-06 21:42:32,718 [NotifyQueueManager] DEBUG org.smslib.helper.Logg
er - NotifyQueueManager end...
1062 2010-05-06 21:42:32,718 [WatchDog] DEBUG org.smslib.helper.Logger - Stop
ped.
1078 2010-05-06 21:42:32,734 [main] INFO org.smslib.helper.Logger - GTW: mod
em.com1: Stopping gateway...
1078 2010-05-06 21:42:32,734 [main] INFO org.smslib.helper.Logger - GTW: mod
em.com1: Closing: COM1 @57600
1078 2010-05-06 21:42:32,734 [main] INFO org.smslib.helper.Logger - GTW: mod
em.com1: Gateway stopped.
1172 2010-05-06 21:42:32,828 [NotifyQueueManager] DEBUG org.smslib.helper.Logg
er - Running...
1172 2010-05-06 21:42:32,828 [NotifyQueueManager] DEBUG org.smslib.helper.Logg
er - NotifyQueueManager running...
>>> Gateway Status change for modem.com1, OLD: RESTART -> NEW: STOPPING
1172 2010-05-06 21:42:32,828 [NotifyQueueManager] DEBUG org.smslib.helper.Logg
er - NotifyQueueManager end...
1281 2010-05-06 21:42:32,937 [NotifyQueueManager] DEBUG org.smslib.helper.Logg
er - Running...
1281 2010-05-06 21:42:32,937 [NotifyQueueManager] DEBUG org.smslib.helper.Logg
er - NotifyQueueManager running...
>>> Gateway Status change for modem.com1, OLD: STOPPING -> NEW: STOPPED
1281 2010-05-06 21:42:32,937 [NotifyQueueManager] DEBUG org.smslib.helper.Logg
er - NotifyQueueManager end...
1390 2010-05-06 21:42:33,046 [NotifyQueueManager] DEBUG org.smslib.helper.Logg
er - Running...
1390 2010-05-06 21:42:33,046 [NotifyQueueManager] DEBUG org.smslib.helper.Logg
er - NotifyQueueManager running...
1484 2010-05-06 21:42:33,140 [NotifyQueueManager] DEBUG org.smslib.helper.Logg
er - 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)
1484 2010-05-06 21:42:33,140 [main] INFO org.smslib.helper.Logger - GTW: mod
em.com1: Stopping gateway...
1484 2010-05-06 21:42:33,140 [main] INFO org.smslib.helper.Logger - GTW: mod
em.com1: Closing: COM1 @57600
1484 2010-05-06 21:42:33,140 [main] INFO org.smslib.helper.Logger - GTW: mod
em.com1: Gateway stopped.
E:\jsms\smslib-v3.4.6\dist\classes>
Original comment by chep...@gmail.com
on 6 May 2010 at 8:18
Hi,
Either you don't have a COM1 (which is very unlikely!) or you have not setup
JavaComm
correctly. Are you sure all 3 javacomm files are in place? In both the jdk and
jre
directories?
Original comment by T.Delenikas
on 6 May 2010 at 8:23
Thanks
rxtxSerial.dll" and "win32com.dll" in I:\Program Files\Java\jdk1.6.0_13\bin
"javax.comm.properties" and "commons-net-2.0.jar" are in I:\Program
Files\Java\jdk1.6.0_13\jre\lib\ext
and I have even tried to copy them everywhere in java including I:\Program
Files\Java\jdk1.6.0_13\jre\lib. Now im trying to remove them and reinstall,
maybe I
used different versions.
Original comment by chep...@gmail.com
on 6 May 2010 at 8:42
Either use RxTx or JavaComm. Don't use both! Also copy the relevant .jar file.
Original comment by T.Delenikas
on 7 May 2010 at 5:31
Original comment by T.Delenikas
on 19 May 2010 at 7:05
Hey can some one tell me exactly what i need to enter to test my smslib server
I have been trying for 3 days in vain!!
I have got the server built and compiled but i think i am having problems in
seting the class path to the conf file
Please help
Original comment by anand.sa...@gmail.com
on 21 Jul 2010 at 7:49
Original comment by T.Delenikas
on 29 Jul 2010 at 12:05
Original comment by T.Delenikas
on 9 Aug 2010 at 6:27
where to place smslib folder
i dont know pls help me
Original comment by mjnanth...@gmail.com
on 1 Oct 2010 at 6:00
where to place the extracted
ant folder and smslib
Original comment by mjnanth...@gmail.com
on 1 Oct 2010 at 6:06
You can put anywhere in your drive, so long as it can see java i.e. so long it
is in the path e.g. E:\jsms\smslib-v3.4.6\
Original comment by chep...@gmail.com
on 1 Oct 2010 at 8:09
Original issue reported on code.google.com by
chep...@gmail.com
on 3 May 2010 at 7:31