This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: HTT URLConnection.getInputStream seems broken in cvs
- From: Michael Koch <konqueror at gmx dot de>
- To: Fabio Roger <fabioroger at gmail dot com>
- Cc: gcj <java at gcc dot gnu dot org>
- Date: Fri, 4 Mar 2005 10:18:56 +0100
- Subject: Re: HTT URLConnection.getInputStream seems broken in cvs
- References: <1109927458.29108.15.camel@localhost>
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