Greetings.
I have an annoying issue that arises when I try to disconnect from the device I am communicating (USB CDC ACM device, which doesn't support V.250 command set). When I physically connect the device for the first time or when I physically disconnect and reconnect the device and Linux kernel automatically assigns the USB CDC ACM drivers and run my application, it works without any issues except when I try to close the interface and exit my application.
I close both input and output pipes and when I try to release the interface I get the following error: javax.usb.UsbPlatformException: USB error 5: Unable to release interface: Entity not found. The interesting part happens when I force stop my application and rerun it. After initialization procedure I start to communicate with the device and now when I close the interface I do NOT receive the same error. In fact, it shuts down without any errors whatsoever. This error only occurs when I unplug the device and replug it back OR when I plug the device in for the first time.
You can see both my initialization function and USB close function in the attached file.
Thank you very much for your assistance in advance.
Best regards,
Dejan Volk
P.S: I'm running Ubuntu 12.04 LTS, using usb4Java version 1.2.0.