-
Incident report
-
Resolution: Unresolved
-
Trivial
-
None
-
None
-
None
-
None
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:
- Install java-11-openjdk-headless using yum on RHEL 9
- Install zabbix-java-gateway-7.2.10 using yum
- Zabbix Java Gateway service fails to start with error
- Install java-17-openjdk-headless using yum
- Uninstall java-11-openjdk-headless using yum
- 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