https://issues.apache.org/bugzilla/show_bug.cgi?id=47276
Summary: Repeated log warnings when /dev/urandom is not
readable
Product: Tomcat 5
Version: 5.5.27
Platform: Other
OS/Version: AIX
Status: NEW
Severity: normal
Priority: P2
Component: Catalina
AssignedTo: [email protected]
ReportedBy: [email protected]
When the /dev/urandom device is not readable by the Tomcat process, we see
repeated "Failed to close randomIS" messages logged at the WARN level.
The issue appears to be in ManagerBase.setRandomFile - if the random device is
not readable it fails to open the file (i.e. construct the FileInputStream - at
least on AIX this fails immediately), and then blindly tries to close the
inputstream resulting in an NPE and the "Failed to close randomIS" message.
A quick null check before closing would probably fix this.
A solution that warned once on an inaccessible random device and didn't try to
reopen it thereafter might be better.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]