On 22-Oct-06, at 11:48 AM, Brian Bagnall wrote:
> Hi Derek,
>
> I'm not an OSX user but should we change the instructions to tell
> users to
> make both the /var/lock and /var/spool/uucp directories? (with 777
> access)
> Also, you mentioned a lock file must be manually deleted if a
> connection
> terminates prematurely. What error will the user receive if the
> lock file is
> still present?
Unfortunately I didn't record the scenarios when I was first setting
things up. I got to that classic point of suddenly things started
working and you're not really sure why. However, I've tried a few
things to reproduce the errors.
I think the main issues is not closing the connection properly. When
I run DirectNXT then kill it so it doesn't exit correctly I get the
following on std.err the next time I try to run it:
RXTX Warning: Removing stale lock file. /var/lock/LK.002.009.004
This is followed shortly on std.err by:
gnu.io.PortInUseException: Unknown Application
at gnu.io.CommPortIdentifier.open(CommPortIdentifier.java:354)
at icommand.nxtcomm.NXTComm.open(NXTComm.java:52)
at icommand.nxtcomm.NXTCommand.<clinit>(NXTCommand.java:16)
at MotorPanel.getOutputCommand(MotorPanel.java:84)
at MotorPanel.<init>(MotorPanel.java:56)
at DirectNXT.<init>(DirectNXT.java:14)
at DirectNXT.main(DirectNXT.java:24)
Exception in thread "main" java.lang.NullPointerException
at icommand.nxtcomm.NXTComm.sendData(NXTComm.java:105)
at icommand.nxtcomm.NXTCommand.getOutputState(NXTCommand.java:412)
at MotorPanel.getOutputCommand(MotorPanel.java:84)
at MotorPanel.<init>(MotorPanel.java:56)
at DirectNXT.<init>(DirectNXT.java:14)
at DirectNXT.main(DirectNXT.java:24)
However these results are in consistent. It looks like unknown
timeouts are also involved. Sometimes things will work fine on the
third try. Sometimes you get the RXTX Warning only and the
application runs. Sometimes you don't get the RXTX Warning but you
do get the exception.
I haven't been able to pin down a clear pattern.
I sure there is a second element at work here because even deleting
the lock file and restarting the NXT doesn't always mean a clean start.
As I experiment more I'll let you know what I find.
Derek
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Lejos-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lejos-discussion