Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [lyo-dev] Lyo Generator Problem

Hi

 

Please be aware that LyoDesigner (& generator) is not working with the latest Eclipse versions Eclipse 2018-12 (4.10) and onwards. The latest version that we know works is Eclipse 2018-09 (https://www.eclipse.org/downloads/packages/release/2018-09/r/eclipse-ide-java-ee-developers) and earlier.

 

This is due to some problems with the latest versions of EMF/Acceleo. See details in the posted Github issue below.

 

Hopefully, upcoming releases of EMF will solve this issue in June.

 

If you want to use latest Eclipse, you might need to tweek the plugin versions of Acceleo & EMF to make it work.

 

Regards

______________________________

Jad El-khoury, PhD

KTH Royal Institute of Technology

School of Industrial Engineering and Management, Mechatronics Division

Brinellvägen 83, SE-100 44 Stockholm, Sweden

Phone: +46(0)8 790 6877 Mobile: +46(0)70 773 93 45

jad@xxxxxx, www.kth.se

 

From: Jad El-Khoury
Sent: 18 April 2019 14:16
To: Lyo project developer discussions <lyo-dev@xxxxxxxxxxx>
Subject: RE: [lyo-dev] Lyo Generator Problem

 

Hi again,

 

I have now created an issue for this bug, which I hope you can follow on the link below.

https://github.com/eclipse/lyo.designer/issues/75

 

I will keep you updated once I manage to find some time, and do any progress on this

 

regards

______________________________

Jad El-khoury, PhD

KTH Royal Institute of Technology

School of Industrial Engineering and Management, Mechatronics Division

Brinellvägen 83, SE-100 44 Stockholm, Sweden

Phone: +46(0)8 790 6877 Mobile: +46(0)70 773 93 45

jad@xxxxxx, https://www.kth.se/profile/jad

 

From: lyo-dev-bounces@xxxxxxxxxxx <lyo-dev-bounces@xxxxxxxxxxx> On Behalf Of Jan-Patrick Osterloh
Sent: Tuesday, 16 April 2019 09:34
To: lyo-dev@xxxxxxxxxxx
Subject: Re: [lyo-dev] Lyo Generator Problem

 

Dear Jad,

for now I have a working solution, but I would be glad to get it working with Photon as well. But I have no idea what a solution could be, and how to fix this. So if you have any ideas, I would be willing to try...

Best regards
JPO

Am 15.04.2019 um 17:57 schrieb Jad El-Khoury:

Hi again 

 

I saw your earlier post that”I can confirm that it works with Oxygen now. I downloaded a clean Oxygen JEE Package, and installed Sirius, Acceleo and Lyo, and now it works...”

 

 

So are you still having problems or just trying to make it work with Photon as well?

 

Regards

Jad 


On 15 Apr 2019, at 17:28, Jan-Patrick Osterloh <osterloh@xxxxxxxx> wrote:

Ok, I reverted to Sirius 5.1.4 and Acceleo 3.7.2, but I'm still getting the same error. Do I need a certain EMF version, too? I have 2.17.

Just saw your other question, I'm not using the Lyo Domain Model AFAIK.

Best
JPO

Am 15.04.2019 um 14:21 schrieb Jad El-Khoury:

Time to deal with Sirius 6.1 then. 

 

But until then, Oxygen is safe. I even used Eclipse 201812somethingsomething and that was ok. 

 

 

 

Jad 


On 15 Apr 2019, at 13:31, Andrii Berezovskyi <andriib@xxxxxx> wrote:

Right, we have trouble with Sirius 6.1 at the moment. Could you please downgrade to some Eclipse that is still on Sirius 5.x, please? Or at least to Sirius 6.0 (should work but not thoroughly tested).

 

--

–Andrew.

 

Från: <lyo-dev-bounces@xxxxxxxxxxx> på uppdrag av Jan-Patrick Osterloh <osterloh@xxxxxxxx>
Svara till: Lyo project developer discussions <
lyo-dev@xxxxxxxxxxx>
Datum: måndag, 15 april 2019, W16 13:28
Till: "
lyo-dev@xxxxxxxxxxx" <lyo-dev@xxxxxxxxxxx>
Ämne: Re: [lyo-dev] Lyo Generator Problem

 

Hi,

for Sirius everything has Version: 6.1.2.201902150923
for Acceleo see screenshot, but mainly 3.7.2

JPO



Am 15.04.2019 um 12:24 schrieb Jad El-Khoury:

Hi
 
I've been using Lyo with Oxygen with no problems. Not sure about its status with Photon. 
 
Could you work out the versions of 2 sets of Plugins for me? (1) Sirius (2) Acceleo. Please see attached for what I am looking for.
 
"Wrong" versions of these plugins have caused problems before for me.
 
regards
______________________________
Jad El-khoury, PhD
KTH Royal Institute of Technology
School of Industrial Engineering and Management, Mechatronics Division
Brinellvägen 83, SE-100 44 Stockholm, Sweden
Phone: +46(0)8 790 6877 Mobile: +46(0)70 773 93 45
jad@xxxxxx, https://www.kth.se/profile/jad 
 
-----Original Message-----
From: lyo-dev-bounces@xxxxxxxxxxx <lyo-dev-bounces@xxxxxxxxxxx> On Behalf Of Jan-Patrick Osterloh
Sent: Monday, 15 April 2019 12:16
To: lyo-dev@xxxxxxxxxxx
Subject: Re: [lyo-dev] Lyo Generator Problem
 
Hi Jad,
 
Am 15.04.2019 um 12:04 schrieb Jad El-Khoury:
Hi Jan-Patrick,
 
What version of Eclipse were you using before. You are using Photon now, right?
I'm not sure, what the last version of eclipse was that code generation was working on. I'm on Photon, I switched a while ago from Oxygen.
Honestly I'm not sure if I tested Lyo with that...
 
Did you setup your environment, as instructed here? In particular, I 
am thinking of setting up the Java JDK in Eclipse 
https://wiki.eclipse.org/Lyo/General_Setup_for_OSLC4J_Development
I'm starting eclipse with JRE 1.8, my default JRE is a JDK 11.
 
Finally, did you download Lyo Designer from the stable site update-site http://download.eclipse.org/lyo/p2/stable/? Or http://download.eclipse.org/lyo/p2/edge/?
I installed it from the stable update site.
 
Best
Jan-Patrick
 
 
 
 
regards
______________________________
Jad El-khoury, PhD
KTH Royal Institute of Technology
School of Industrial Engineering and Management, Mechatronics Division 
Brinellvägen 83, SE-100 44 Stockholm, Sweden
Phone: +46(0)8 790 6877 Mobile: +46(0)70 773 93 45 jad@xxxxxx, 
www.kth.se
 
-----Original Message-----
From: lyo-dev-bounces@xxxxxxxxxxx [mailto:lyo-dev-bounces@xxxxxxxxxxx] 
On Behalf Of Jan-Patrick Osterloh
Sent: 15 April 2019 11:55
To: lyo-dev@xxxxxxxxxxx
Subject: [lyo-dev] Lyo Generator Problem
 
Hi,
 
I just had to re-install/setup my eclipse, but now my toolchain isn't generating any more. There's no error message in eclipse, but I was able to find the following in the log file:
!ENTRY org.eclipse.ui 4 0 2019-04-15 11:33:14.273 !MESSAGE Unhandled 
event loop exception !STACK 0
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException:
org.eclipse.emf.ecore.xmi.UnresolvedReferenceException: Unresolved reference '/0/generateForServiceProviderCatalog/anAdaptorInterface'.
(jar:file:/C:/Users/patrick/eclipse/java-photon/eclipse/plugins/org.ec
lipse.lyo.oslc4j.codegenerator_2.4.0.jar!/org/eclipse/lyo/oslc4j/codeg
enerator/main/generate.emtl,
83, 155)
    at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDemandLoadEx
ception(ResourceSetImpl.java:319)
    at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(R
esourceSetImpl.java:278)
    at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(Resour
ceSetImpl.java:406)
    at 
org.eclipse.acceleo.common.utils.ModelUtils.load(ModelUtils.java:391)
    at 
org.eclipse.acceleo.common.utils.ModelUtils.load(ModelUtils.java:356)
    at
org.eclipse.acceleo.engine.service.AbstractAcceleoGenerator.initialize
(AbstractAcceleoGenerator.java:485)
    at
org.eclipse.lyo.oslc4j.codegenerator.main.Generate.<init>(Generate.jav
a:90)
    at
org.eclipse.lyo.tools.codegenerator.ui.common.GenerateAll.<init>(Gener
ateAll.java:70)
    at
org.eclipse.lyo.tools.codegenerator.ui.popupMenus.AcceleoGenerateCodeg
eneratorAction.run(AcceleoGenerateCodegeneratorAction.java:107)
    at
org.eclipse.ui.actions.ActionDelegate.runWithEvent(ActionDelegate.java
:75)
    at
org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:23
7)
    at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(
ActionContributionItem.java:565)
    at
