[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2m-dev] MOF metametamodel

Hello,

I've got some metamodels conforming to MOF 1.4 (here: http://www.emn.fr/z-info/atlanmod/index.php/MDR) in order to use them like my "IN" (inputs) in the ATL transformations. But, when I use the metametamodel that you suggested described in MOF, the console shows an error. See below the error in the Eclipse 3.4 and Eclipse 3.2:

---> Using Eclipse Version: 3.4.0

Window Messenger Error:
An internal error occurred during: "Launching GuidelinesApplicatorTool".
java.lang.NullPointerException

Console Error:
SEVERE: null
java.lang.NullPointerException
    at org.eclipse.m2m.atl.adt.launching.AtlRegularVM.getSourceModels(AtlRegularVM.java:147)
    at org.eclipse.m2m.atl.adt.launching.AtlRegularVM.runAtlLauncher(AtlRegularVM.java:304)
    at org.eclipse.m2m.atl.adt.launching.AtlRegularVM.runAtlLauncher(AtlRegularVM.java:426)
    at org.eclipse.m2m.atl.adt.launching.AtlRegularVM.launch(AtlRegularVM.java:398)
    at org.eclipse.m2m.atl.adt.launching.AtlLaunchConfigurationDelegate.launch(AtlLaunchConfigurationDelegate.java:42)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:764)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:614)
    at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:827)
    at org.eclipse.debug.internal.ui.DebugUIPlugin$7.run(DebugUIPlugin.java:1030)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
SEVERE: null
java.lang.NullPointerException
    at org.eclipse.m2m.atl.adt.launching.AtlRegularVM.getTargetModels(AtlRegularVM.java:196)
    at org.eclipse.m2m.atl.adt.launching.AtlRegularVM.runAtlLauncher(AtlRegularVM.java:305)
    at org.eclipse.m2m.atl.adt.launching.AtlRegularVM.runAtlLauncher(AtlRegularVM.java:426)
    at org.eclipse.m2m.atl.adt.launching.AtlRegularVM.launch(AtlRegularVM.java:398)
    at org.eclipse.m2m.atl.adt.launching.AtlLaunchConfigurationDelegate.launch(AtlLaunchConfigurationDelegate.java:42)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:764)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:614)
    at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:827)
    at org.eclipse.debug.internal.ui.DebugUIPlugin$7.run(DebugUIPlugin.java:1030)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
