On Thu, Oct 24, 2002 at 06:27:58PM +0200, the bishop wrote:
> >> --------- snip ------------
> >>   Internal error: caught an unexpected exception.
> >> Please check your CLASSPATH and your installation.
> >> java/io/InterruptedIOException: Read timed out or was interrupted
> >
> > Shit, that's what I was getting. I "upgraded" to the IBM JDK and it went
> > away... I thought it was local because I tried an older version of fred
> > and got the same thing (although there were about 3 other errors that it
> > crashed with). I've reported this to the kaffe mailing list and we're
> > trying to sort it out...
> 
> i have some other error message pointing more into the code (i was a liar 
> when i said i used the standard options to build, now i did a build again, 
> only setting --prefix)
> 
Try building Kaffe from CVS. The attached patch should help.
> the message from kaffe is:
> 
> ---------- snip ----------
>   kaffe-bin: utf8const.h:61: utf8ConstEqual: Assertion `b' failed.
> ---------- snip ----------
> 
> only one line...
> 
> mfg The Bishop
> 
> _______________________________________________
> devl mailing list
> [EMAIL PROTECTED]
> http://hawk.freenetproject.org/cgi-bin/mailman/listinfo/devl
> 

-- 
Matthew Toseland
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Freenet/Coldstore open source hacker.
Employed full time by Freenet Project Inc. from 11/9/02 to 11/11/02.
http://freenetproject.org/
Received: from client44.fre.communitycolo.net ([216.218.240.193] helo=pogo.kaffe.org)
        by servalan with esmtp (Exim 3.36 #1 (Debian))
        id 184jPP-0008LL-00
        for <[EMAIL PROTECTED]>; Thu, 24 Oct 2002 15:56:27 +0100
Received: from localhost ([127.0.0.1] helo=pogo.kaffe.org)
        by pogo.kaffe.org with esmtp (Exim 3.35 #1 (Debian))
        id 184jN5-00009x-00; Thu, 24 Oct 2002 07:54:03 -0700
Received: from maild.telia.com ([194.22.190.101])
        by pogo.kaffe.org with esmtp (Exim 3.35 #1 (Debian))
        id 184jLp-00009N-00
        for <[EMAIL PROTECTED]>; Thu, 24 Oct 2002 07:52:46 -0700
Received: from d1o270.telia.com (d1o270.telia.com [217.208.198.241])
        by maild.telia.com (8.12.5/8.12.5) with ESMTP id g9OEqtmP023996
        for <[EMAIL PROTECTED]>; Thu, 24 Oct 2002 16:53:00 +0200 (CEST)
X-Original-Recipient: <[EMAIL PROTECTED]>
Received: from baby.spiceworld (h61n1fls33o270.telia.com [217.210.26.61])
        by d1o270.telia.com (8.10.2/8.10.1) with ESMTP id g9OEqsN24591
        for <[EMAIL PROTECTED]>; Thu, 24 Oct 2002 16:52:54 +0200 (CEST)
Received: from [192.168.1.2] (helo=sporty.spiceworld ident=mail)
        by baby.spiceworld with esmtp (Exim 3.35 #1 (Debian))
        id 184jLx-0007WN-00
        for <[EMAIL PROTECTED]>; Thu, 24 Oct 2002 16:52:53 +0200
Received: from hobx by sporty.spiceworld with local (Exim 3.36 #1 (Debian))
        id 184jLw-0002NX-00
        for <[EMAIL PROTECTED]>; Thu, 24 Oct 2002 16:52:52 +0200
From: Oskar Sandberg <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: [kaffe] Reproducible bugs running Freenet under Kaffe
Message-ID: <[EMAIL PROTECTED]>
Mail-Followup-To: Oskar Sandberg <[EMAIL PROTECTED]>,
        [EMAIL PROTECTED]
References: <[EMAIL PROTECTED]> 
<[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="UlVJffcvxoiEqYs2"
Content-Disposition: inline
In-Reply-To: <[EMAIL PROTECTED]>
User-Agent: Mutt/1.4i
Sender: [EMAIL PROTECTED]
Errors-To: [EMAIL PROTECTED]
X-BeenThere: [EMAIL PROTECTED]
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:kaffe-request@;kaffe.org?subject=help>
List-Post: <mailto:kaffe@;kaffe.org>
List-Subscribe: <http://kaffe.org/cgi-bin/mailman/listinfo/kaffe>,
        <mailto:kaffe-request@;kaffe.org?subject=subscribe>
List-Id: Kaffe mailing list <kaffe.kaffe.org>
List-Unsubscribe: <http://kaffe.org/cgi-bin/mailman/listinfo/kaffe>,
        <mailto:kaffe-request@;kaffe.org?subject=unsubscribe>
List-Archive: <http://kaffe.org/pipermail/kaffe/>
Date: Thu, 24 Oct 2002 16:52:52 +0200
Content-Length: 1607


--UlVJffcvxoiEqYs2
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Thu, Oct 24, 2002 at 03:18:41PM +0100, Matthew Toseland wrote:
> Ok, I've got CVS working now, and I get a NullPointerException,
> reliably, in java.lang.Class.getResourceAsStream. Attached.

Class.java throws an NPE if getResourceAsStream is run for a resource
that does not exist. This is obviously when looking at the code. I've
attached a (trivial) patch.

-- 

Oskar Sandberg
[EMAIL PROTECTED]

--UlVJffcvxoiEqYs2
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=classdiff

Index: libraries/javalib/java/lang/Class.java
===================================================================
RCS file: /cvs/kaffe/kaffe/libraries/javalib/java/lang/Class.java,v
retrieving revision 1.37
diff -c -r1.37 Class.java
*** libraries/javalib/java/lang/Class.java      4 Sep 2002 16:08:13 -0000       1.37
--- libraries/javalib/java/lang/Class.java      24 Oct 2002 14:48:50 -0000
***************
*** 367,373 ****
   */
  public InputStream getResourceAsStream(String name) {
        try {
!               return (getResource(name).openStream());
        }
        catch (IOException e) {
                return null;
--- 367,374 ----
   */
  public InputStream getResourceAsStream(String name) {
        try {
!             URL res = getResource(name);
!             return (res == null ? null : res.openStream());
        }
        catch (IOException e) {
                return null;

--UlVJffcvxoiEqYs2--

_______________________________________________
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe

Attachment: msg04716/pgp00000.pgp
Description: PGP signature

Reply via email to