Missing tzdata-java due to upstream jdk RPM issue
Summary
There is a bug report to Redhat that is impacting the openjdk images built on 7/24/23.
https://bugzilla.redhat.com/show_bug.cgi?id=2225018
Steps to reproduce
docker run --rm registry1.dso.mil/ironbank/redhat/openjdk/openjdk11:1.11 stat /usr/lib/jvm/java-11-openjdk-11.0.20.0.8-2.el9.x86_64/lib/tzdb.dat
What is the current bug behavior?
stat: cannot statx '/usr/lib/jvm/java-11-openjdk-11.0.20.0.8-2.el9.x86_64/lib/tzdb.dat': No such file or directory
This means many Java applications that use the java.time
packages receive the following runtime errors, rendering them unusable:
Exception in thread "main" java.lang.Error: java.io.FileNotFoundException: /usr/lib/jvm/java-11-openjdk-11.0.20.0.8-2.el8.x86_64/lib/tzdb.dat (No such file or directory)
at java.base/sun.util.calendar.ZoneInfoFile$1.run(ZoneInfoFile.java:261)
at java.base/sun.util.calendar.ZoneInfoFile$1.run(ZoneInfoFile.java:251)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/sun.util.calendar.ZoneInfoFile.<clinit>(ZoneInfoFile.java:251)
at java.base/sun.util.calendar.ZoneInfo.getTimeZone(ZoneInfo.java:588)
at java.base/java.util.TimeZone.getTimeZone(TimeZone.java:577)
at java.base/java.util.TimeZone.setDefaultZone(TimeZone.java:682)
at java.base/java.util.TimeZone.getDefaultRef(TimeZone.java:653)
at java.base/java.util.TimeZone.getDefault(TimeZone.java:642)
at java.base/java.time.ZoneId.systemDefault(ZoneId.java:272)
at
What is the expected correct behavior?
The file exists and java.time
functionality works
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)
dnf install -y tzdata-java
Tasks
-
Bug has been identified and corrected within the container
Please read the Iron Bank Documentation for more info