[Bug 282066] textproc/elasticsearch8 - cannot reset elastic password

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 13 Oct 2024 18:55:43 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282066

            Bug ID: 282066
           Summary: textproc/elasticsearch8 - cannot reset elastic
                    password
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: elastic@FreeBSD.org
          Reporter: cybernet2u@yahoo.com
             Flags: maintainer-feedback?(elastic@FreeBSD.org)
          Assignee: elastic@FreeBSD.org

I just installed elasticsearch8
After I started it, I wanted to reset the password, but it is throwing the
following error


$ elasticsearch-reset-password --auto --username elastic


Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError:
org/elasticsearch/launcher/CliToolLauncher 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 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
sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:621)


by the looks of it, Java is too old ...

-- 
You are receiving this mail because:
You are the assignee for the bug.