HTT URLConnection.getInputStream seems broken in cvs

Michael Koch konqueror@gmx.de
Fri Mar 4 09:20:00 GMT 2005


On Fri, Mar 04, 2005 at 05:10:58PM +0800, Fabio Roger wrote:
> Hi,
>> I try a URL.getInputStream() for a normal http connection and it throws
> this exception:
>> ...
> Caused by: java.lang.ArrayIndexOutOfBoundsException
> at java.lang.System.arraycopy(java.lang.Object, int,
> java.lang.Object, int, int) (/usr/lib/libgcj.so.6.0.0)
> at java.io.BufferedInputStream.refill() (/usr/lib/libgcj.so.6.0.0)
> at java.io.BufferedInputStream.read(byte[], int, int)
> (/usr/lib/libgcj.so.6.0.0)
> at gnu.java.net.LineInputStream.readLine() (/usr/lib/libgcj.so.6.0.0)
> at gnu.java.net.protocol.http.Headers.parse(java.io.InputStream)
> (/usr/lib/libgcj.so.6.0.0)
> at gnu.java.net.protocol.http.Request.readResponse
> (gnu.java.net.LineInputStream) (/usr/lib/libgcj.so.6.0.0)
> at gnu.java.net.protocol.http.Request.dispatch()
> (/usr/lib/libgcj.so.6.0.0)
> at gnu.java.net.protocol.http.HTTPURLConnection.connect()
> (/usr/lib/libgcj.so.6.0.0)
> at gnu.java.net.protocol.http.HTTPURLConnection.getInputStream()
> (/usr/lib/libgcj.so.6.0.0)
> ...
>>> gcc version 4.1.0 20050303 (experimental) (I just checkout and compile)
>> and this works well when compiled/used with gcc 3.4.2 in the other box.
>> am I doing something wrong or the thing is broken?

Do you have a simple testcase that triggers this ?
Michael
-- 
Java Trap: http://www.gnu.org/philosophy/java-trap.html


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /