Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

COSBench 0.4.2 does not start up in Ubuntu 20.04 #411

Open
thatsdone opened this issue Sep 18, 2021 · 0 comments
Open

COSBench 0.4.2 does not start up in Ubuntu 20.04 #411

thatsdone opened this issue Sep 18, 2021 · 0 comments

Comments

@thatsdone
Copy link

thatsdone commented Sep 18, 2021

DESCRIPTION

COSBench 0.4.2.0 does not start up under the following conditions (at least).
start-driver.sh fails to wait for successful initialization of various cosbench-* components and gets timeout.

  • OS Distro
    • Ubuntu 20.04
  • JDK
    • openjdk-8, openjdk-11, openjdk-13, openjdk-16 (ubuntu bundled packages)

REPRODUCE PROCEDURE

Just download 0.4.2.0.zip, extract it and run startup-all.sh (with openjdk installation).

Set log_level of driver.conf (at least ) to DEBUG, and invoke start-all.sh or start-driver.sh, then see log/driver-boot.log.

ANALYSYS and SUGGESTED RESOLUTION

IMHO, the following errors in the log implies some inconsistencies between the COSBench bundled eclipse.equinox.launcher and Java environment.

Those errors disappeared and COSBench driver service started up normally after replacing eclipse.equinox.launcher jar file
from:
org.eclipse.equinox.launcher_1.2.0.v20110502.jar
to:
org.eclipse.equinox.launcher_1.6.300.v20210813-1054.jar
that is contained in 'eclipse-committers-2021-09-R-linux-gtk-x86_64.tar.gz' available at https://www.eclipse.org/

So, I would suggest upgrading the equinox.launcher jar to the latest (stable) one.

LOG

The below is a log file that I tried using openjdk-16.

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04 LTS
Release:        20.04
Codename:       focal

$ java -version
openjdk version "16.0.1" 2021-04-20
OpenJDK Runtime Environment (build 16.0.1+9-Ubuntu-120.04)
OpenJDK 64-Bit Server VM (build 16.0.1+9-Ubuntu-120.04, mixed mode, sharing)
$

$ cd log
$ cat driver-boot.log
!SESSION 2021-09-18 06:14:29.109 -----------------------------------------------
eclipse.buildId=unknown
java.version=16.0.1
java.vendor=Private Build
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en
Command-line arguments:  -console 18089

!ENTRY org.eclipse.osgi 4 0 2021-09-18 06:14:29.241
!MESSAGE error loading hook: org.eclipse.osgi.internal.baseadaptor.BaseHookConfigurator
!STACK 0
java.lang.reflect.InaccessibleObjectException: Unable to make protected void java.net.URLClassLoader.addURL(java.net.URL) accessible: module java.base does not "opens java.net" to unnamed module @1bc6a36e
        at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:357)
        at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
        at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:199)
        at java.base/java.lang.reflect.Method.setAccessible(Method.java:193)
        at org.eclipse.osgi.internal.baseadaptor.BaseStorage.findMethod(BaseStorage.java:174)
        at org.eclipse.osgi.internal.baseadaptor.BaseStorage.findMethod(BaseStorage.java:181)
        at org.eclipse.osgi.internal.baseadaptor.BaseStorage.findAddURLMethod(BaseStorage.java:165)
        at org.eclipse.osgi.internal.baseadaptor.BaseStorage.<init>(BaseStorage.java:135)
        at org.eclipse.osgi.internal.baseadaptor.BaseHookConfigurator.addHooks(BaseHookConfigurator.java:24)
        at org.eclipse.osgi.baseadaptor.HookRegistry.loadConfigurators(HookRegistry.java:178)
        at org.eclipse.osgi.baseadaptor.HookRegistry.initialize(HookRegistry.java:100)
        at org.eclipse.osgi.baseadaptor.BaseAdaptor.<init>(BaseAdaptor.java:98)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:78)
        at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
        at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.createAdaptor(EclipseStarter.java:728)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:257)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:175)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:567)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1386)

!ENTRY org.eclipse.osgi 4 0 2021-09-18 06:14:29.268
!MESSAGE Startup error
!STACK 1
java.lang.NullPointerException: Cannot invoke "org.eclipse.osgi.internal.baseadaptor.BaseStorage.initialize(org.eclipse.osgi.baseadaptor.BaseAdaptor)" because "this.storage" is null
        at org.eclipse.osgi.baseadaptor.BaseAdaptor.initializeStorage(BaseAdaptor.java:123)
        at org.eclipse.osgi.framework.internal.core.Framework.initialize(Framework.java:189)
        at org.eclipse.osgi.framework.internal.core.Framework.<init>(Framework.java:161)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:261)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:175)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:567)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
An error has occurred. See the log file
/home/mitoh/0.4.2/conf/.driver/1631945669194.log.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant