Date: Fri, 4 Jul 2008 11:36:07 -0700 From: "Nicklas Johnson" <spatula@spatula.net> To: "Greg Lewis" <glewis@eyesbeyond.com>, freebsd-java@freebsd.org Cc: Alexey Beketov <opt1k2@mail.ru> Subject: Re: (bug report) jdk16 SEVERE nextBytes() failed Message-ID: <be800d230807041136g5a1d355eg1004c338a939cf07@mail.gmail.com> In-Reply-To: <20080704174458.GA35075@misty.eyesbeyond.com> References: <E1KDex5-000H1X-00.opt1k2-mail-ru@f39.mail.ru> <20080704174458.GA35075@misty.eyesbeyond.com>
next in thread | previous in thread | raw e-mail | index | archive | help
I thought SecureRandom used /dev/random by default, unless you specify -Djava.security.egd=file:/dev/urandom on the command line to the JVM. 2008/7/4 Greg Lewis <glewis@eyesbeyond.com>: > G'day Alexey, > > On Tue, Jul 01, 2008 at 04:27:19PM +0400, Alexey Beketov wrote: > > Hello, I using FreeBSD 7.0 , jdk-1.6.0.3p4_2 and I trying to host l2j > server on it (exectly l2jfree). > > If I use ingame "scroll of escape" then my character stucks and in log > error appears: > > SEVERE nextBytes() failed^M > > java.security.ProviderException: nextBytes() failed > > at > sun.security.provider.NativePRNG$RandomIO.implNextBytes(NativePRNG.java:270) > > Its failing to read bytes from /dev/urandom if a cursory inspection of the > source is accurate. Thats really weird, since /dev/urandom doesn't block > and will always return the number of bytes requested (unlike /dev/random > which may return less than requested). So, I'm not sure whats going on > here. A good next step, if you're willing to help out, would be to > construct a test programme that just calls nextBytes() over and over again > and see if you can reproduce the problem with that. > > -- "Courage isn't just a matter of not being frightened, you know. It's being afraid and doing what you have to do anyway." -- Doctor Who - Planet of the Daleks This message has been brought to you by Nick Johnson 2.3b1 and the number 6. http://healerNick.com/ http://morons.org/ http://spatula.net/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?be800d230807041136g5a1d355eg1004c338a939cf07>