This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 255136 - java.io.IOException: Stream closed
Summary: java.io.IOException: Stream closed
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Classfile (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-09 13:07 UTC by MackSix
Modified: 2015-09-18 08:58 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 219813


Attachments
stacktrace (1.62 KB, text/plain)
2015-09-09 13:07 UTC, MackSix
Details
logfile after fix (57.11 KB, text/plain)
2015-09-12 10:25 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2015-09-09 13:07:23 UTC
Build: NetBeans IDE Dev (Build 201509090002)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.60-b23, Java(TM) SE Runtime Environment, 1.8.0_60-b27
OS: Windows 7

User Comments:
MackSix: Runninng Java 8 Profiles Conformance on JEdit 5.2 source.




Stacktrace: 
java.io.IOException: Stream closed
   at java.io.BufferedInputStream.getInIfOpen(BufferedInputStream.java:159)
   at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
   at java.io.BufferedInputStream.read(BufferedInputStream.java:265)
   at java.io.DataInputStream.readInt(DataInputStream.java:387)
   at org.netbeans.modules.classfile.ClassFile.loadClassHeader(ClassFile.java:205)
   at org.netbeans.modules.classfile.ClassFile.load(ClassFile.java:190)
Comment 1 MackSix 2015-09-09 13:07:25 UTC
Created attachment 156013 [details]
stacktrace
Comment 2 Tomas Zezula 2015-09-10 08:46:41 UTC
I am not able to reproduce on the same proeject jEdit 5.2 sources on JDK8u60 platform.
Some file from ct.sym cannot be resolved.
I've at least not propagate the error and throw IOException in such a case when it happens. The validator just logs files which cannot be resolved and assigns UNKNOWN profile to them.

But I am still interested in file which cannot e resolved, it will be logged into IDE log in the build having this fix.
It may happen when ct.sym is not valid, the ct.sym should always contain all classes from package (except of local classes). I've written a test to verify it on JDK8u60 and it seems OK.

jet-main 664b9c432b78
Comment 3 Quality Engineering 2015-09-11 01:22:06 UTC
Integrated into 'main-silver', will be available in build *201509110002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/664b9c432b78
User: Tomas Zezula <tzezula@netbeans.org>
Log: #255136:java.io.IOException: Stream closed
Comment 4 MackSix 2015-09-12 10:25:51 UTC
Created attachment 156123 [details]
logfile after fix

Here is a logfile after the fix, running the inspection on the JEdit 5.2 source code. I see nothing special logged in it myself.

The only class files in the project that results are returned for are the jar files I specifically added to the classpath in the free-form project properties. Other class files in the project that should have returned results do not return results. As filed here: https://netbeans.org/bugzilla/show_bug.cgi?id=255055
Comment 5 MackSix 2015-09-18 08:58:24 UTC
v. fixed.