<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 16 Apr 2010, at 10:50, Philippe Van Dyck wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Ok, JDK Bug &nbsp;<a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6519463">http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6519463</a><div><br></div><div>The workaround is to simply ignore (!) the&nbsp;EOFException...</div></blockquote><div><br></div><div>Oh that's always fun! &nbsp;:)</div><div><br></div><div>Care to file a JIRA?</div><br><blockquote type="cite">
<div><br></div><div>WDYT ?</div><div><br></div><div>phil<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Philippe Van Dyck</b> <span dir="ltr">&lt;<a href="mailto:pvdyck@gmail.com">pvdyck@gmail.com</a>&gt;</span><br>
Date: Fri, Apr 16, 2010 at 10:52 AM<br>Subject: Fwd: Bug : read after end of stream @ AbstractMarshaller<br>To: infinispan -Dev List &lt;<a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a>&gt;<br>
<br><br>Ok, I took a closer look.<div>Actually, it is related to HTTPCORE-199, and this bug is fixed.</div><div>What about using&nbsp;int len = inputStream.available(); in AbstractMarshaller again ?</div><div><br></div><div>phil<div>
<div></div><div class="h5"><br><br>
<div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Philippe Van Dyck</b> <span dir="ltr">&lt;<a href="mailto:pvdyck@gmail.com" target="_blank">pvdyck@gmail.com</a>&gt;</span><br>
Date: Fri, Apr 16, 2010 at 10:45 AM<br>
Subject: Bug : read after end of stream @ AbstractMarshaller<br>To: infinispan -Dev List &lt;<a href="mailto:infinispan-dev@lists.jboss.org" target="_blank">infinispan-dev@lists.jboss.org</a>&gt;<br><br><br>Hi all,<div><br>
</div><div>since I use an InflaterInputStream to send objects to S3 using JClouds Blobstore, I need a very strict management of streams.</div>
<div>In AbstractMarshaller,&nbsp;&nbsp;while ((bytesRead = inputStream.read(buf, 0, buf.length)) != -1) bytes.write(buf, 0, bytesRead) will read after the stream's end, waiting for '-1' to happen.</div>
<div>You cannot do that with a&nbsp;GZIPInputStream because you will get a "java.io.EOFException: Unexpected end of ZLIB input stream".</div><div>Should I file a bug or correct the code ?</div><div><br></div><div>phil</div>


</div><br></div></div></div>
</div><br></div>
_______________________________________________<br>infinispan-dev mailing list<br><a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/infinispan-dev</blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>--</div><div>Manik Surtani</div><div><a href="mailto:manik@jboss.org">manik@jboss.org</a></div><div>Lead, Infinispan</div><div>Lead, JBoss Cache</div><div><a href="http://www.infinispan.org">http://www.infinispan.org</a></div><div><a href="http://www.jbosscache.org">http://www.jbosscache.org</a></div><div><br></div></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline">
</div>
<br></body></html>