Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

UnsupportedCommOperationException throws "Error 0"

$
0
0
Hi,

I'm new to java. There is a problem to write java program which sets comm port parameters and then reads them into command line.
This operation is performed correctly but the following message appears:

javax.comm.UnsupportedCommOperationException: Win32 Comm Driver: Error 0

I read that "Error 0" means that the operation completed successfully.

My question is if it is OK that the message mentioned above is reported, or there is a problem? What problem it could be?

Below is the code that throws an exception:

try {
	serialPort.setSerialPortParams(19200, DATABITS_5, STOPBITS_1, PARITY_EVEN);
} catch (UnsupportedCommOperationException e) {
System.out.println(e);
		}



Thanks in advance.

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>