Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » RXTX uucp_lock() /var/lock/LK.051.019.002(Not able to do serial test)
RXTX uucp_lock() /var/lock/LK.051.019.002 [message #1436719] Fri, 03 October 2014 09:55 Go to next message
Emmelie Cedergren is currently offline Emmelie CedergrenFriend
Messages: 1
Registered: October 2014
Junior Member
Hi there,
I'm trying to do a serial test on a Java-code I've written, but when I'm trying to do a serial test I get this response:

RXTX uucp_lock() /var/lock/LK.051.019.002 is there
gnu.io.PortInUseException: Unknown Application

I've tried to solve it with Google, but don't know how to do it. Does anyone have a suggestion?

/Emmelie
Re: RXTX uucp_lock() /var/lock/LK.051.019.002 [message #1437117 is a reply to message #1436719] Fri, 03 October 2014 23:09 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 10/03/2014 05:10 AM, Emmelie Cedergren wrote:
> gnu.io.PortInUseException: Unknown Application

Really?

I just Googled "gnu.io.PortInUseException: Unknown Application" and got
lots of results. The very first one is from stackoverflow.com and looks
like a really good place to start.

Anyway, this is nothing at all to do with Eclipse, so you could have
waited a very long time without an answer here. Please read the sticky
posts at forum's top.

Cheers
Re: RXTX uucp_lock() /var/lock/LK.051.019.002 [message #1437376 is a reply to message #1436719] Sat, 04 October 2014 09:06 Go to previous message
Tauno Voipio is currently offline Tauno VoipioFriend
Messages: 502
Registered: August 2014
Senior Member
I suppose that you're running some flavor of Linux.

The lock files are used by UNIXish operating systems to
prevent concurrent accesses to a device file from unrelated
processes. The process creating the file should delete it
when its access is over.

1. Look at the details of the lock file:
ls -l /var/lock/LK.051.019.002

who owns it and when is it created. If you are sure that
there is no program running which could legitimately
use the port, just delete the lock file and try again. To be
sure, close Eclipse for the time of these operations.

2. Check that you have read and write access to the serial
port device file (/dev/ttySnn, /dev/ttyUSB0, ... ). The file names
and access requirements vary among different Linux
distributions, and the needed corrective actions vary in
the same way.

In Ubuntu (and supposedly other Debians), the user has to
be a member of dialout group for straight serial ports and
a member of plugdev group for USB ports.


--

Tauno Voipio
Previous Topic:Eclipse Programming remote on ftp-server
Next Topic:Define a New Server choosing GlassFish 3.1 gives Internal Error
Goto Forum:
  


Current Time: Mon Oct 21 01:03:00 GMT 2019

Powered by FUDForum. Page generated in 0.03333 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top