bugs.java.com
JDK-4529325 - Java Issue Tracker
Nov 19, 2001 ... ... input stream of the InflaterOutputStream. This byte will lead to an error on the consequent iteration. Replacing in the submitter's example ...
Nov 19, 2001 ... ... input stream of the InflaterOutputStream. This byte will lead to an error on the consequent iteration. Replacing in the submitter's example ...
So I have implemented my own class and passed the contentType and InputStream object in the constructor: The folowing is an example to demonstrate the problem.java.io.IOException: read error. at java.lang.Throwable.<init>(Compiled Code).
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : 1. Create a CipherInputStream over a valid AES/GCM ciphertext with a Cipher in DECRYPT_MODE 2. Read bytes from the input stream until they are exhausted 3. Close the input stream.