java.io.IOException: Stream closed.

JIRA | Michael Stack | 1 decade 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

    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.
  2. 0

    Stream Closed when accessing a jar file

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

    Stream Closed

    Oracle Community | 2 decades ago | 843797
    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 | 4 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. Axelo 2 times, last 1 month ago
  2. Piz 1 times, last 11 months ago
  3. 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(PlainSocketImpl.java:428)
    2. java.net.SocketInputStream.available(SocketInputStream.java:217)
    3. java.io.BufferedInputStream.read(BufferedInputStream.java:321)
    4. java.io.FilterInputStream.read(FilterInputStream.java:90)
    4 frames
  3. webarchive-commons
    RecordingInputStream.read
    1. org.archive.io.RecordingInputStream.read(RecordingInputStream.java:124)
    1 frame
  4. org.archive.crawler
    ToeThread.run
    1. org.archive.crawler.fetcher.FetchDNS.recordDNS(FetchDNS.java:250)
    2. org.archive.crawler.fetcher.FetchDNS.storeDNSRecord(FetchDNS.java:191)
    3. org.archive.crawler.fetcher.FetchDNS.innerProcess(FetchDNS.java:145)
    4. org.archive.crawler.framework.Processor.process(Processor.java:103)
    5. org.archive.crawler.framework.ToeThread.processCrawlUri(ToeThread.java:304)
    6. org.archive.crawler.framework.ToeThread.run(ToeThread.java:153)
    6 frames