-
Notifications
You must be signed in to change notification settings - Fork 4
error when running coffee machine example #56
Comments
Do you have any forum to ask questions about using Gemoc? I actually met a lot of problems using it but I don't know what is the proper place to ask questions |
Dear all,
To my knowledge, the GEMOC project is currently being integrated in the Eclipse infrastructure and should soon benefit from the usual Eclipse foundation facilities.
Information will be posted when the move has been completed.
Best regards,
Marc
Le 14 sept. 2017 à 08:18, zzhang03 ***@***.***> a écrit :
Do you have any forum to ask questions about using Gemoc? I actually met a lot of problems using it but I don't know what is the proper place to ask questions
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#56 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AB_m1OUv49YC0gpKycpngVEt50V7uUOxks5siMUagaJpZM4PV7VI>.
Marc Pantel
Maître de Conférences en Informatique
Associate Professor in Computer Science
IRIT - Institut de Recherche en Informatique de Toulouse - CNRS
N7 - INPT - Université de Toulouse - France - Europe
http://maps.google.com/maps?q=Rue+Charles+Camichel,+31000+Toulouse,+France&z=16
phone +(33) 534 32 2185
fax +(33) 534 32 2157
cell +(33) 676 221 687
|
Hi,
You can register and discuss in the following mailing list: https://dev.eclipse.org/mailman/listinfo/gemoc-dev <https://dev.eclipse.org/mailman/listinfo/gemoc-dev>
Al the best,
Benoit
… Le 14 sept. 2017 à 08:18, zzhang03 ***@***.***> a écrit :
Do you have any forum to ask questions about using Gemoc? I actually met a lot of problems using it but I don't know what is the proper place to ask questions
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#56 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ADtBUC8CMaaiB5lUnaiqTyrUBz3tVH2cks5siMUagaJpZM4PV7VI>.
|
Hi, thanks for the reporting. |
Hi, Please tell us if OK. |
Hello I added the patches to my plugin folder, SelectCoffeeSystem.launchCoffeeCoin.launch.timemodel is generated now :). However, I still can't run the example. After I click on debug it would automatically stop the engine *** Model initialization done. (no modelInitialization method defined for the language) *** Error log would give me a NullPointerException: Is it like sth should be changed according to the patches? |
There is one more thing. When I loaded coffee machine models from wizard last week, I immediately got a building workspace error. "Errors running builder 'Xtext Project Builder' on project". I found that SelectCoffeeSystem.aird and SelectCoffeeSystem.xsigpml can't be opened. I had to open the .xsigpml in the text editor, change xmlns:sigpml="http://xsigpml/sigpml/" into xmlns:sigpml="http://org.gemoc.sample.sigpml.xsigpml/sigpml/" manually, then the model diagram could show correctly. |
@jdeantoni Sorry I found that the SelectCoffeeSystem.launchCoffeeCoin.launch.timemodel wasn't generated correctly. I opened it and it's almost empty. It contains only 2 lines and nothing else: <xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"/> |
Hi, can you please try these things:
At this point, run the modeling workbench, modify the NSUri of the xsigpml file as you already did and go in the debug configuration, choose the coordination configuration and launch the debug. then, please tell me then what happened :) thanks |
Hi, There are a lot of warnings saying that "Resource '/org.gemoc.sample.sigpml.moc.lib/MoCLib/SigPML.ccslLib' does not exist." and "Lookup of 'Coincides/Union/Exclusion/Alternates/AgentExecution...' failed". But I checked the language workbench, the file is there. Other warnings include: org.eclipse.acceleo.engine.AcceleoEvaluationException org.eclipse.acceleo.engine.AcceleoEvaluationException org.eclipse.acceleo.engine.AcceleoEvaluationException: Invalid result for expression self.invoke('org.gemoc.bcool.transformation.bcool2qvto.helper.helperNsURI', 'getEclDocument(org.gemoc.bcool.model.bcool.ImportInterfaceStatement)', Sequence {arg0}) at line 1,088 in Module generate for query getEclDocument(ImportInterfaceStatement). Last recorded value of self was org.gemoc.bcool.model.bcool.impl.ImportInterfaceStatementImpl@3c7e9b18 (name: sigpml) (importURI: platform:/resource/org.gemoc.sample.sigpml.moc.dse/MoCApplication/SigPML.ecl). Problem found while generating the file 'C:\GemocBcool\runtime-TestBcool\org.gemoc.sample.bcool.coffeemachinewithsigpml\gemoc-gen\TfsmAndSigpml.qvto'. org.eclipse.ocl.pivot.internal.scoping.EnvironmentView - Lookup of 'tfsm' failed The files which are claimed 'does not exist' are all in language workbench. |
Hi, the problem is that in the TfsmAndSigpml.qvto generated in the workspace there exists "platform:/resource" links to some resources which are actually in "platform:/plugin". It should be fixed by the "org.gemoc.bcool.transformation.bcool2qvto_2.3.0.201702201105.jar" plugin. On which operating system are you testing ? As a bad ugly test you can replace the imports of ECL and moccml files in the BCOoL files with "platform:/plugin" (of course the files will not typecheck) as well as the ECLimport from the ecl file. |
Hi, My operating system is win7. I had updated the plugins, and used eclipsec.exe -clean to initialize GEMOC, but it seems that "org.gemoc.bcool.transformation.bcool2qvto_2.3.0.201702201105.jar" didn't work as expected. I don't have another "org.gemoc.bcool.transformation.bcool2qvto_*" plugin. The warnings didn't disappear. I could replace "platform:/resource" by "platform:/plugin" manually, and the warnings are gone. However, the "Exception received null, stopping engine." is still there. |
Hi,
ok, I have to test under win7 but since I do not have any win OS on my
laptop it can take some times.
I you want, you can directly import the sources of bcool2qvto into the
language workbench.
I made it available here: http://www.i3s.unice.fr/~deantoni/chismxna/
If you have time to test, tell us, otherwise I'll test the win7 version.
all the bests
j
…On 09/25/2017 12:44 PM, chismxna wrote:
Hi,
My operating system is win7. I had updated the plugins, and used
eclipsec.exe -clean to initialize GEMOC, but it seems that
"org.gemoc.bcool.transformation.bcool2qvto_2.3.0.201702201105.jar"
didn't work as expected. I don't have another
"org.gemoc.bcool.transformation.bcool2qvto_*" plugin. The warnings
didn't disappear. I could replace "platform:/resource" by
"platform:/plugin" manually, and the warnings are gone. However, the
"Exception received null, stopping engine." is still there.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#56 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AF4JHjIZNE9SG-N34yXglrzhJ4F9T-Koks5sl4QJgaJpZM4PV7VI>.
--
Julien Deantoni
Associate Professor
I3S Lab - UMR 7271 -KAIROS
INRIA Sophia Antipolis Méditerranée
2004 rte des Lucioles (Lagrange L-041)
BP93, F-06902 Sophia Antipolis Cedex, France
tel: +334 92 38 77 66
http://www.i3s.unice.fr/~deantoni/
|
Hi, I will try to find what went wrong in bcool2qvto, it may take a while since I'm not familiar with the code. Could you give me some brief directions about how to test it? But if you haven't test GEMOC on win OS, it would be good that you also test the whole thing because there may be other bugs about the bcool engine. Thanks. |
Hi Chismxna, we missunderstood. You do not need to enter in the code. It has been tested with success on win10, java 8_102. However not under win7. The point is that for a strange reason the new plugin bcool2qvto is not loaded by your environment. Importing the bcool2qvto project in your language workbench is a way to force it to load. Perhaps another solution could be to test from a whole new workspace... I would not ask you to debug the whole bcool engine but you fall under a very bad luck category for now :) |
Oh I see. Yeah I agree that the situation is weird, I loaded the project into my workspace but still no help. |
Hi open the plugin registry view, right click enable the advanced options, then search the plugin you are interrested in (by scrolling because the search by text doesn't work well) |
Hi dvojtise, It's very strange because Diagnosis shows that "No problem detected." I begin to doubt that whether the problem really lies in bcool2qvto plugin. |
Diagnosis is not enough, you also need to force a start (that may trigger other errors) |
Hi dvojtise, I have tried to start all gemoc related plugins, but I didn't get any errors. I will be away from campus for a week so I won't be able to test it on Win7. I would be grateful if you could do the testing. I tried to execute coffemachine.xtfsm and SelectCoffeeSystem.xsigpml, respectively. I did this by using debug configuration CoffeeCoin and SelectCoffeeSystem under Gemoc Concurrent eXecutable Model category. I found that SelectCoffeeSystem worked fine, but CoffeeCoin cannot start correctly. Although it didn't give me the warnings in the earlier posts, it gave me the following:
Thanks. |
Hi there,
I'm currently trying to run your coffee machine example coordinating TFSM and SigPML languages on GEMOC 2.3.0. I have run TFSM and SigPML with their own examples loaded from wizard, respectively, and both or them work well. However, after I added the org.gemoc.sample.bcool.tfsmandsigpml, I couldn't run the coffee machine model in the modeling workbench. It looks like a timemodel called SelectCoffeeSystem.launchCoffeeCoin.launch.timemodel is missing. I didn't find this timemodel in the gemoc-gen folder under this project. The full error message is as following:
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: org.eclipse.core.internal.resources.ResourceException: Resource '/org.gemoc.sample.bcool.coffeemachinewithsigpml/gemoc-gen/SelectCoffeeSystem.launchCoffeeCoin.launch.timemodel' does not exist.
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDemandLoadException(ResourceSetImpl.java:319)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:278)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:406)
at fr.inria.aoste.timesquare.ccslkernel.model.utils.ResourceLoader.loadResource(ResourceLoader.java:43)
at fr.inria.aoste.timesquare.ccslkernel.model.utils.ResourceLoader.loadResource(ResourceLoader.java:34)
at fr.inria.aoste.timesquare.ccslkernel.model.utils.ResourceLoader.loadResource(ResourceLoader.java:38)
at org.gemoc.execution.engine.coordinator.commons.HeterogeneousEngine.(HeterogeneousEngine.java:126)
at org.gemoc.gemoc_heterogeneous_modeling_workbench.ui.launcher.Launcher.launch(Launcher.java:86)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:885)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1039)
at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1256)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: org.eclipse.core.internal.resources.ResourceException: Resource '/org.gemoc.sample.bcool.coffeemachinewithsigpml/gemoc-gen/SelectCoffeeSystem.launchCoffeeCoin.launch.timemodel' does not exist.
at org.eclipse.core.internal.resources.Resource.checkExists(Resource.java:335)
at org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:209)
at org.eclipse.core.internal.resources.File.getContents(File.java:275)
at org.eclipse.core.internal.resources.File.getContents(File.java:268)
at org.eclipse.emf.ecore.resource.impl.PlatformResourceURIHandlerImpl$WorkbenchHelper.createPlatformResourceInputStream(PlatformResourceURIHandlerImpl.java:207)
at org.eclipse.emf.ecore.resource.impl.PlatformResourceURIHandlerImpl.createInputStream(PlatformResourceURIHandlerImpl.java:525)
at org.eclipse.emf.ecore.resource.impl.ExtensibleURIConverterImpl.createInputStream(ExtensibleURIConverterImpl.java:360)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1269)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(ResourceSetImpl.java:259)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:274)
... 11 more
I also noticed that in the language workbench, the TfsmAndSigpml.qvto in org.gemoc.sample.bcool.tfsmandsigpml contains errors:
Failed to resolve metamodel 'http://www.eclipse.org/ocl/3.1.0/CompleteOCLCST'
Unrecognized variable: (MM21_seqOfoccursFSMEventContext)
Unrecognized variable: (MM11_seqOfstartAgentAgentContext)
Unrecognized variable: (name)
I tried to flip the EcoreAutoRegister Builder, but it didn't work
Do you have any idea what caused the problem in modeling workbench so that the timemodel wasn't generated? I appreciate your help, thanks!
The text was updated successfully, but these errors were encountered: