- Code: Select all
Error while connecting NXTCommand() constructor
gnu.io.PortInUseException: Unknown Application
at gnu.io.CommPortIdentifier.open(CommPortIdentifier.java:354)
at icommand.nxtcomm.NXTComm.open(Unknown Source)
at icommand.nxtcomm.NXTCommand.<clinit>(Unknown Source)
at icommand.platform.nxt.Motor.stop(Unknown Source)
at RadioControl.run(Unknown Source)
at java.lang.Thread.run(Thread.java:613)
Exception in thread "Thread-2" java.lang.NullPointerException
at icommand.nxtcomm.NXTComm.sendData(Unknown Source)
at icommand.nxtcomm.NXTCommand.sendRequest(Unknown Source)
at icommand.nxtcomm.NXTCommand.setOutputState(Unknown Source)
at icommand.platform.nxt.Motor.stop(Unknown Source)
at RadioControl.run(Unknown Source)
at java.lang.Thread.run(Thread.java:613)
From googling, it seems that lots of people have this problem, but I haven't seen any solutions. It looks like the problem is the initiation of the Bluetooth connection, since the CommPortIdentifier.open() method throws this particular exception when the port is not available. Perhaps RXTX needs to do something special when dealing with Bluetooth serial ports? The port is certainly not in use, I even checked that with lsof.
Does anybody have any ideas what might be wrong? Also, I have seen several mentions of a new release - any idea when that will come out?
