JDK-4529325 - Java Issue Tracker
Nov 19, 2001 ... Name: nt126004 Date: 11/19/2001 java version "1.4.0-beta3" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta3-b84) Java ...
Nov 19, 2001 ... Name: nt126004 Date: 11/19/2001 java version "1.4.0-beta3" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta3-b84) Java ...
java -cp test.jar Test sun.net.www.protocol.jar.JarURLConnection$JarURLInputStream@1690726 -54 -2 -70 -66 0 0 0 50 minor 0 major 50 If a println is added, System.out.println(is.read(header)); instead of.
I have now isolated the problem into a single piece of code for demonstration purposes. This is cut down from a larger piece of software which uses the Java Activation Framework (hence the use of InputStreams). I have attached the code, and two trivial HTML documents.
A DESCRIPTION OF THE PROBLEM : InputStream.read() methods are documented to read bytes from the input stream.InputStream is passed to methods like java.nio.file.Files.copy() which expect to read all of the bytes in the InputStream.
JDK-8239833 : java.awt.Font.createFont(InputStream) leaking temporary files in webapps. Type: Bug.Cleanup at JVM shutdown is too late - all temporary files should get deleted when they're no longer needed. STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : 1/start tomcat.
If the InputStream is created in the DataSource, the InputStream can be read fine. This is probably really more of a documentation issue.java.io.IOException: read error. at java.lang.Throwable.<init>(Compiled Code).