(bug report) jdk16 SEVERE nextBytes() failed

Nicklas Johnson spatula at spatula.net
Fri Jul 4 19:02:03 UTC 2008


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 at 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/


More information about the freebsd-java mailing list