[ZBX-26624] Zabbix Java Gateway 7.2.10 RPM allows Java 11 or 17 as dependency but requires 17 to start Created: 2025 Jun 30  Updated: 2025 Jun 30

Status: Confirmed
Project: ZABBIX BUGS AND ISSUES
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Incident report Priority: Trivial
Reporter: Chris Allen Assignee: Zabbix Development Team
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The issue is that Zabbix Java Gateway 7.2.10's rpm lists both Java 11 and 17 as a valid provider of java-headless >= 1.8.0 but Java 17 is required.

sudo yum deplist zabbix-java-gateway-7.2.10
Updating Subscription Management repositories.
Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs)                                                                                                                            151 kB/s | 4.1 kB     00:00
Red Hat CodeReady Linux Builder for RHEL 9 x86_64 (RPMs)                                                                                                                         168 kB/s | 4.5 kB     00:00
Red Hat Enterprise Linux 9 for x86_64 - Supplementary (RPMs)                                                                                                                     149 kB/s | 3.7 kB     00:00
Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs)                                                                                                                         171 kB/s | 4.5 kB     00:00
package: zabbix-java-gateway-7.2.10-release1.el9.x86_64
  dependency: /bin/sh
   provider: bash-5.1.8-9.el9.x86_64
  dependency: /usr/bin/sh
   provider: bash-5.1.8-9.el9.x86_64
  dependency: java-headless >= 1.8.0
   provider: java-11-openjdk-headless-1:11.0.25.0.9-2.el9.x86_64
   provider: java-17-openjdk-headless-1:17.0.15.0.6-2.el9.x86_64
  dependency: systemd
   provider: systemd-252-51.el9.x86_64
   provider: systemd-252-51.el9.i686

 

Steps to reproduce:

  1. Install java-11-openjdk-headless using yum on RHEL 9
  2. Install zabbix-java-gateway-7.2.10 using yum
  3. Zabbix Java Gateway service fails to start with error
  4. Install java-17-openjdk-headless using yum
  5. Uninstall java-11-openjdk-headless using yum
  6. Zabbix Java Gateway starts as expected

Result:
Error when starting Zabbix Java Gateway 7.2.10 service with Java 11:

Error: LinkageError occurred while loading main class com.zabbix.gateway.JavaGateway

java.lang.UnsupportedClassVersionError: com/zabbix/gateway/JavaGateway has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0)

Expected:
Zabbix Java Gateway service starts without issue


Generated at Mon Jul 07 08:59:50 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.