Date: Fri, 4 Jul 2008 10:44:58 -0700 From: Greg Lewis <glewis@eyesbeyond.com> To: Alexey Beketov <opt1k2@mail.ru> Cc: freebsd-java@freebsd.org Subject: Re: (bug report) jdk16 SEVERE nextBytes() failed Message-ID: <20080704174458.GA35075@misty.eyesbeyond.com> In-Reply-To: <E1KDex5-000H1X-00.opt1k2-mail-ru@f39.mail.ru> References: <E1KDex5-000H1X-00.opt1k2-mail-ru@f39.mail.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
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. > at sun.security.provider.NativePRNG$RandomIO.access$200(NativePRNG.java:108) > at sun.security.provider.NativePRNG.engineNextBytes(NativePRNG.java:97) > at java.security.SecureRandom.nextBytes(SecureRandom.java:433) > at java.security.SecureRandom.next(SecureRandom.java:455) > at java.util.Random.nextInt(Random.java:257) > at com.l2jfree.tools.random.Rnd.nextInt(Rnd.java:36) > at com.l2jfree.tools.random.Rnd.get(Rnd.java:50) > at com.l2jfree.gameserver.model.L2Character.teleToLocation(L2Character.java:681) > at com.l2jfree.gameserver.model.L2Character.teleToLocation(L2Character.java:718) > at com.l2jfree.gameserver.model.L2Character.teleToLocation(L2Character.java:723) > at com.l2jfree.gameserver.handler.itemhandlers.ScrollOfEscape$EscapeFinalizer.run(ScrollOfEscape.java:258) > at com.l2jfree.gameserver.ThreadPoolManager$Runner.run(ThreadPoolManager.java:255) > at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) > at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) > at java.util.concurrent.FutureTask.run(FutureTask.java:138) > at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:9 > at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207) > at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) > at java.lang.Thread.run(Thread.java:619) > Caused by: java.io.InterruptedIOException > at java.io.FileInputStream.readBytes(Native Method) > at java.io.FileInputStream.read(FileInputStream.java:199) > at sun.security.provider.NativePRNG$RandomIO.readFully(NativePRNG.java:185) > at sun.security.provider.NativePRNG$RandomIO.ensureBufferValid(NativePRNG.java:247) > at sun.security.provider.NativePRNG$RandomIO.implNextBytes(NativePRNG.java:261) > ... 20 more > ^M > > > This error only on freebsd with native java. On other OS and with sun-java-jdk it works perfectly. > Any ideas how to solve this problem? > &Is it good idea to send this bug report to jdk-1.6.0.3p4_2 port maintainer? > _______________________________________________ > freebsd-java@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080704174458.GA35075>