- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- KRNG error
Operating System - HP-UX
1753325
Members
5820
Online
108792
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-04-2005 03:07 AM
тАО07-04-2005 03:07 AM
KRNG error
I have installed KRNG11i product on HP-UX 11.11v1 (PA-RISC) system. This depot constitutes (PHKL_27750, RandomNumGen, RandomNumGenDyn) products. Installation was successful (with kernel rebuild + reboot). On the same server, I have installed Java 1.5 also.
I have an Java application which uses random number generation. When I try to start this application, I am getting the following error :
==============================================
Caused by: java.security.ProviderException: setSeed() failed
at sun.security.provider.NativePRNG$RandomIO.implSetSeed(NativePRNG.java:223)
at sun.security.provider.NativePRNG$RandomIO.access$100(NativePRNG.java:108)
at sun.security.provider.NativePRNG.engineSetSeed(NativePRNG.java:92)
at java.security.SecureRandom.setSeed(SecureRandom.java:400)
... 8 more
Caused by: java.io.IOException: No such device
at java.io.FileOutputStream.writeBytes(Native Method)
at java.io.FileOutputStream.write(FileOutputStream.java:247)
at sun.security.provider.NativePRNG$RandomIO.implSetSeed(NativePRNG.java:221)
... 12 more
==============================================
After getting this error, the application will not come up. If I remove the KRNG package, this error vanishes.
I would like to know is there a way to bringup my Java application along with KRNG package installed. If so, can you please share it..
I have an Java application which uses random number generation. When I try to start this application, I am getting the following error :
==============================================
Caused by: java.security.ProviderException: setSeed() failed
at sun.security.provider.NativePRNG$RandomIO.implSetSeed(NativePRNG.java:223)
at sun.security.provider.NativePRNG$RandomIO.access$100(NativePRNG.java:108)
at sun.security.provider.NativePRNG.engineSetSeed(NativePRNG.java:92)
at java.security.SecureRandom.setSeed(SecureRandom.java:400)
... 8 more
Caused by: java.io.IOException: No such device
at java.io.FileOutputStream.writeBytes(Native Method)
at java.io.FileOutputStream.write(FileOutputStream.java:247)
at sun.security.provider.NativePRNG$RandomIO.implSetSeed(NativePRNG.java:221)
... 12 more
==============================================
After getting this error, the application will not come up. If I remove the KRNG package, this error vanishes.
I would like to know is there a way to bringup my Java application along with KRNG package installed. If so, can you please share it..
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-04-2005 07:38 PM
тАО07-04-2005 07:38 PM
Re: KRNG error
It seems the setSeed() is failing.
In effect, your Java application is trying to set the seed value of the in-kernel system-wide random number generator. That should not be allowed unless you're running your Java application as root.
Furthermore, seeding the KRNG should not be necessary (except maybe when the system boots). KRNG gets its randomness from things like network packet arrival times and/or SCSI I/O completion times, taking some of the last bits/digits of the timestamps (I don't remember the exact process, but it was something like this).
If you can configure or change the application so that it won't try to setSeed() when using NativePRNG or at least won't abort if it fails, that might solve your problem.
In effect, your Java application is trying to set the seed value of the in-kernel system-wide random number generator. That should not be allowed unless you're running your Java application as root.
Furthermore, seeding the KRNG should not be necessary (except maybe when the system boots). KRNG gets its randomness from things like network packet arrival times and/or SCSI I/O completion times, taking some of the last bits/digits of the timestamps (I don't remember the exact process, but it was something like this).
If you can configure or change the application so that it won't try to setSeed() when using NativePRNG or at least won't abort if it fails, that might solve your problem.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2005 01:58 AM
тАО08-08-2005 01:58 AM
Re: KRNG error
I got a solution that if we run the application using
-D java.security.egd=/dev/random
we will not get the error message.
-D java.security.egd=/dev/random
we will not get the error message.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP