java.io.IOException: Stream closed.

Oracle Community | 843804 | 10 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Stream Closed when accessing a jar file

    Oracle Community | 10 years ago | 843804
    java.io.IOException: Stream closed.
  2. 0

    Stream Closed

    Oracle Community | 2 decades ago | 843797
    java.io.IOException: Stream closed.
  3. 0

    Below is from new code that moved the composition of the DNS record from ARCWriter, just before write to ARC, back up into the FetchDNS writer having it write to scratch files as FetchHTTP does. The exception is odd. We shouldn't be reading from a socket here -- we should just be copying between buffers (Looks like we're trying to use the HttpRecorder RecordingInputStream from a previous fetch). Does it happen often? St.Ack Igor Ranitovic wrote: > On http://crawling06.us.archive.org:8080: > Time: Aug. 14, 2006 01:17:36 GMT > Level: SEVERE > Message: > > Failed store of DNS Record for dns:exhaustplus.com.au(in processor DNS) > > Exception: > > java.io.IOException: Stream closed. > Stacktrace: java.io.IOException: Stream closed. > at java.net.PlainSocketImpl.available(PlainSocketImpl.java:428) > at java.net.SocketInputStream.available(SocketInputStream.java:217) > at java.io.BufferedInputStream.read(BufferedInputStream.java:321) > at java.io.FilterInputStream.read(FilterInputStream.java:90) > at org.archive.io.RecordingInputStream.read(RecordingInputStream.java:124) > at org.archive.crawler.fetcher.FetchDNS.recordDNS(FetchDNS.java:250) > at org.archive.crawler.fetcher.FetchDNS.storeDNSRecord(FetchDNS.java:191) > at org.archive.crawler.fetcher.FetchDNS.innerProcess(FetchDNS.java:145) > at org.archive.crawler.framework.Processor.process(Processor.java:103) > at Below is from new code that moved the composition of the DNS record from ARCWriter, just before write to ARC, back up into the FetchDNS writer having it write to scratch files as FetchHTTP does. The exception is odd. We shouldn't be reading from a socket here -- we should just be copying between buffers. Does it happen often? St.Ack Igor Ranitovic wrote: > On http://crawling06.us.archive.org:8080: > Time: Aug. 14, 2006 01:17:36 GMT > Level: SEVERE > Message: > > Failed store of DNS Record for dns:exhaustplus.com.au(in processor DNS) > > Exception: > > java.io.IOException: Stream closed. > Stacktrace: java.io.IOException: Stream closed. > at java.net.PlainSocketImpl.available(PlainSocketImpl.java:428) > at java.net.SocketInputStream.available(SocketInputStream.java:217) > at java.io.BufferedInputStream.read(BufferedInputStream.java:321) > at java.io.FilterInputStream.read(FilterInputStream.java:90) > at org.archive.io.RecordingInputStream.read(RecordingInputStream.java:124) > at org.archive.crawler.fetcher.FetchDNS.recordDNS(FetchDNS.java:250) > at org.archive.crawler.fetcher.FetchDNS.storeDNSRecord(FetchDNS.java:191) > at org.archive.crawler.fetcher.FetchDNS.innerProcess(FetchDNS.java:145) > at org.archive.crawler.framework.Processor.process(Processor.java:103) > at org.archive.crawler.framework.ToeThread.processCrawlUri(ToeThread.java:304) > at org.archive.crawler.framework.ToeThread.run(ToeThread.java:153) > org.archive.crawler.framework.ToeThread.processCrawlUri(ToeThread.java:304) > at org.archive.crawler.framework.ToeThread.run(ToeThread.java:153) >

    JIRA | 1 decade ago | Michael Stack
    java.io.IOException: Stream closed.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    WSO2ESB error when posting JSON request over TCP

    Stack Overflow | 3 months ago | shanaka
    org.apache.axis2.AxisFault: Could not write JSON stream.
  6. 0

    Cause of assertion failure

    Stack Overflow | 5 years ago | balor123
    groovy.lang.GroovyRuntimeException: exception while dumping process stream

  1. Piz 1 times, last 10 months ago
  2. poroszd 1 times, last 2 years ago
11 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.IOException

    Stream closed.

    at java.net.PlainSocketImpl.available()
  2. Java RT
    FilterInputStream.read
    1. java.net.PlainSocketImpl.available(Unknown Source)
    2. java.net.SocketInputStream.available(Unknown Source)
    3. java.io.BufferedInputStream.available(Unknown Source)
    4. sun.net.www.http.ChunkedInputStream.readAheadNonBlocking(Unknown Source)
    5. sun.net.www.http.ChunkedInputStream.readAhead(Unknown Source)
    6. sun.net.www.http.ChunkedInputStream.available(Unknown Source)
    7. sun.net.www.MeteredStream.available(Unknown Source)
    8. java.io.BufferedInputStream.read(Unknown Source)
    9. java.io.FilterInputStream.read(Unknown Source)
    9 frames
  3. sun.plugin
    PluginURLJarFileCallBack$1.run
    1. sun.plugin.PluginURLJarFileCallBack$1.run(Unknown Source)
    1 frame
  4. Java RT
    AccessController.doPrivileged
    1. java.security.AccessController.doPrivileged(Native Method)
    1 frame
  5. sun.plugin
    PluginURLJarFileCallBack.retrieve
    1. sun.plugin.PluginURLJarFileCallBack.retrieve(Unknown Source)
    1 frame
  6. Java RT
    JarURLConnection.connect
    1. sun.net.www.protocol.jar.URLJarFile.retrieve(Unknown Source)
    2. sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source)
    3. sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source)
    4. sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source)
    4 frames
  7. sun.plugin.net
    CachedJarURLConnection.connect
    1. sun.plugin.net.protocol.jar.CachedJarURLConnection.connect(Unknown Source)
    1 frame
  8. Unknown
    Graph.<init>
    1. GetData.getStuff(GetData.java:48)
    2. GetData.<init>(GetData.java:35)
    3. Graph.<init>(Graph.java:35)
    3 frames
  9. Java RT
    AppletPanel.createApplet
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    4. java.lang.reflect.Constructor.newInstance(Unknown Source)
    5. java.lang.Class.newInstance0(Unknown Source)
    6. java.lang.Class.newInstance(Unknown Source)
    7. sun.applet.AppletPanel.createApplet(Unknown Source)
    7 frames
  10. sun.plugin
    AppletViewer.createApplet
    1. sun.plugin.AppletViewer.createApplet(Unknown Source)
    1 frame
  11. Java RT
    Thread.run
    1. sun.applet.AppletPanel.runLoader(Unknown Source)
    2. sun.applet.AppletPanel.run(Unknown Source)
    3. java.lang.Thread.run(Unknown Source)
    3 frames