[Solved] RFXCOM: OH2.1 reading .things file crashes OH

Installed OH2.1 using apt-get install, added rfxcom to addons.cfg, configured symlink, added a things files and OH2.1 bails out as soon as it reads the .things file.

pi@openhab ~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 7 (wheezy)"
NAME="Raspbian GNU/Linux"
VERSION_ID="7"
VERSION="7 (wheezy)"
ID=raspbian
ID_LIKE=debian
ANSI_COLOR="1;31"
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

pi@openhab ~ $ cat  /etc/apt/sources.list.d/openhab2.list
deb https://dl.bintray.com/openhab/apt-repo2 stable main

pi@openhab ~ $ groups openhab
openhab : openhab tty dialout video

pi@openhab ~ $ cat /etc/udev/rules.d/50-usb-serial.rules
SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{product}=="RFXtrx433", ATTRS{serial}=="A1XFDNKA" SYMLINK+="USBrfxcom", GROUP="dialout", MODE="0666"

pi@openhab ~ $ ls /dev/USB*
lrwxrwxrwx 1 root root         7 Jan  1  1970 /dev/USBrfxcom -> ttyUSB0
crw-rw-rwT 1 root dialout 188, 0 Jun 30 18:29 /dev/ttyUSB0

pi@openhab ~ $ cat /etc/default/openhab2
EXTRA_JAVA_OPTS="-Dgnu.io.rxtx.SerialPorts=/dev/USBrfxcom"

rfxcom.cfg:

################################ RFXCOM Binding #######################################
# Serial port of RFXCOM interface
# Valid values are e.g. COM1 for Windows and /dev/ttyS0 or /dev/ttyUSB0 for Linux
#rfxcom:serialPort=COM6
#serialPort=/dev/ttyUSB0
serialPort=/dev/USBrfxcom
# Set mode command for controller (optional)
# E.g. rfxcom:setMode=0D000000035300000C2F00000000 
#setMode=

rfxcom.things:

Bridge rfxcom:bridge:usb0 [ serialPort="/dev/USBrfxcom" ] {
	Thing lighting5 Bedroom1_Left_Lamp_Dimmer  [deviceId="14732335.4", subType="LightwaveRF,Siemens"]
	Thing lighting5 Bedroom1_Right_Lamp_Dimmer  [deviceId="14732335.5", subType="LightwaveRF,Siemens"]
	Thing lighting5 Bedroom1_Lamp_Dimmer  [deviceId="14732335.6", subType="LightwaveRF,Siemens"]
	}

openhab.log:

pi@openhab /var/log/openhab2 $ cat openhab.log
2017-06-30 21:16:48.361 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'rfxcom.things'
2017-06-30 21:16:49.718 [INFO ] [.dashboard.internal.DashboardService] - Started dashboard at http://192.168.1.97:8080
2017-06-30 21:16:49.727 [INFO ] [.dashboard.internal.DashboardService] - Started dashboard at https://192.168.1.97:8443
2017-06-30 21:16:50.092 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Started Paper UI at /paperui
2017-06-30 21:16:50.101 [DEBUG] [org.openhab.binding.rfxcom          ] - BundleEvent STARTING - org.openhab.binding.rfxcom
2017-06-30 21:16:50.104 [DEBUG] [org.openhab.binding.rfxcom          ] - BundleEvent STARTED - org.openhab.binding.rfxcom
2017-06-30 21:16:50.125 [DEBUG] [org.openhab.binding.rfxcom          ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.config.discovery.DiscoveryService}={component.name=org.openhab.binding.rfxcom.discovery, component.id=151, service.id=272, service.bundleid=181, service.scope=bundle} - org.openhab.binding.rfxcom
2017-06-30 21:16:50.273 [DEBUG] [org.openhab.binding.rfxcom          ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.core.thing.binding.ThingHandlerFactory}={component.name=org.openhab.binding.rfxcom.internal.RFXComHandlerFactory, component.id=152, service.id=273, service.bundleid=181, service.scope=bundle} - org.openhab.binding.rfxcom
2017-06-30 21:16:52.310 [DEBUG] [org.openhab.binding.rfxcom          ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.config.discovery.DiscoveryService}={service.id=277, service.bundleid=181, service.scope=singleton} - org.openhab.binding.rfxcom
2017-06-30 21:16:52.370 [DEBUG] [g.rfxcom.handler.RFXComBridgeHandler] - Initializing RFXCOM bridge handler
2017-06-30 21:16:52.462 [DEBUG] [g.rfxcom.handler.RFXComBridgeHandler] - Checking RFXCOM transceiver connection, thing status = OFFLINE
2017-06-30 21:16:52.467 [DEBUG] [g.rfxcom.handler.RFXComBridgeHandler] - Connecting to RFXCOM transceiver
2017-06-30 21:16:52.497 [DEBUG] [binding.rfxcom.handler.RFXComHandler] - Initializing thing rfxcom:lighting5:usb0:Bedroom1_Left_Lamp_Dimmer
2017-06-30 21:16:52.500 [DEBUG] [binding.rfxcom.handler.RFXComHandler] - initializeBridge OFFLINE for thing rfxcom:lighting5:usb0:Bedroom1_Left_Lamp_Dimmer
2017-06-30 21:16:52.522 [DEBUG] [rnal.connector.RFXComSerialConnector] - Disconnecting
2017-06-30 21:16:52.523 [DEBUG] [rnal.connector.RFXComSerialConnector] - Closed
2017-06-30 21:16:52.550 [DEBUG] [binding.rfxcom.handler.RFXComHandler] - Initializing thing rfxcom:lighting5:usb0:Bedroom1_Right_Lamp_Dimmer
2017-06-30 21:16:52.552 [DEBUG] [binding.rfxcom.handler.RFXComHandler] - initializeBridge OFFLINE for thing rfxcom:lighting5:usb0:Bedroom1_Right_Lamp_Dimmer
2017-06-30 21:16:52.568 [DEBUG] [binding.rfxcom.handler.RFXComHandler] - Initializing thing rfxcom:lighting5:usb0:Bedroom1_Lamp_Dimmer
2017-06-30 21:16:52.569 [DEBUG] [binding.rfxcom.handler.RFXComHandler] - initializeBridge OFFLINE for thing rfxcom:lighting5:usb0:Bedroom1_Lamp_Dimmer
2017-06-30 21:16:52.693 [INFO ] [ui.habmin.internal.servlet.HABminApp] - Started HABmin servlet at /habmin

at which point, openhab dies:

pi@openhab ~ $ sudo service openhab2 status
status: Ignoring predefined value for KARAF_HOME
Not Running ...

I’ve been around this loop a few times now, and am getting the same result - there’s got to be something fundamental I’m missing here, but can’t see what…

I have no problem with OH1, but whatever I try with OH2 (1.9 binding or 2 binding), I can’t get it to work.

Cheers
James

It would appear this was caused by an issue with the libc library, upgrading to jessie solved the problem:

Cheers
James