What "java.io.IOException: No error in nativeDrain" actually means?

How does the Arduino throw a java IO exception?