| Summary: | [Unit Test Failure] org.eclipse.modisco.kdm.uml2converter.tests.KdmToUml2ConverterTest.testKdmToUmlConverter | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Modeling] MoDisco | Reporter: | Nicolas Bros <nicolas.bros> | ||||||
| Component: | Infrastructure | Assignee: | Hugo Bruneliere <hugo.bruneliere> | ||||||
| Status: | ASSIGNED --- | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P2 | CC: | chris.weaver, gdupe, guillaume.doux, hugo.bruneliere, marek.jagielski, modisco.web-inbox, tanteanni | ||||||
| Version: | 0.10.0 | Flags: | gdupe:
kepler+
gdupe: luna+ |
||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows 7 | ||||||||
| Whiteboard: | |||||||||
| Bug Depends on: | 359247, 376144 | ||||||||
| Bug Blocks: | |||||||||
| Attachments: |
|
||||||||
as suggested here http://www.eclipse.org/forums/index.php/m/891653/#msg_891653 i add my error message: eclipse.buildId=M20120208-0800 java.version=1.6.0_31 java.vendor=Sun Microsystems Inc. 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 ...\.metadata\.bak_0.log Created Time: 2012-06-25 15:51:22.409 Error Tue Jun 26 11:13:08 CEST 2012 Cannot set feature uml!InterfaceRealization.contract to value org.eclipse.uml2.uml.internal.impl.ClassImpl@248c0d2e (name: <unset>, visibility: <unset>) (isLeaf: false, isAbstract: false) (isActive: false) (org.eclipse.modisco.kdm.uml2converter_0.9.2.v201202151138) org.eclipse.m2m.atl.engine.vm.VMException: Cannot set feature uml!InterfaceRealization.contract to value org.eclipse.uml2.uml.internal.impl.ClassImpl@248c0d2e (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@248c0d2e (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 ok probably i should say how i got this error: i installed uml2 tools sdk, modisco and papyrus. then i "discovered" a kdm model from one of my projects (maven, gwt, guice/gin). but "discovering" an uml model from created kdm file fails withe the error above. I get the same problem. I'm using Eclipse Juno. I can reproduce it the same way mentioned in Comment 2. i just reproduced the bug with indigo and modisco 9.2 and got a new kind of bug on juno and modisco 10.1:
error:
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:
Code: [Select all] [Show/ hide]
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:
Code: [Select all] [Show/ hide]
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
please fix this - there is no other free tool for java->uml
Hello, A patch to correct this problem have been submitted in the Bug 376144. Best regards, Guillaume Doux The patch has been applied and committed, changes will be reflected within the next MoDisco builds. In the meantime, the patch can also be applied manually to the org.eclipse.modisco.kdm.uml2converter plugin sources for individual builds. Best regards, Hugo Created attachment 223946 [details]
Bug is still in Modisco 0.10.1
Bug still appears in Modisco 0.10.1. Reverse engineering is absolutely BROKEN.
Hello, As said in my previous comment, the changes made by the proposed patch are going to be reflected in the next MoDisco builds. In the meantime (i.e. with the current 0.10.1 version), the org.eclipse.modisco.kdm.uml2converter plugin sources can be downloaded from the MoDisco SVN to apply the patch manually, then the updated project can be exported as a deployable plugin, and this latter finally copied to replace the previous plugin version. Best regards, Hugo (In reply to comment #7) > Created attachment 223946 [details] > Bug is still in Modisco 0.10.1 > > Bug still appears in Modisco 0.10.1. Reverse engineering is absolutely > BROKEN. Hi, What is the state of this bug? I have night build version 0.12 and I get: java.lang.ClassCastException: org.eclipse.uml2.uml.internal.impl.ClassImpl cannot be cast to org.eclipse.uml2.uml.Interface when having LinkedList in code, Marek Ok, Without 'deep analysis' option when creating java model I have no problem. Marek |
Created attachment 206696 [details] error messages The tests in org.eclipse.modisco.kdm.uml2converter.tests.KdmToUml2ConverterTest are failing with ATL runtime errors. See attached error messages.