SEVERE: ****** BEGIN Stack Trace
SEVERE:     message: cannot find model MOF
SEVERE: A.main() : ??#22 null
SEVERE:     local variables = {self=InheritedAttributes : ASMModule}
SEVERE:     local stack = []
SEVERE: A.__matcher__() : ??#1 null
SEVERE:     local variables = {self=InheritedAttributes : ASMModule}
SEVERE:     local stack = []
SEVERE: A.__matchMofToMof() : ??#2 null
SEVERE:     local variables = {self=InheritedAttributes : ASMModule}
SEVERE:     local stack = []
SEVERE: ****** END Stack Trace
INFO: Execution terminated due to error (see launch configuration to allow continuation after errors).
SEVERE: cannot find model MOF
java.lang.RuntimeException: cannot find model MOF
    at org.eclipse.m2m.atl.engine.vm.SimpleDebugger.error(SimpleDebugger.java:195)
    at org.eclipse.m2m.atl.engine.vm.StackFrame.printStackTrace(StackFrame.java:95)
    at org.eclipse.m2m.atl.engine.vm.StackFrame.printStackTrace(StackFrame.java:91)
    at org.eclipse.m2m.atl.engine.vm.ASMOperation.realExec(ASMOperation.java:292)
    at org.eclipse.m2m.atl.engine.vm.ASMOperation.exec(ASMOperation.java:171)
    at org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclAny.invoke(ASMOclAny.java:143)
    at org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclAny.invoke(ASMOclAny.java:101)
    at org.eclipse.m2m.atl.engine.vm.ASMOperation.realExec(ASMOperation.java:240)
    at org.eclipse.m2m.atl.engine.vm.ASMOperation.exec(ASMOperation.java:171)
    at org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclAny.invoke(ASMOclAny.java:143)
    at org.eclipse.m2m.atl.engine.vm.nativelib.ASMOclAny.invoke(ASMOclAny.java:101)
    at org.eclipse.m2m.atl.engine.vm.ASMOperation.realExec(ASMOperation.java:240)
    at org.eclipse.m2m.atl.engine.vm.ASMOperation.exec(ASMOperation.java:171)
    at org.eclipse.m2m.atl.engine.vm.ASMInterpreter.<init>(ASMInterpreter.java:299)
    at org.eclipse.m2m.atl.engine.AtlLauncher.launch(AtlLauncher.java:169)
    at org.eclipse.m2m.atl.engine.AtlLauncher.launch(AtlLauncher.java:111)
    at org.eclipse.m2m.atl.engine.AtlLauncher.launch(AtlLauncher.java:87)
    at org.eclipse.m2m.atl.adt.launching.AtlRegularVM.runAtlLauncher(AtlRegularVM.java:326)
    at org.eclipse.m2m.atl.adt.launching.AtlRegularVM.runAtlLauncher(AtlRegularVM.java:426)
    at org.eclipse.m2m.atl.adt.launching.AtlRegularVM.launch(AtlRegularVM.java:398)
    at org.eclipse.m2m.atl.adt.launching.AtlLaunchConfigurationDelegate.launch(AtlLaunchConfigurationDelegate.java:42)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:764)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:614)
    at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:827)
    at org.eclipse.debug.internal.ui.DebugUIPlugin$7.run(DebugUIPlugin.java:1030)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

---> Using Eclipse Version: 3.2.1

Console Error:

Error while reading MOF:
****** BEGIN Stack Trace
    message: cannot find metamodel element Class in model MOF
A.main() : ??#22 null
    local variables = {self=InheritedAttributes : ASMModule}
    local stack = []
A.__matcher__() : ??#1 null
    local variables = {self=InheritedAttributes : ASMModule}
    local stack = []
A.__matchMofToMof() : ??#2 null
    local variables = {self=InheritedAttributes : ASMModule}
    local stack = []
****** END Stack Trace
Execution terminated due to error (see launch configuration to allow continuation after errors).
java.lang.NullPointerException
    at org.atl.engine.repositories.emf4atl.ASMEMFModelElement.set(ASMEMFModelElement.java:229)
    at org.atl.engine.injectors.ebnf.EBNFInjector2.set(EBNFInjector2.java:903)
    at org.atl.engine.injectors.ebnf.EBNFInjector2.set(EBNFInjector2.java:452)
    at org.atl.engine.injectors.ebnf.ATLParser.module(ATLParser.java:784)
    at org.atl.engine.injectors.ebnf.ATLParser.unit(ATLParser.java:91)
    at org.atl.engine.injectors.ebnf.ATLParser.main(ATLParser.java:65)
    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.atl.engine.injectors.ebnf.EBNFInjector2$ANTLR2Wrapper.parse(EBNFInjector2.java:145)
    at org.atl.engine.injectors.ebnf.EBNFInjector2.performImportation(EBNFInjector2.java:273)
    at org.atl.engine.injectors.ebnf.EBNFInjector2.performImportation(EBNFInjector2.java:243)
    at org.atl.engine.injectors.ebnf.EBNFInjector2.performImportation(EBNFInjector2.java:234)
    at org.atl.eclipse.engine.AtlParser.parseToModelWithProblems(AtlParser.java:49)
    at org.atl.eclipse.engine.Atl2004Compiler.compile(Atl2004Compiler.java:71)
    at org.atl.eclipse.engine.AtlCompiler.compile(AtlCompiler.java:75)
    at org.atl.eclipse.adt.builder.AtlBuildVisitor.visit(AtlBuildVisitor.java:71)
    at org.eclipse.core.internal.resources.Resource$2.visit(Resource.java:105)
    at org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:57)
    at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:81)
    at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
    at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
    at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:126)
    at org.eclipse.core.internal.resources.Resource.accept(Resource.java:67)
    at org.eclipse.core.internal.resources.Resource.accept(Resource.java:103)
    at org.eclipse.core.internal.resources.Resource.accept(Resource.java:87)
    at org.atl.eclipse.adt.builder.AtlBuilder.fullBuild(AtlBuilder.java:43)
    at org.atl.eclipse.adt.builder.AtlBuilder$1.run(AtlBuilder.java:32)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1737)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1719)
    at org.atl.eclipse.adt.builder.AtlBuilder.run(AtlBuilder.java:53)
    at org.atl.eclipse.adt.builder.AtlBuilder.build(AtlBuilder.java:35)
    at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:603)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:167)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201)
    at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:230)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:233)
    at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:252)
    at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:285)
    at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:145)
    at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:208)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
