Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JNI call ThrowNew failed to throw exception #17

Closed
KanameMashiro opened this issue Feb 10, 2017 · 2 comments
Closed

JNI call ThrowNew failed to throw exception #17

KanameMashiro opened this issue Feb 10, 2017 · 2 comments

Comments

@KanameMashiro
Copy link

KanameMashiro commented Feb 10, 2017

Hello Rishi,
I tried to run the example but I got this error in the Eclipse console, what does it mean or why it happens?

JNI call ThrowNew failed to throw exception !, FormatMessageA(), error code : 15100
com.serialpundit.core.SerialComException: 
	at com.serialpundit.serial.internal.SerialComPortJNIBridge.openComPort(Native Method)
	at com.serialpundit.serial.SerialComManager.openComPort(SerialComManager.java:618)
	at paquetePruebaSerial.Example.main(Example.java:14)

The line 14:

            long handle = scm.openComPort("COM5", true, true, true);

I was working on a machine with Win8.1 (AMD64)

@RishiGupta12
Copy link
Owner

Does com5 exists. Which serial hw you are using.

@KanameMashiro
Copy link
Author

Thanks for answer, COM5 exists. I'm using an Arduino Nano CH340G.
Solved already, re-installed drivers, that seems to be buggy, and the program works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants