This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

HTT URLConnection.getInputStream seems broken in cvs


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?

thanks,

Fabio Roger



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]