****** BEGIN Stack Trace
    message: ERROR: could not find operation allInstancesFrom on MOF!EClass having supertypes: [MOF!EClassifier, OclType, OclAny] (including Java operations)
A.main() : ??#17 null
    local variables = {self=ATL_WFR : ASMModule}
    local stack = []
A.__matcher__() : ??#6 null
    local variables = {self=ATL_WFR : ASMModule}
    local stack = []
A.__matchFreeVariableIsSelfOrThisModule() : ??#9 null
    local variables = {self=ATL_WFR : ASMModule}
    local stack = [ATL!VariableDeclaration, Sequence {}]
****** END Stack Trace
Trying to continue execution despite the error.
****** BEGIN Stack Trace
    message: ERROR: could not find operation union on MOF!EClass having supertypes: [MOF!EClassifier, OclType, OclAny] (including Java operations)
A.main() : ??#17 null
    local variables = {self=ATL_WFR : ASMModule}
    local stack = []
A.__matcher__() : ??#6 null
    local variables = {self=ATL_WFR : ASMModule}
    local stack = []
A.__matchFreeVariableIsSelfOrThisModule() : ??#10 null
    local variables = {self=ATL_WFR : ASMModule}
    local stack = []
****** END Stack Trace
Trying to continue execution despite the error.
****** BEGIN Stack Trace
    exception:
java.util.EmptyStackException
    at java.util.Stack.peek(Unknown Source)
    at java.util.Stack.pop(Unknown Source)
    at org.atl.engine.vm.ASMStackFrame.pop(ASMStackFrame.java:90)
    at org.atl.engine.vm.ASMOperation.realExec(ASMOperation.java:184)
    at org.atl.engine.vm.ASMOperation.exec(ASMOperation.java:155)
    at org.atl.engine.vm.nativelib.ASMOclAny.invoke(ASMOclAny.java:60)
    at org.atl.engine.vm.nativelib.ASMOclAny.invoke(ASMOclAny.java:50)
    at org.atl.engine.vm.ASMOperation.realExec(ASMOperation.java:214)
    at org.atl.engine.vm.ASMOperation.exec(ASMOperation.java:155)
    at org.atl.engine.vm.nativelib.ASMOclAny.invoke(ASMOclAny.java:60)
    at org.atl.engine.vm.nativelib.ASMOclAny.invoke(ASMOclAny.java:50)
    at org.atl.engine.vm.ASMOperation.realExec(ASMOperation.java:214)
    at org.atl.engine.vm.ASMOperation.exec(ASMOperation.java:155)
    at org.atl.engine.vm.ASMInterpreter.<init>(ASMInterpreter.java:276)
    at org.atl.eclipse.engine.AtlLauncher.launch(AtlLauncher.java:136)
    at org.atl.eclipse.engine.AtlLauncher.launch(AtlLauncher.java:94)
    at org.atl.eclipse.engine.AtlLauncher.launch(AtlLauncher.java:68)
    at org.atl.eclipse.engine.AtlLauncher.launch(AtlLauncher.java:60)
    at org.atl.eclipse.engine.AtlLauncher.launch(AtlLauncher.java:56)
    at org.atl.eclipse.engine.Atl2004Compiler.compile(Atl2004Compiler.java:91)
    at org.atl.eclipse.engine.AtlCompiler.compile(AtlCompiler.java:75)
    at org.atl.eclipse.adt.builder.AtlBuildVisitor.visit(AtlBuildVisitor.java:71)
    at org.eclipse.core.internal.resources.Resource$2.visit(Resource.java:105)
    at org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:57)
    at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:81)
    at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
    at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
    at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:126)
    at org.eclipse.core.internal.resources.Resource.accept(Resource.java:67)
    at org.eclipse.core.internal.resources.Resource.accept(Resource.java:103)
    at org.eclipse.core.internal.resources.Resource.accept(Resource.java:87)
    at org.atl.eclipse.adt.builder.AtlBuilder.fullBuild(AtlBuilder.java:43)
    at org.atl.eclipse.adt.builder.AtlBuilder$1.run(AtlBuilder.java:32)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1737)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1719)
    at org.atl.eclipse.adt.builder.AtlBuilder.run(AtlBuilder.java:53)
    at org.atl.eclipse.adt.builder.AtlBuilder.build(AtlBuilder.java:35)
    at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:603)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:167)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201)
    at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:230)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:233)
    at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:252)
    at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:285)
    at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:145)
    at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:208)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
