Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » MoDisco » kdm to uml (still) fails
kdm to uml (still) fails [message #953771] Mon, 22 October 2012 14:19 Go to next message
moritz du is currently offline moritz du
Messages: 98
Registered: February 2010
Member
some month ago i tried modisco the first time an stumbled across a bug
this bug i reproduced with indigo and modisco 9.2

now i am on juno and modisco 10.1 but i still can't create uml model from kdm but the error message has changed:
message:
Cannot set feature uml!Class.ownedTemplateSignature to value org.eclipse.uml2.uml.internal.impl.RedefinableTemplateSignatureImpl@320dcb16 (name: <unset>, visibility: <unset>) (isLeaf: false) (org.eclipse.modisco.kdm.uml2converter_0.10.1.v201209190814)


trace:
org.eclipse.m2m.atl.engine.vm.VMException: Cannot set feature uml!Class.ownedTemplateSignature to value org.eclipse.uml2.uml.internal.impl.RedefinableTemplateSignatureImpl@320dcb16 (name: <unset>, visibility: <unset>) (isLeaf: false)
	at A.__applyTemplateUnitToClass(1 : NTransientLink;) : ??#163(KDMtoUML.atl[473:3-473:38])
		local variables = {tgt=umlOutput!ArrayList, src=kdmInput!ArrayList<E>, link=TransientLink {rule = 'TemplateUnitToClass', sourceElements = {src = kdmInput!ArrayList<E>}, targetElements = {tgt = umlOutput!ArrayList, signature = umlOutput!<notnamedyet>}, variables = {realType = kdmInput!ArrayList}}, self=KDMtoUML : ASMModule, null=kdmInput!ArrayList, realType=kdmInput!ArrayList, signature=umlOutput!<notnamedyet>}
		local stack = [umlOutput!ArrayList]
Java Stack:
org.eclipse.m2m.atl.engine.vm.VMException: Cannot set feature uml!Class.ownedTemplateSignature to value org.eclipse.uml2.uml.internal.impl.RedefinableTemplateSignatureImpl@320dcb16 (name: <unset>, visibility: <unset>) (isLeaf: 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:229)
	at org.eclipse.modisco.infra.discovery.ui.internal.actions.MoDiscoMenuSelectionListener$1.run(MoDiscoMenuSelectionListener.java:168)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
Caused by: java.lang.NullPointerException


session data:
eclipse.buildId=M20120914-1800
java.version=1.7.0_03
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=de_DE
Framework arguments:  -product org.eclipse.epp.package.jee.product
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product

This is a continuation of log file C:\Users\stl1335\workspace-indigo\.metadata\.bak_1.log
Created Time: 2012-10-22 15:26:49.559


i tried kdm->uml with different projects (from simple with 3 classes to very complex ones), the error occurs directly after pressing ok.

so is there a way to get an uml model from a java project?

Re: kdm to uml (still) fails [message #953911 is a reply to message #953771] Mon, 22 October 2012 16:29 Go to previous messageGo to next message
Hugo Bruneliere is currently offline Hugo Bruneliere
Messages: 607
Registered: July 2009
Senior Member
Hello,

The MoDisco team has still not been able to work on this particular issue.
Please, could you update anyway the corresponding bug by adding your new error trace?
Thanks again for your valuable feedback.

Best regards,

Hugo


------------------------------------------
Hugo Bruneliere - R&D Engineer
AtlanMod research team (Inria, EMN & LINA)
Ecole des Mines de Nantes
Nantes - France
------------------------------------------
Re: kdm to uml (still) fails [message #954624 is a reply to message #953911] Tue, 23 October 2012 05:52 Go to previous message
moritz du is currently offline moritz du
Messages: 98
Registered: February 2010
Member
i'll do so,

but this particular problem totally breaks the kdm->uml functionality right? there is no other free/open source tool around to get uml from java Sad.
Previous Topic:Method AbstractDeploymentDescriptorDiscoverer.getDescXmlVersion
Next Topic:how to get uml model from java project
Goto Forum:
  


Current Time: Sat Oct 25 00:06:25 GMT 2014

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

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