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

2018-03-25 20:40:59 JNI call ThrowNew failed to throw exception !, FormatMessageA(), error code : 15100 #36

Open
makarna35 opened this issue Mar 25, 2018 · 9 comments

Comments

@makarna35
Copy link

Hi;

I'm try only this:
`class HotPlugEventWatcher implements ISerialComUSBHotPlugListener {

@Override
public void onUSBHotPlugEvent(int event, int usbvid, int usbpid, String serialNumber) {

    if(event == SerialComUSB.DEV_ADDED) {
        System.out.println("DUT added, running automated tests for this device !");

    }else if(event == SerialComUSB.DEV_REMOVED) {
        System.out.println("DUT removed, running tests, if any, to be run after device removal !");
        System.out.println("usbvid : " + usbvid);
    }else {
    }
    
}

}`

If I'm unplug my usb Device from USB port netbeans show this message:

2018-03-25 20:40:59 JNI call ThrowNew failed to throw exception !, FormatMessageA(), error code : 15100

@RishiGupta12
Copy link
Owner

RishiGupta12 commented Mar 25, 2018 via email

@makarna35
Copy link
Author

Windows not have any problem. I'm use only NETBEANS

@makarna35
Copy link
Author

NOTE: I use FT series usb-com converter. I'm plug and unplug for test.

@makarna35
Copy link
Author

And now I get this message:

JNI call CallVoidMethod() in usb_hotplug_event_handler() , failed !

@makarna35
Copy link
Author

JNI call CallVoidMethod() in usb_hotplug_event_handler() , failed ! error cause of me I'm fix it but

JNI call ThrowNew failed to throw exception !, FormatMessageA(), error code : 15100
problem still exist

@makarna35
Copy link
Author

I'm dedect problem but I not have a solition. If use this scenario you can see problem:
start read with scm.readString(handle); in while (read nonstop) and try UNPLUG USB device after this you can see "JNI call ThrowNew failed to throw exception !, FormatMessageA(), error code : 15100" message
You have any solition?

@RishiGupta12
Copy link
Owner

May you check if same problem occurs with eclipse also.

@makarna35
Copy link
Author

I not have Eclipse

@RishiGupta12
Copy link
Owner

Which language your windows system is using English or any other language. Try installing and activating english in windows computer and see if this still occurs. I tried to debug and found windows is not able to found correct english string.

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