(bug report) jdk16 SEVERE nextBytes() failed
Greg Lewis
glewis at eyesbeyond.com
Fri Jul 4 18:12:34 UTC 2008
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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-java
> To unsubscribe, send any mail to "freebsd-java-unsubscribe at freebsd.org"
--
Greg Lewis Email : glewis at eyesbeyond.com
Eyes Beyond Web : http://www.eyesbeyond.com
Information Technology FreeBSD : glewis at FreeBSD.org
More information about the freebsd-java
mailing list