Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Problem after installing Acceleo
Problem after installing Acceleo [message #1843185] Mon, 19 July 2021 13:21 Go to next message
Marcel Jezierski is currently offline Marcel JezierskiFriend
Messages: 6
Registered: May 2021
Junior Member
Hi,
I had working project using Sirius. After I installed Acceleo 3.7 from marketplace I got problem during running app. Now even if I unistall it problem is still occuring. I am pretty new and I have no idea how to fix it.
Console log:

!ENTRY org.eclipse.sirius.common.acceleo.mtl 4 0 2021-07-19 15:07:54.377
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.sirius.common.acceleo.mtl [531]
Bundle was not resolved because of a uses constraint violation.
org.apache.felix.resolver.reason.ReasonException: Uses constraint violation. Unable to resolve resource org.eclipse.sirius.common.acceleo.mtl [osgi.identity; osgi.identity="org.eclipse.sirius.common.acceleo.mtl"; type="osgi.bundle"; version:Version="6.1.3.201905061019"; singleton:="true"] because it is exposed to package 'com.google.common.base' from resources com.google.guava [osgi.identity; osgi.identity="com.google.guava"; type="osgi.bundle"; version:Version="21.0.0.v20170206-1425"] and com.google.guava [osgi.identity; osgi.identity="com.google.guava"; type="osgi.bundle"; version:Version="27.1.0.v20190517-1946"] via two dependency chains.

Chain 1:
org.eclipse.sirius.common.acceleo.mtl [osgi.identity; osgi.identity="org.eclipse.sirius.common.acceleo.mtl"; type="osgi.bundle"; version:Version="6.1.3.201905061019"; singleton:="true"]
require: (&(osgi.wiring.bundle=com.google.guava)(&(bundle-version>=15.0.0)(!(bundle-version>=22.0.0))))
|
provide: osgi.wiring.bundle: com.google.guava
com.google.guava [osgi.identity; osgi.identity="com.google.guava"; type="osgi.bundle"; version:Version="21.0.0.v20170206-1425"]

Chain 2:
org.eclipse.sirius.common.acceleo.mtl [osgi.identity; osgi.identity="org.eclipse.sirius.common.acceleo.mtl"; type="osgi.bundle"; version:Version="6.1.3.201905061019"; singleton:="true"]
require: (&(osgi.wiring.bundle=org.eclipse.acceleo.engine)(bundle-version>=3.4.1))
|
provide: osgi.wiring.bundle; bundle-version:Version="3.7.11.202102190929"; osgi.wiring.bundle="org.eclipse.acceleo.engine"; singleton:="true"
org.eclipse.acceleo.engine [osgi.identity; osgi.identity="org.eclipse.acceleo.engine"; type="osgi.bundle"; version:Version="3.7.11.202102190929"; singleton:="true"]
import: (&(osgi.wiring.package=com.google.common.collect)(&(version>=27.0.0)(!(version>=30.2.0))))
|
export: osgi.wiring.package: com.google.common.collect; uses:=com.google.common.base
export: osgi.wiring.package=com.google.common.base
com.google.guava [osgi.identity; osgi.identity="com.google.guava"; type="osgi.bundle"; version:Version="27.1.0.v20190517-1946"]
at org.eclipse.osgi.container.Module.start(Module.java:463)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel$2.run(ModuleContainer.java:1845)
at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor$1$1.execute(EquinoxContainerAdaptor.java:136)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1838)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1779)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1743)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1665)
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)

!ENTRY org.eclipse.sirius.common.acceleo.mtl.ide 4 0 2021-07-19 15:07:54.381
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.sirius.common.acceleo.mtl.ide [532]
Unresolved requirement: Require-Bundle: org.eclipse.sirius.common.acceleo.mtl; bundle-version="2.0.0"
-> Bundle-SymbolicName: org.eclipse.sirius.common.acceleo.mtl; bundle-version="6.1.3.201905061019"; singleton:="true"
org.eclipse.sirius.common.acceleo.mtl [531]
No resolution report for the bundle. Bundle was not resolved because of a uses constraint violation.
org.apache.felix.resolver.reason.ReasonException: Uses constraint violation. Unable to resolve resource org.eclipse.sirius.common.acceleo.mtl.ide [osgi.identity; osgi.identity="org.eclipse.sirius.common.acceleo.mtl.ide"; type="osgi.bundle"; version:Version="6.1.3.201905061019"; singleton:="true"] because it is exposed to package 'com.google.common.base' from resources com.google.guava [osgi.identity; osgi.identity="com.google.guava"; type="osgi.bundle"; version:Version="21.0.0.v20170206-1425"] and com.google.guava [osgi.identity; osgi.identity="com.google.guava"; type="osgi.bundle"; version:Version="27.1.0.v20190517-1946"] via two dependency chains.