A.main() : ??#17 null
    local variables = {self=ATL_WFR : ASMModule}
    local stack = []
A.__matcher__() : ??#6 null
    local variables = {self=ATL_WFR : ASMModule}
    local stack = []
A.__matchFreeVariableIsSelfOrThisModule() : ??#11 null
    local variables = {self=ATL_WFR : ASMModule}
    local stack = []
****** END Stack Trace
Trying to continue execution despite the error.
Warning, could not find mathing node for Void in mode

-----------

I think the metamodels I got aren't conforming to MOF you suggested me, because the elements name aren't found in the metametamodel. I also tryed to use the option "Is metamodel" in the ATL Eclipse 3.4 run configuration, but it doesn't work.

I really don't know what to do :(
Any help?

Thanks a lot.
Andreza

2009/11/18 Ed Willink <ed@xxxxxxxxxxxxx>
Hi Andreza

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.m2m/org.eclipse.qvt.declarative/plugins/org.eclipse.qvt/model/ecore/EMOF.ecore?root=Modeling_Project&view=co

or

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.m2m/org.eclipse.qvt.declarative/plugins/org.eclipse.qvt/model/emof/EMOF.xml?root=Modeling_Project&view=co

    Ed

Andreza Vieira wrote:
Hi Ed Willink,

Thanks for your answer.
I have been looking for the plugin you suggested, but I couldn't find it. I tryed to use the combobox "Is metametamodel" in the ATL Eclipse run configuration, but it doesn't work :(
I just want the MOF Metamodel (metametamodel) XMI, because in my case the models are metamodels. So, the metamodel must be the metametamodel.
Thanks a lot.

Reguards

2009/11/11 Ed Willink <ed@xxxxxxxxxxxxx>
Hi Andrez

The org.eclipse.qvt plugin for the M2M/QVT Declarative project has a variety of Ecore, and EMOF formats of a variety of OMG models that
form part of QVT. MOF is one of them.

       Regards

               Ed Willink

Andreza Vieira wrote:
Hello,

Please, I want to do metamodel to metamodel ATL transformations (any kind of metamodels). So, I need to find the metametamodel, that is, MOF. Does anyone knows where can I find the MOF metametamodel?
Thanks a lot.

--
Andreza Vieira


------------------------------------------------------------------------

_______________________________________________
m2m-dev mailing list
m2m-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2m-dev


_______________________________________________
m2m-dev mailing list
m2m-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2m-dev



--
Andreza Vieira


_______________________________________________ m2m-dev mailing list m2m-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/m2m-dev

_______________________________________________
m2m-dev mailing list
m2m-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2m-dev




--
Andreza Vieira