axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charith Wickramarachchi <charith.dhanus...@gmail.com>
Subject Re: Axis2-Transport-SMS
Date Fri, 26 Aug 2011 02:02:42 GMT
Hi Pushpalanka,

I think your jcomm installation is not correct.This may be due to your jcomm
properties file is not placed in jre/lib directory
Or may be that port actually does not exist.

thanks,
Charith



On Thu, Aug 25, 2011 at 1:10 AM, Pushpalanka Jayawardhana <
pushpalankajaya@gmail.com> wrote:

> Hi,
> The above error was due to a version mismatch occurred with the smslib.jar
> version I used.
> Now I am getting this error
>
> I have placed libLinuxSerialParallel_g.so and libLinuxSerialParallel.so on
> both /usr/lib/jvm/java-6-sun-1.6.0.24/jre/*lib* and /usr/lib/
> jvm/java-6-sun-1.6.0.24/jre/*bin *following several articles. Reasons for
> javax.comm.NoSuchPortException were mentioned as wrong port or Jcomm
> installation errors. I have confirmed them several times now. Could not find
> any hint on that Jcomm Jni library.
>
> [INFO] Listening on port 8080
> 1 [main] INFO smslib - 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
> 1 [main] INFO smslib - Version: 3.4.1
> 1 [main] INFO smslib - JRE Version: 1.6.0_24
> 1 [main] INFO smslib - JRE Impl Version: 19.1-b02
> 1 [main] INFO smslib - O/S: Linux / i386 / 2.6.35-28-generic
> 37 [Thread-3] INFO smslib - GTW: modem.ttyUSB0: Starting gateway, using
> Generic AT Handler.
> 37 [Thread-3] INFO smslib - GTW: modem.ttyUSB0: Opening: /dev/ttyUSB0
> @115200
> *Error loading JComm JNI library*
> [ERROR] org.smslib.GatewayException: Comm library exception:
> java.lang.RuntimeException: javax.comm.NoSuchPortException
> [INFO] [SimpleAxisServer] Started
> [SimpleAxisServer] Started
> 15036 [pool-1-thread-1] WARN smslib - WatchDog: Gateway: modem.ttyUSB0
> restarting.
> 15036 [pool-1-thread-1] INFO smslib - GTW: modem.ttyUSB0: Stopping
> gateway...
> 15037 [pool-1-thread-1] WARN smslib - WatchDog: error while shutting down
> Gateway: modem.ttyUSB0
> java.lang.NullPointerException
>  at org.smslib.scheduler.Scheduler.remove(Scheduler.java:84)
> at org.smslib.modem.AModemDriver.disconnect(AModemDriver.java:236)
>  at org.smslib.modem.ModemGateway.stopGateway(ModemGateway.java:169)
>  at org.smslib.Service$WatchDog.process(Service.java:1386)
> at org.smslib.scheduler.ASchedulerTask.run(ASchedulerTask.java:80)
>  at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>  at
> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
>  at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
>  at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
>  at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
>  at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>  at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> at java.lang.Thread.run(Thread.java:662)
> 15038 [pool-1-thread-1] INFO smslib - GTW: modem.ttyUSB0: Starting gateway,
> using Generic AT Handler.
> 15039 [pool-1-thread-1] INFO smslib - GTW: modem.ttyUSB0: Opening:
> /dev/ttyUSB0 @115200
> 15039 [pool-1-thread-1] ERROR smslib - WatchDog: error while starting
> Gateway: modem.ttyUSB0
> org.smslib.GatewayException: Comm library exception:
> java.lang.RuntimeException: javax.comm.NoSuchPortException
>  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$WatchDog.process(Service.java:1395)
>
> Grateful for any clue on how to solve this.
>
> Thanks!
>
> On Wed, Aug 24, 2011 at 3:47 PM, Pushpalanka Jayawardhana <
> pushpalankajaya@gmail.com> wrote:
>
>> Hi,
>>
>> I am trying to consume a service via a SMS using axis2 sms transport.
>> But when I start the server after configurations it gives me this error.
>>
>> .....
>> [INFO] Deploying Web service: version.aar -
>> file:/home/pushpalanka/Installations/axis2-1.6.0/repository/services/version.aar
>> [INFO] Deploying Web service: SampleInOutService.aar -
>> file:/home/pushpalanka/Installations/axis2-1.6.0/repository/services/SampleInOutService.aar
>> [INFO] Listening on port 8080
>> [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
>> [INFO] Version: 3.5.1
>> [INFO] JRE Version: 1.6.0_24
>> [INFO] JRE Impl Version: 19.1-b02
>> [INFO] O/S: Linux / i386 / 2.6.35-28-generic
>> [FATAL] [SimpleAxisServer] Shutting down. Error starting SimpleAxisServer
>> java.lang.IllegalAccessError: tried to access method
>> org.smslib.Service.<init>()V from class
>> org.apache.axis2.transport.sms.gsm.GSMImplManager
>>  at
>> org.apache.axis2.transport.sms.gsm.GSMImplManager.start(GSMImplManager.java:66)
>>  at org.apache.axis2.transport.sms.SMSManager.start(SMSManager.java:206)
>>  at
>> org.apache.axis2.transport.sms.SMSMessageReciever.start(SMSMessageReciever.java:47)
>>  at
>> org.apache.axis2.engine.ListenerManager.start(ListenerManager.java:167)
>>  at
>> org.apache.axis2.engine.ListenerManager.startSystem(ListenerManager.java:185)
>>  at org.apache.axis2.engine.AxisServer.start(AxisServer.java:101)
>>  at
>> org.apache.axis2.transport.SimpleAxis2Server.main(SimpleAxis2Server.java:99)
>>
>> I installed Java communication API according to USB and serial-port
>> communications from Java
>> <http://mccurdy.wordpress.com/getting-started/usb-and-serial-port-communications-from-java-step-7/>and
looking for any clue on what I am doing wrong.
>>
>>
>>
>> --
>> *Regards,*
>> Pushpalanka Jayawardhana,
>> Undergraduate,
>> Computer Science and Engineering Department,
>> University of Moratuwa,
>> Sri Lanka.
>> Blog : http://pushpalankajaya.blogspot.com/
>>
>>
>
>
> --
> *Regards,*
> Pushpalanka Jayawardhana,
> Undergraduate,
> Computer Science and Engineering Department,
> University of Moratuwa,
> Sri Lanka.
> Blog : http://pushpalankajaya.blogspot.com/
>
>


-- 
Charith Dhanushka Wickramarachchi
http://charithwiki.blogspot.com/

Mime
View raw message