Bug 2225018 - java.io.FileNotFoundException: /usr/lib/jvm/java-11-openjdk-11.0.20.0.8-2.el9.x86_64/lib/tzdb.dat (No such file or directory)
Summary: java.io.FileNotFoundException: /usr/lib/jvm/java-11-openjdk-11.0.20.0.8-2.el9...
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: java-11-openjdk
Version: unspecified
Hardware: All
OS: Linux
unspecified
urgent
Target Milestone: rc
: ---
Assignee: Andrew John Hughes
QA Contact: OpenJDK QA
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-24 09:24 UTC by Jenny at Neo4j
Modified: 2023-07-28 19:56 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-163045 0 None None None 2023-07-24 09:25:01 UTC

Description Jenny at Neo4j 2023-07-24 09:24:39 UTC
Description of problem:

The latest redhat build of java-11-openjdk version, is missing a dependency on tzdata-java. This means that any java program using that timezone library will fail at runtime.

Older versions of java 11 all worked fine until this latest patch release. This has broken all current and historical releases of the database package I maintain, which itself depends on java 11.


Version-Release number of selected component (if applicable):
1:11.0.20.0.8-2.el9

How reproducible:
Very! This will also affect any version of RHEL which has java-11-openjdk version 1:11.0.20.0.8-2.el9 in its packages repository. This is at least 8.6 and 8.8 that I've tested.

Steps to Reproduce:

dnf install -y java-11-openjdk
stat /usr/lib/jvm/java-11-openjdk-11.0.20.0.8-2.el9.x86_64/lib/tzdb.dat
# this will show that tzdb.dat exists and is a link to /usr/share/javazi-1.8/tzdb.dat
stat /usr/share/javazi-1.8/tzdb.dat

Actual results:
stat: cannot statx '/usr/share/javazi-1.8/tzdb.dat': No such file or directory

Expected results:

stat /usr/share/javazi-1.8/tzdb.dat
  File: /usr/share/javazi-1.8/tzdb.dat
  Size: 103613    	Blocks: 208        IO Block: 4096   regular file
Device: 52h/82d	Inode: 16405390    Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2023-03-28 23:10:54.000000000 +0000
Modify: 2023-03-28 23:10:54.000000000 +0000
Change: 2023-07-24 09:18:39.987253964 +0000
 Birth: 2023-07-24 09:18:39.987253964 +0000


Additional info:
similar issue to https://bugzilla.redhat.com/show_bug.cgi?id=1130800

doing:
dnf install -y tzdata-java
installs the library.

Comment 1 Orion Poplawski 2023-07-28 19:55:18 UTC
Seeing the same issue here.

Comment 2 Orion Poplawski 2023-07-28 19:56:06 UTC
A workaround is to install tzdata-java - so looks like a missing requires?


Note You need to log in before you can comment on or make changes to this bug.