'java.io.FileNotFoundException: /dev/urandom (EDC5157I An internal error has occurred.)' Received During Tomcat 6.0.29 Startup

Document ID : KB000023169
Last Modified Date : 14/02/2018
Show Technical Document Details


When bringing up Tomcat 6.0.29, the following messages are received:

Throwable occurred: java.io.FileNotFoundException: /dev/urandom (EDC5157I An internal error has occurred.)
:at java.io.FileInputStream.<init>(FileInputStream.java:112)
:at org.apache.catalina.session.ManagerBase.setRandomFile(ManagerBase.java:533)
:at org.apache.catalina.session.ManagerBase.getRandomBytes(ManagerBase.java:958)
:at org.apache.catalina.session.ManagerBase.init(ManagerBase.java:753)
:at org.apache.catalina.session.StandardManager.start(StandardManager.java:625)


When using Tomcat 6.0.29, Tomcat tries to get it's random number generator seeded from a hardware source -- ICSF. The device driver gets a read error, if ICSF is not installed/configured on a system. Tomcat then goes to compute the random number generator seed on his own.

This exception will always be thrown by Tomcat now if ICSF is not available, if using 6.0.29 or above.