question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dbeaver (5.1.3) doesn't start with openjdk 11

See original GitHub issue

With rolling release distribution like openSUSE Tumbleweed we now have openjdk-11 as default java.

OS : openSUSE Tumbleweed 20180721-0 openjdk used

S  | Name                        | Type    | Version         | Arch   | Repository
---+-----------------------------+---------+-----------------+--------+-----------
i+ | java-11-openjdk             | package | 11.0.0.0~20-1.1 | x86_64 | oss
i+ | java-11-openjdk-devel       | package | 11.0.0.0~20-1.1 | x86_64 | oss
i+ | java-11-openjdk-headless    | package | 11.0.0.0~20-1.1 | x86_64 | oss

Error found launching dbeaver

dbeaver 
2018-07-23 16:35:52.981 - Create display
2018-07-23 16:35:53.338 - DBeaver 5.1.3 is starting
2018-07-23 16:35:53.340 - OS: Linux 4.17.6-1-default (amd64)
2018-07-23 16:35:53.340 - Java version: 11-internal by Oracle Corporation (64bit)
2018-07-23 16:35:53.341 - Install path: '/usr/share/dbeaver'
2018-07-23 16:35:53.341 - Instance path: 'file:/ioda/home/bruno/.dbeaver4/'
2018-07-23 16:35:53.341 - Memory available 77Mb/1024Mb
2018-07-23 16:35:53.350 - Starting RMI server at 61870
2018-07-23 16:35:53.403 - Run workbench
2018-07-23 16:35:53.436 - Internal error in workbench lifecycle
org.eclipse.e4.core.di.InjectionException: java.lang.NoClassDefFoundError: javax/annotation/PostConstruct
        at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:410)
        at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:318)
        at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:162)
        at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createDefaultHeadlessContext(E4Application.java:491)
        at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createDefaultContext(E4Application.java:505)
        at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:204)
        at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:614)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:594)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
        at org.jkiss.dbeaver.core.application.DBeaverApplication.start(DBeaverApplication.java:162)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1499)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1472)
Caused by: java.lang.NoClassDefFoundError: javax/annotation/PostConstruct
        at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:124)
        at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:399)
        ... 23 more
Caused by: java.lang.ClassNotFoundException: javax.annotation.PostConstruct cannot be found by org.eclipse.e4.core.di_1.6.100.v20170421-1418
        at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:433)
        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:395)
        at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:387)
        at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:150)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
        ... 25 more
2018-07-23 16:35:53.447 - DBeaver is stopping
2018-07-23 16:35:53.448 - null
java.lang.IllegalStateException: Workbench has not been created yet.
        at org.eclipse.ui.PlatformUI.getWorkbench(PlatformUI.java:93)
        at org.jkiss.dbeaver.core.application.DBeaverApplication.shutdown(DBeaverApplication.java:320)
        at org.jkiss.dbeaver.core.application.DBeaverApplication.start(DBeaverApplication.java:171)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1499)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1472)

If you have any ideas that I can try to help making dbeaver working with openjdk 11 just tell me the steps

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:15 (3 by maintainers)

github_iconTop GitHub Comments

11reactions
programuscommented, Dec 10, 2018

The problem seems come back with v5.3.0 released Dec 10.

1reaction
Foorackcommented, Dec 20, 2018

I agree, a warning next time to stop people running Linux and Java 11 from upgrading would have been nice, also a visual crash error. The workarounds posted does not work on Ubuntu.

Read more comments on GitHub >

github_iconTop Results From Across the Web

DBeaver 5.1.3
DBeaver 5.1.3 · SQL editor: Query comments processing was fixed; Left toolbar rendering was fixed (background color issue) · Results viewer:.
Read more >
Download | DBeaver Community
DBeaver requires Java 11 or higher. Since version 7.3.1 all distributions include OpenJDK 11 bundle. If you want to use you own locally...
Read more >
DBeaver failing to open - DBeaver Forum • View topic
My DBeaver application unexpectedly stopped opening last week. ... DBeaverApplication.start(DBeaverApplication.java:116)
Read more >
Dbeaver doesn't start - DBeaver Forum • View topic
I've got this error : "The Dbeaver executable launcher was unable to locate its companion launcher jar." I tried again without the JRE...
Read more >
Error while installing DBeaver On Ubuntu 14.04
I had this issue and this is what worked for me: sudo apt-get -f install. This installs dependencies and then finishes DBeaver. Full...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found