org.eclipse.jface.action.ActionContributionItem.lambda$4(ActionContrib
utionItem.java:397)
    at 
org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:86)
    at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4118)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052)
    at 
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3931)
    at 
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3534)
    at
org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(Par
tRenderingEngine.java:1170)
    at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.jav
a:336)
    at
org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartR
enderingEngine.java:1059)
    at
org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Work
bench.java:153)
    at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:667)
    at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.jav
a:336)
    at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java
:597)
    at 
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
    at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplic
ation.java:152)
    at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle
.java:196)
    at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplic
ation(EclipseAppLauncher.java:134)
    at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Ecl
ipseAppLauncher.java:104)
    at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.jav
a:388)
    at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.jav
a:243)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at 
org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:656)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:592)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1498)
Caused by: org.eclipse.emf.ecore.xmi.UnresolvedReferenceException:
Unresolved reference
'/0/generateForServiceProviderCatalog/anAdaptorInterface'.
(jar:file:/C:/Users/patrick/eclipse/java-photon/eclipse/plugins/org.ec
lipse.lyo.oslc4j.codegenerator_2.4.0.jar!/org/eclipse/lyo/oslc4j/codeg
enerator/main/generate.emtl,
83, 155)
    at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleForwardReferences(XMLH
andler.java:1197)
    at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.endDocument(XMLHandler.java:
1282)
    at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endDocume
