Peter Griffen
Peter Griffen

Reputation: 11

Fatal error attempting to write to COM port using JSSC [EXCEPTION_ACCESS_VIOLATION]

Used JSSC to write/read data from a COM serial device. COM was detected but attempting to write or read gives this error: EXCEPTION_ACCESS_VIOLATION

Upvotes: 0

Views: 2026

Answers (1)

Simon
Simon

Reputation: 1851

This is a known bug in JSSC. Several other people noticed it too (e.g. https://github.com/arduino/Arduino/issues/6788). It seems to happen with Java SE 9 on Windows 10, x64.

Unfortunately, it appears that the JSSC project is no longer maintained/dead. However, as of this writing, there are over 150 forks, some of which appear to be active. For example, maybe the following fork might contain what you're looking for: https://github.com/aploese/spsw

In case you want to go with a different library altogether, this question provides a working example using jSerialComm: How to fix Java rxtxSerial.dll or jSSC-2.7_x86_64.dll Serial Port Error in Windows 10?

Upvotes: 1

Related Questions