Digi XBee Zigbee Mesh Kit User Manual page 189

Radio frequency (rf) module
Table of Contents

Advertisement

Troubleshooting
"Can't load AMD 64-bit .dll on a IA 32-bit platform thrown while loading
n
gnu.io.RXTXCommDriver" (or similar message):
java.lang.UnsatisfiedLinkError:
C:\Users\user\workspace\SendReceiveDataSample\libs\native\Windows\win64\rxtxSeria
l.dll: Can't load AMD 64-bit .dll on a IA 32-bit platform thrown while loading
gnu.io.RXTXCommDriver
Exception in thread "main" java.lang.UnsatisfiedLinkError:
C:\Users\user\workspace\SendReceiveDataSample\libs\native\Windows\win64\rxtxSeria
l.dll: Can't load AMD 64-bit .dll on a IA 32-bit platform
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1957)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1882)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1872)
at java.lang.Runtime.loadLibrary0(Runtime.java:849)
at java.lang.System.loadLibrary(System.java:1087)
at gnu.io.CommPortIdentifier.<clinit>(CommPortIdentifier.java:123)
at com.digi.xbee.api.connection.serial.SerialPortRxTx.open
(SerialPortRxTx.java:161)
at com.digi.xbee.api.XBeeDevice.open(XBeeDevice.java:189)
at com.digi.xbee.sendreceivedatasample.MainApp.main(MainApp.java:43)
This exception indicates that the RXTX native library you have linked is not the correct one. Check to
be sure you are not using a 32-bit JVM linked the 64-bit library, or vice versa.
Interface in use exception message
If you experience the "com.digi.xbee.api.exceptions.InterfaceInUseException" exception, it indicates
that the port you are trying to open is already in use. Ensure that you do not have any applications
running and that the XCTU console of that port is not connected.
com.digi.xbee.api.exceptions.InterfaceInUseException: Port COM5 is already in use
by other application(s)
at com.digi.xbee.api.connection.serial.SerialPortRxTx.open
(SerialPortRxTx.java:189)
at com.digi.xbee.api.XBeeDevice.open(XBeeDevice.java:189)
at com.digi.xbee.sendreceivedatasample.MainApp.main(MainApp.java:43)
Caused by: gnu.io.PortInUseException: Unknown Application
at at gnu.io.CommPortIdentifier.open(CommPortIdentifier.java:467)
at at com.digi.xbee.api.connection.serial.SerialPortRxTx.open
(SerialPortRxTx.java:167)
... 2 more
Error 0x5 at ..\src\termios.c(892): Access is denied.
Java lang no class definition exception message
If you experience the "java.lang.NoClassDefFoundError" exception, it indicates that the logger library
(slf4j-api-1.7.7.jar) is not linked to the project. See the Link the libraries to the project section to
know which libraries you have to link.
Exception in thread "main" java.lang.NoClassDefFoundError:
org/slf4j/LoggerFactory
at com.digi.xbee.api.connection.serial.AbstractSerialPort.<init>
(AbstractSerialPort.java:170)
at com.digi.xbee.api.connection.serial.AbstractSerialPort.<init>
(AbstractSerialPort.java:136)
at com.digi.xbee.api.connection.serial.SerialPortRxTx.<init>
(SerialPortRxTx.java:149)
at com.digi.xbee.api.connection.serial.SerialPortRxTx.<init>
(SerialPortRxTx.java:124)
XBee® Zigbee® Mesh Kit
XBee Java library
189

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the XBee Zigbee Mesh Kit and is the answer not in the manual?

Table of Contents