javarxtxsmslib

rxtx error using smslib and mobile phone as a modem


I am trying to use smslib to send an sms. It works fine on windows but now I need to get it working under ubuntu 11.10. So I installed rxtx for a 64 bit os from here http://www.cloudhopper.com/opensource/rxtx/. Connected the mobile phones using usb which has been detected as /dev/ttyACM0 which I linked to /dev/ttyS32 (a free serial port). Then I try to run the program and I am getting the following error:

# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f44f9a065da, pid=8875, tid=139934227818240
#
# JRE version: 7.0_147-b147
# Java VM: OpenJDK 64-Bit Server VM (21.0-b17 mixed mode linux-amd64 compressed oops)
# Derivative: IcedTea7 2.0
# Distribution: Ubuntu 11.10, package 7~b147-2.0-0ubuntu0.11.10.1
# Problematic frame:
# C  [librxtxSerial.so+0x75da]  Java_gnu_io_RXTXPort_nativeDrain+0xea
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/radek/NetBeansProjects/sms/hs_err_pid8875.log
#
# If you would like to submit a bug report, please include
# instructions on how to reproduce the bug and visit:
#   https://bugs.launchpad.net/ubuntu/+source/openjdk-7/
#
Java Result: 134

I have no idea how to tackle this.


Solution

  • I installed a newer version and it's working fine now.