Skip to content

Eclipse Language Server cannot be resolved because of a uses constraint violation #325

@rbaradari

Description

@rbaradari

After installing STS4 from the Eclipse Market Place I run into the following FrameworkEvent error on startup:

org.osgi.framework.BundleException: Could not resolve module: org.springframework.tooling.boot.ls [1312] Bundle was not resolved because of a uses constraint violation. org.apache.felix.resolver.reason.ReasonException: Uses constraint violation. Unable to resolve resource org.springframework.tooling.boot.ls [osgi.identity; type="osgi.bundle"; version:Version="1.9.0.201907120625"; osgi.identity="org.springframework.tooling.boot.ls"; singleton:="true"] because it is exposed to package 'com.google.common.base' from resources com.google.guava [osgi.identity; type="osgi.bundle"; version:Version="21.0.0.v20170206-1425"; osgi.identity="com.google.guava"] and com.google.guava [osgi.identity; type="osgi.bundle"; version:Version="27.1.0.v20190517-1946"; osgi.identity="com.google.guava"] via two dependency chains. Chain 1: org.springframework.tooling.boot.ls [osgi.identity; type="osgi.bundle"; version:Version="1.9.0.201907120625"; osgi.identity="org.springframework.tooling.boot.ls"; singleton:="true"] require: (osgi.wiring.bundle=org.eclipse.xtext.xbase.lib) | provide: osgi.wiring.bundle: org.eclipse.xtext.xbase.lib com.google.guava [osgi.identity; type="osgi.bundle"; version:Version="21.0.0.v20170206-1425"; osgi.identity="com.google.guava"] Chain 2: org.springframework.tooling.boot.ls [osgi.identity; type="osgi.bundle"; version:Version="1.9.0.201907120625"; osgi.identity="org.springframework.tooling.boot.ls"; singleton:="true"] require: (osgi.wiring.bundle=org.springsource.ide.eclipse.commons.livexp) | provide: osgi.wiring.bundle; bundle-version:Version="3.9.10.201906242213-CI-B472"; osgi.wiring.bundle="org.springsource.ide.eclipse.commons.livexp" org.springsource.ide.eclipse.commons.livexp [osgi.identity; type="osgi.bundle"; version:Version="3.9.10.201906242213-CI-B472"; osgi.identity="org.springsource.ide.eclipse.commons.livexp"] require: (osgi.wiring.bundle=com.google.guava) | provide: osgi.wiring.bundle: com.google.guava com.google.guava [osgi.identity; type="osgi.bundle"; version:Version="27.1.0.v20190517-1946"; osgi.identity="com.google.guava"]	at org.eclipse.osgi.container.Module.start(Module.java:457)	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel$1.run(ModuleContainer.java:1820)	at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor$2$1.execute(EquinoxContainerAdaptor.java:150)	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1813)	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1769)	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1735)	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1661)	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:234)	at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:345) 

I am using
Eclipse IDE for Enterprise Java Developers.
Version: 2019-06 (4.12.0)
Build id: 20190614-1200

With a jdk1.8.0_192.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions