Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » MoDisco » no uml file from kdm(nothing happens)
no uml file from kdm [message #891542] Mon, 25 June 2012 08:06 Go to next message
moritz du is currently offline moritz du
Messages: 98
Registered: February 2010
Member
i am new to modico. i just creasted my first kdm file from a java project. now i want an uml model.
but the process of discovering uml from kdm stops without any result - the progress window "discovering model..." closes but no file is opened. (serialize =true and open file in editor is checked)

so how to get the uml? thx in advance
Re: no uml file from kdm [message #891551 is a reply to message #891542] Mon, 25 June 2012 08:26 Go to previous messageGo to next message
Hugo Bruneliere is currently offline Hugo Bruneliere
Messages: 604
Registered: July 2009
Senior Member
Hello,

It looks like there is an error occurring during the KDM-to-UML2 transformation, this could come from some modifications on the latest version of the UML2 metamodel.
I invite you to take a look to the Error Log view and check if something is indicated there.
Is it the same problem as reported from https://bugs.eclipse.org/bugs/show_bug.cgi?id=363319?

Best regards,

Hugo


Best regards,

Hugo


------------------------------------------
Hugo Bruneliere - R&D Engineer
AtlanMod research team (Inria, EMN & LINA)
Ecole des Mines de Nantes
Nantes - France
------------------------------------------
Re: no uml file from kdm [message #891653 is a reply to message #891551] Mon, 25 June 2012 12:14 Go to previous messageGo to next message
moritz du is currently offline moritz du
Messages: 98
Registered: February 2010
Member
thx for hint to error log,


the error is:

Cannot set feature uml!InterfaceRealization.contract to value org.eclipse.uml2.uml.internal.impl.ClassImpl@310d67bd (name: <unset>, visibility: <unset>) (isLeaf: false, isAbstract: false) (isActive: false) (org.eclipse.modisco.kdm.uml2converter_0.9.2.v201202151138)

with trace:

org.eclipse.m2m.atl.engine.vm.VMException: Cannot set feature uml!InterfaceRealization.contract to value org.eclipse.uml2.uml.internal.impl.ClassImpl@310d67bd (name: <unset>, visibility: <unset>) (isLeaf: false, isAbstract: false) (isActive: false)
at A.__applyImplementsToInterfaceRealization(1 : NTransientLink;) : ??#26(KDMtoUML.atl[541:3-541:89])
local variables = {tgt=umlOutput!<notnamedyet>, src=kdmInput!<unnamed>, link=TransientLink {rule = 'ImplementsToInterfaceRealization', sourceElements = {src = kdmInput!<unnamed>}, targetElements = {tgt = umlOutput!<notnamedyet>}, variables = {}}, self=KDMtoUML : ASMModule}
local stack = [umlOutput!<notnamedyet>]
Java Stack:
org.eclipse.m2m.atl.engine.vm.VMException: Cannot set feature uml!InterfaceRealization.contract to value org.eclipse.uml2.uml.internal.impl.ClassImpl@310d67bd (name: <unset>, visibility: <unset>) (isLeaf: false, isAbstract: false) (isActive: false)
at org.eclipse.m2m.atl.drivers.emf4atl.ASMEMFModelElement.set(ASMEMFModelElement.java:513)
at org.eclipse.m2m.atl.engine.vm.ASMOperation.realExec(ASMOperation.java:323)
at org.eclipse.m2m.atl.engine.vm.ASMOperation.exec(ASMOperation.java:173)
at org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclAny.invoke(ASMOclAny.java:130)
at org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclAny.invoke(ASMOclAny.java:78)
at org.eclipse.m2m.atl.engine.vm.ASMOperation.realExec(ASMOperation.java:251)
at org.eclipse.m2m.atl.engine.vm.ASMOperation.realExec(ASMOperation.java:357)
at org.eclipse.m2m.atl.engine.vm.ASMOperation.exec(ASMOperation.java:173)
at org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclAny.invoke(ASMOclAny.java:130)
at org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclAny.invoke(ASMOclAny.java:78)
at org.eclipse.m2m.atl.engine.vm.ASMOperation.realExec(ASMOperation.java:251)
at org.eclipse.m2m.atl.engine.vm.ASMOperation.exec(ASMOperation.java:173)
at org.eclipse.m2m.atl.engine.vm.ASMInterpreter.<init>(ASMInterpreter.java:346)
at org.eclipse.m2m.atl.engine.vm.AtlLauncher.launch(AtlLauncher.java:216)
at org.eclipse.m2m.atl.engine.vm.AtlLauncher.launch(AtlLauncher.java:127)
at org.eclipse.m2m.atl.engine.vm.AtlLauncher.launch(AtlLauncher.java:92)
at org.eclipse.modisco.util.atl.core.internal.AtlLaunchHelper.runTransformation(AtlLaunchHelper.java:194)
at org.eclipse.modisco.util.atl.core.internal.AtlLaunchHelper.runTransformation(AtlLaunchHelper.java:173)
at org.eclipse.modisco.kdm.uml2converter.internal.KdmToUmlConverter.getUML2ModelFromKDMModelWithCustomTransformation(KdmToUmlConverter.java:114)
at org.eclipse.modisco.kdm.uml2converter.internal.KdmToUmlConverter.getUML2ModelFromKDMModel(KdmToUmlConverter.java:79)
at org.eclipse.modisco.kdm.uml2converter.DiscoverUmlModelFromKdmModel.basicDiscoverElement(DiscoverUmlModelFromKdmModel.java:89)
at org.eclipse.modisco.kdm.uml2converter.DiscoverUmlModelFromKdmModel.basicDiscoverElement(DiscoverUmlModelFromKdmModel.java:1)
at org.eclipse.modisco.infra.discovery.core.AbstractDiscoverer.discoverElement(AbstractDiscoverer.java:93)
at org.eclipse.modisco.infra.discovery.core.AbstractModelDiscoverer.discoverElement(AbstractModelDiscoverer.java:183)
at org.eclipse.modisco.infra.discovery.ui.internal.actions.MoDiscoMenuSelectionListener.discovererElement(MoDiscoMenuSelectionListener.java:352)
at org.eclipse.modisco.infra.discovery.ui.internal.actions.MoDiscoMenuSelectionListener$1.run(MoDiscoMenuSelectionListener.java:115)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.lang.ClassCastException: org.eclipse.uml2.uml.internal.impl.ClassImpl cannot be cast to org.eclipse.uml2.uml.Interface
at org.eclipse.uml2.uml.internal.impl.InterfaceRealizationImpl.eSet(InterfaceRealizationImpl.java:492)
at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eSet(BasicEObjectImpl.java:1081)
at org.eclipse.m2m.atl.drivers.emf4atl.ASMEMFModelElement.set(ASMEMFModelElement.java:510)
... 26 more

[Updated on: Mon, 25 June 2012 12:16]

Report message to a moderator

Re: no uml file from kdm [message #891659 is a reply to message #891653] Mon, 25 June 2012 12:36 Go to previous messageGo to next message
Hugo Bruneliere is currently offline Hugo Bruneliere
Messages: 604
Registered: July 2009
Senior Member
I think this is the same type of bug as the one I've mentioned in my previous post.
Could you post a new comment to this bug to present your issue and also attach your error message (the one concerning the KDM-to-UML transformation)?

Hugo


------------------------------------------
Hugo Bruneliere - R&D Engineer
AtlanMod research team (Inria, EMN & LINA)
Ecole des Mines de Nantes
Nantes - France
------------------------------------------
Re: no uml file from kdm [message #891843 is a reply to message #891659] Tue, 26 June 2012 09:19 Go to previous messageGo to next message
moritz du is currently offline moritz du
Messages: 98
Registered: February 2010
Member
... done

is there a workaround for the problem or is it currently impossible to get an uml model?
Re: no uml file from kdm [message #891845 is a reply to message #891843] Tue, 26 June 2012 09:26 Go to previous message
Hugo Bruneliere is currently offline Hugo Bruneliere
Messages: 604
Registered: July 2009
Senior Member
Using previous versions of Eclipse and MoDisco for this particular step should allow to perform it.

Hugo


------------------------------------------
Hugo Bruneliere - R&D Engineer
AtlanMod research team (Inria, EMN & LINA)
Ecole des Mines de Nantes
Nantes - France
------------------------------------------
Previous Topic:XMI from java discoverer
Next Topic:Looking for a tutorial
Goto Forum:
  


Current Time: Wed Sep 17 11:39:06 GMT 2014

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

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