[Rxtx] Port Locking / JVM Crashing

Andy Dalton andy.dalton at gmail.com
Fri Sep 8 22:21:40 MDT 2006


Trent,

Okay, I took some time to look into why the latest-n-greatest wasn't
working for me.  There's a bug in src/RXTXCommDriver.java on line 362:

    System.setProperties(p);

That blows away the pre-set system properties, so later calls to
System.getProperty("os.name") in src/CommPortIdentifier.java returns
null, which later causes a NullPointerException in the static
initializer.

Lines 363-366 update the existing System properties without throwing
the existing properties away, so just commenting out that single line
fixed things.

I noticed that someone else ran into this problem back in early June:

    http://mailman.qbang.org/pipermail/rxtx/Week-of-Mon-20060529/126711.html

Anyway, I'll try out this new version and see if it resolves my problem.

Thanks once again for all your help.

Andy

On 9/8/06, Trent Jarvi <tjarvi at qbang.org> wrote:
>
> Hi Andy
>
> The script mostly works though it's usually used to go the other way while
> preparing rxtx 2.0 for release.  If you noticed the exception error you
> saw was a / instead of a . in the exception..
>
> javax.comm/PortInUseException as I recall.
> ----------^
>
> So its not perfect but that will not be the cause of the error you saw.
>



More information about the Rxtx mailing list