Chain 1:
org.eclipse.sirius.common.acceleo.mtl.ide [osgi.identity; osgi.identity="org.eclipse.sirius.common.acceleo.mtl.ide"; type="osgi.bundle"; version:Version="6.1.3.201905061019"; singleton:="true"]
require: (&(osgi.wiring.bundle=com.google.guava)(&(bundle-version>=15.0.0)(!(bundle-version>=22.0.0))))
|
provide: osgi.wiring.bundle: com.google.guava
com.google.guava [osgi.identity; osgi.identity="com.google.guava"; type="osgi.bundle"; version:Version="21.0.0.v20170206-1425"]

Chain 2:
org.eclipse.sirius.common.acceleo.mtl.ide [osgi.identity; osgi.identity="org.eclipse.sirius.common.acceleo.mtl.ide"; type="osgi.bundle"; version:Version="6.1.3.201905061019"; singleton:="true"]
require: (&(osgi.wiring.bundle=org.eclipse.acceleo.common)(bundle-version>=3.4.1))
|
provide: osgi.wiring.bundle; bundle-version:Version="3.7.11.202102190929"; osgi.wiring.bundle="org.eclipse.acceleo.common"; singleton:="true"
org.eclipse.acceleo.common [osgi.identity; osgi.identity="org.eclipse.acceleo.common"; type="osgi.bundle"; version:Version="3.7.11.202102190929"; singleton:="true"]
import: (&(osgi.wiring.package=com.google.common.base)(&(version>=27.0.0)(!(version>=30.2.0))))
|
export: osgi.wiring.package: com.google.common.base
com.google.guava [osgi.identity; osgi.identity="com.google.guava"; type="osgi.bundle"; version:Version="27.1.0.v20190517-1946"]
at org.eclipse.osgi.container.Module.start(Module.java:463)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel$2.run(ModuleContainer.java:1845)
at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor$1$1.execute(EquinoxContainerAdaptor.java:136)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1838)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1779)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1743)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1665)
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)
15:08:07.352 [main] DEBUG org.eclipse.m2e.core.internal.project.registry.ProjectRegistryRefreshJob - Queued refresh request: [/cardGameModeling/pom.xml, /cardGameModeling.design/pom.xml]
15:08:11.534 [Worker-2: Loading available Gradle versions] INFO org.eclipse.buildship.core.internal.util.gradle.PublishedGradleVersions - Gradle version information cache is up-to-date. Trying to read.

Thanks in advance,
Jezierski Marcel
Re: Problem after installing Acceleo [message #1843195 is a reply to message #1843185] Mon, 19 July 2021 18:26 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7517
Registered: July 2009
Senior Member
Hi

Ar a quick glance it appears that Acceleo has not tracked the rapid changes in Guava versions and insists on mandating one that has been tested rather than allowing whatever is distributed.

Regards

Ed Willink
Re: Problem after installing Acceleo [message #1843197 is a reply to message #1843195] Mon, 19 July 2021 20:18 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7517
Registered: July 2009
Senior Member
Hi

Correction. You are using the latest Acceleo which expects Guava 27.0,

Quote:
provide: osgi.wiring.bundle; bundle-version:Version="3.7.11.202102190929"; osgi.wiring.bundle="org.eclipse.acceleo.common"; singleton:="true"
org.eclipse.acceleo.common [osgi.identity; osgi.identity="org.eclipse.acceleo.common"; type="osgi.bundle"; version:Version="3.7.11.202102190929"; singleton:="true"]
import: (&(osgi.wiring.package=com.google.common.base)(&(version>=27.0.0)(!(version>=30.2.0))))
|


but a two year old Sirius that expects Huava 20.

Quote:
org.eclipse.sirius.common.acceleo.mtl.ide [osgi.identity; osgi.identity="org.eclipse.sirius.common.acceleo.mtl.ide"; type="osgi.bundle"; version:Version="6.1.3.201905061019"; singleton:="true"]
require: (&(osgi.wiring.bundle=com.google.guava)(&(bundle-version>=15.0.0)(!(bundle-version>=22.0.0))))


Use consistent releases.

Regards

Ed Willink
Previous Topic:Creating sub-node problem.
Next Topic:Enable Graphical EMF Compare of Model
Goto Forum:
  


Current Time: Wed Sep 28 15:32:15 GMT 2022

Powered by FUDForum. Page generated in 0.02261 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top