Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-25947

Java Gateway fails to start after upgrade to 6.4.21

XMLWordPrintable

    • Sprint candidates
    • 1

      Just received the following error on Zabbix Java Gateway startup after preforming upgrade 6.4.20 -> 6.4.21:

      Exception in thread "main" java.lang.UnsupportedClassVersionError: ch/qos/logback/classic/spi/LogbackServiceProvider has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
              at java.lang.ClassLoader.defineClass1(Native Method)
              at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
              at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
              at java.net.URLClassLoader.defineClass(URLClassLoader.java:473)
              at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
              at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
              at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
              at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
              at java.lang.Class.forName0(Native Method)
              at java.lang.Class.forName(Class.java:348)
              at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:370)
              at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
              at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
              at org.slf4j.LoggerFactory.safelyInstantiate(LoggerFactory.java:152)
              at org.slf4j.LoggerFactory.findServiceProviders(LoggerFactory.java:133)
              at org.slf4j.LoggerFactory.bind(LoggerFactory.java:194)
              at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:186)
              at org.slf4j.LoggerFactory.getProvider(LoggerFactory.java:496)
              at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:482)
              at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:431)
              at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:457)
              at com.zabbix.gateway.JavaGateway.<clinit>(JavaGateway.java:34)
      

      AlmaLinux 8.10 with openjdk 1.8.0.432.b06-2 .

      According to:
      https://www.zabbix.com/documentation/current/en/manual/installation/requirements#java-gateway

      Everything should be OK. But it's not.
      Seems like undocumented breaking change (upgrade to Java 11 Runtime) or building issue.

            MVekslers Michael Veksler
            akhudushin Aleksandr Khudushin
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: