-
Bug
-
Resolution: Fixed
-
Medium
-
5.0.0
-
Amazon Linux
-
3
-
Severity 2 - Major
-
0
-
Steps to reproduce:
- Install BBS as a service on system with Java 7 (default Amazon Linux)
- Stop it using "sudo service atlbitbucket stop"
- Then run it again "sudo service atlbitbucket start"
Actual result:
Error message in the console:
Exception in thread "main" java.lang.NoClassDefFoundError: java/util/Base64 Likely root cause: java.lang.ClassNotFoundException: java.util.Base64 at java.net.URLClassLoader$1.run(URLClassLoader.java:359) at java.net.URLClassLoader$1.run(URLClassLoader.java:348) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:347) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:786) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at com.atlassian.elasticsearch.buckler.BasicAuth.encodeCredentials(BasicAuth.java:22) at com.atlassian.elasticsearch.buckler.config.AuthConfig.<init>(AuthConfig.java:25) at com.atlassian.elasticsearch.buckler.config.BucklerConfig.<init>(BucklerConfig.java:55) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at <<<guice>>> at org.elasticsearch.node.Node.<init>(Node.java:213) at org.elasticsearch.node.Node.<init>(Node.java:140) at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:143) at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:178) at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:270) at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35)
In spite of this error, instance could be connected and functions normally (some features might be broken).
Expected result
Installer should use bundled JRE 8
Workaround
Upgrade Java to version 8
- relates to
-
BSERV-9756 Relax the requirements to set the JAVA_HOME for startup scripts
- Gathering Impact
-
BSERV-8453 Installer should always use the bundled JRE
- Closed
- mentioned in
-
Page Loading...