[Rxtx] Status of old fix (Fix for JNI Get/Set Field Errors)

Trent Jarvi tjarvi at qbang.org
Tue Feb 3 17:44:06 MST 2009



On Tue, 3 Feb 2009, Steffen Späthe wrote:

> Hello everyone,
>
> first of all thanks to everyone, who helps RxTx. It is very nice, to
> have a good standard library for RS232 on Linux and Windows. Thank you.
>
> I am writing because i am in some trouble with rxtx. When I run my java
> application with additional VM-args "-Xcheck:jni" JVM stops working with
> this error-code:
>
> Try to open serial port with name /dev/ttyS0
> FATAL ERROR in native method: Field type (instance) mismatch in JNI
> get/set field operations
>       at gnu.io.RXTXPort.eventLoop(Native Method)
>       at gnu.io.RXTXPort$MonitorThread.run(RXTXPort.java:1575)
>
> I have tried it on Linux as well as on Windows XP - same result.
> Some time ago, there was an fix for this problem
> (http://mailman.qbang.org/pipermail/rxtx/2007-June/3676251.html), but I
> did not found any response on it. The source-code of rxtx 2.1-7r2 does
> not include it, as well rxtx 2.2pre1 does is not.
>
> Does anybody know why it is not?
> Currently I am not able to adapt the patch by my one. I am not familiar
> with compile RxTx on Linux nor cross-compile on Linux for Windows. Is
> there anybody out there, who is familiar with that and willing to
> support me?
>

Hi Steffen

The fix should be out tomorrow in another round of prereleases.  I'm not 
sure how the patch you mention fell out but it did.  I'm also looking at a 
couple minor build issues I'm having which should be resolved shortly.

--
Trent Jarvi
tjarvi at qbang.org


More information about the Rxtx mailing list