Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 01 Jul 2008 16:27:19 +0400
From:      Alexey Beketov <opt1k2@mail.ru>
To:        freebsd-java@freebsd.org
Subject:   (bug report) jdk16 SEVERE nextBytes() failed
Message-ID:  <E1KDex5-000H1X-00.opt1k2-mail-ru@f39.mail.ru>

next in thread | raw e-mail | index | archive | help
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)
        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?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1KDex5-000H1X-00.opt1k2-mail-ru>