From owner-freebsd-java@FreeBSD.ORG Fri Jul 4 19:02:03 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 84C75106564A for ; Fri, 4 Jul 2008 19:02:03 +0000 (UTC) (envelope-from spatula@spatula.net) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.31]) by mx1.freebsd.org (Postfix) with ESMTP id 426298FC0A for ; Fri, 4 Jul 2008 19:02:02 +0000 (UTC) (envelope-from spatula@spatula.net) Received: by yw-out-2324.google.com with SMTP id 9so531239ywe.13 for ; Fri, 04 Jul 2008 12:01:56 -0700 (PDT) Received: by 10.103.203.4 with SMTP id f4mr452735muq.8.1215196567597; Fri, 04 Jul 2008 11:36:07 -0700 (PDT) Received: by 10.102.253.7 with HTTP; Fri, 4 Jul 2008 11:36:07 -0700 (PDT) Message-ID: Date: Fri, 4 Jul 2008 11:36:07 -0700 From: "Nicklas Johnson" To: "Greg Lewis" , freebsd-java@freebsd.org In-Reply-To: <20080704174458.GA35075@misty.eyesbeyond.com> MIME-Version: 1.0 References: <20080704174458.GA35075@misty.eyesbeyond.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Alexey Beketov Subject: Re: (bug report) jdk16 SEVERE nextBytes() failed X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jul 2008 19:02:03 -0000 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 : > 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/