[kaffe] NPE in clib/native/Double.c bug report

jrandom jrandom at i2p.net
Fri Mar 19 07:49:02 PST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi y'all, quick bug report...  I tried seeing whats up, but once it
jumped into clib/native/Double.c, it got beyond me.

java.lang.NullPointerException
   at java.lang.Double.toStringWithPrecision (Double.java)
   at java.lang.Double.toString (Double.java:30)
   at java.lang.StringBuffer.append (StringBuffer.java:463)
   at net.invisiblenet.i2p.router.peermanager.SpeedCalculator.calc
      (SpeedCalculator.java:52)
   . . .

which at SpeedCalculator.java:52 is
  _log.debug("roundTripRate: " + roundTripRate + "ms sendRate: " +
              sendRate + "bytes/second for " +
              profile.getPeer().toBase64());

Lucky for us, its intermittent, and today was the first time I'd seen
it.  :/

If it helps, for the params in the above log statement:
* roundTripRate is a double, calculated with values between 0 and
  60,000
* sendRate is a double, with values between 0 and 100,000
* profile.getPeer().toBase64() is a string

% kaffe --fullversion

Engine: Just-in-time v3   Version: 1.1.x-cvs   Java Version: 1.1
Configuration/Compilation options:
  Compile date  : Wed Mar 10 12:22:43 PST 2004
  Compile host  : col00846
  Install prefix: /usr/local/kaffe114x
  Thread system : unix-jthreads
  CC            : gcc
  CFLAGS        : -g -O2 -Wall -Wstrict-prototypes
  LDFLAGS       :
  ChangeLog head: 2004-03-10  Casey Marshall <rsdio at metastatic.org>

% uname -a
FreeBSD col00846 4.8-RELEASE FreeBSD 4.8-RELEASE #0: Wed Sep 17
23:18:58 PDT 2003

The machine is an SMP VM on a cluster, and my local javalib has no
notable modifications.

hth,
=jr

-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0

iQA/AwUBQFoXGMIgL3Iaet+UEQKm+gCggy5qREjS7DNkPNAXutgcRb+4cd8AnjMt
7BYS6UwiYEzFsCsgI/4EzSRm
=3UKf
-----END PGP SIGNATURE-----





More information about the kaffe mailing list