nt(Unknown
Source)
    at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl
.scanDocument(Unknown
Source)
    at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Un
known
Source)
    at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Un
known
Source)
    at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown 
Source)
    at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unk
nown
Source)
    at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.pa
rse(Unknown
Source)
    at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(Unknown 
Source)
    at 
org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:175)
    at
org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLResourceImpl.
java:261)
    at
org.eclipse.acceleo.model.mtl.resource.EMtlResourceImpl.doLoad(EMtlRes
ourceImpl.java:93)
    at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.jav
a:1563)
    at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.jav
a:1342)
    at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(Resourc
eSetImpl.java:259)
    at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(R
esourceSetImpl.java:274)
    ... 37 more
 
I've attached my eclipse configuration as printed out via Help - About Eclipse...
 
How can I fix this?
 
Best regards
Jan-Patrick
--
Dipl. Inform. Jan-Patrick Osterloh
Senior Research Engineer
Human Centered Design Group
 
OFFIS e.V. - Institut für Informatik | Institute for Information Technology
             FuE Bereich Verkehr     | R&D Division Transportation
             Escherweg 2, 26121 Oldenburg - Germany
Room:        D107
Phone/Fax:   +49 441 97 22-524 / -502
E-Mail:      osterloh@xxxxxxxx
URL:         http://www.offis.de 
 
Registergericht: Amtsgericht Oldenburg VR 1956
Vorstand: Prof. Dr.-Ing. Wolfgang H. Nebel (Vorsitzender),
          Prof. Dr. techn. Susanne Boll-Westermann,
          Prof. Dr.-Ing. Axel Hahn,
          Prof. Dr.-Ing. Andreas Hein,
          Prof. Dr. Sebastian Lehnhoff 
 
 
_______________________________________________
lyo-dev mailing list
lyo-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/lyo-dev



_______________________________________________
lyo-dev mailing list
lyo-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/lyo-dev



-- 
Dipl. Inform. Jan-Patrick Osterloh
Senior Research Engineer
Human Centered Design Group
 
OFFIS e.V. - Institut für Informatik | Institute for Information Technology
             FuE Bereich Verkehr     | R&D Division Transportation
             Escherweg 2, 26121 Oldenburg - Germany
Room:        D107
Phone/Fax:   +49 441 97 22-524 / -502
E-Mail:      osterloh@xxxxxxxx
URL:         http://www.offis.de 
 
Registergericht: Amtsgericht Oldenburg VR 1956
Vorstand: Prof. Dr.-Ing. Wolfgang H. Nebel (Vorsitzender),
          Prof. Dr. techn. Susanne Boll-Westermann,
          Prof. Dr.-Ing. Axel Hahn,
          Prof. Dr.-Ing. Andreas Hein,
          Prof. Dr. Sebastian Lehnhoff 
 

_______________________________________________
lyo-dev mailing list
lyo-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/lyo-dev

 

_______________________________________________
lyo-dev mailing list
lyo-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/lyo-dev

 

-- 
Dipl. Inform. Jan-Patrick Osterloh
Senior Research Engineer
Human Centered Design Group
 
OFFIS e.V. - Institut für Informatik | Institute for Information Technology
             FuE Bereich Verkehr     | R&D Division Transportation
             Escherweg 2, 26121 Oldenburg - Germany
Room:        D107
Phone/Fax:   +49 441 97 22-524 / -502
E-Mail:      osterloh@xxxxxxxx
URL:         http://www.offis.de 
 
Registergericht: Amtsgericht Oldenburg VR 1956
Vorstand: Prof. Dr.-Ing. Wolfgang H. Nebel (Vorsitzender),
          Prof. Dr. techn. Susanne Boll-Westermann,
          Prof. Dr.-Ing. Axel Hahn,
          Prof. Dr.-Ing. Andreas Hein,
          Prof. Dr. Sebastian Lehnhoff 
 

_______________________________________________
lyo-dev mailing list
lyo-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/lyo-dev

 

_______________________________________________
lyo-dev mailing list
lyo-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/lyo-dev

 

-- 
Dipl. Inform. Jan-Patrick Osterloh
Senior Research Engineer
Human Centered Design Group
 
OFFIS e.V. - Institut für Informatik | Institute for Information Technology
             FuE Bereich Verkehr     | R&D Division Transportation
             Escherweg 2, 26121 Oldenburg - Germany
Room:        D107
Phone/Fax:   +49 441 97 22-524 / -502
E-Mail:      osterloh@xxxxxxxx
URL:         http://www.offis.de 
 
Registergericht: Amtsgericht Oldenburg VR 1956
Vorstand: Prof. Dr.-Ing. Wolfgang H. Nebel (Vorsitzender),
          Prof. Dr. techn. Susanne Boll-Westermann,
          Prof. Dr.-Ing. Axel Hahn,
          Prof. Dr.-Ing. Andreas Hein,
          Prof. Dr. Sebastian Lehnhoff 
 

Back to the top