Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMT (Generative Modeling Technologies) » oAW error :'Couldn't find operation....'
oAW error :'Couldn't find operation....' [message #376309] Tue, 20 March 2007 05:30 Go to next message
Eclipse User
Originally posted by: elena.tibrea.gmail.com

Hi,


I get a runtime error :'Couldn't find operation....'

0 INFO -
------------------------------------------------------------ --------------------------
50 INFO - openArchitectureWare 4.1.1, Build v20061128
50 INFO - (c) 2005, 2006 openarchitectureware.org and contributors
50 INFO -
------------------------------------------------------------ --------------------------
50 INFO - running workflow:
D:/_eclipse3.2/workspace1/oaw4.demo.emf.datamodel.xtend/src/ workflow1.oaw
50 INFO -
821 INFO - xmiParser: file 'default.sm' => slot 'rootElement'
1091 INFO - XtendComponent: executing 'test::Trafo1'
1352 ERROR - Couldn't find operation 'setSmName(String)' for
sm2::StateMachineType. in test/Trafo1.ext on line 9 'setSmName(old.smName)'
org.openarchitectureware.expression.EvaluationException: Couldn't find
operation 'setSmName(String)' for sm2::StateMachineType. in
test/Trafo1.ext on line 9 'setSmName(old.smName)'
at
org.openarchitectureware.expression.ast.OperationCall.evalua teInternal(OperationCall.java:136)
at
org.openarchitectureware.expression.ast.Expression.evaluate( Expression.java:42)
at
org.openarchitectureware.xtend.ast.CreateExtensionStatement. evaluate(CreateExtensionStatement.java:77)
at
org.openarchitectureware.expression.ast.OperationCall.evalua teInternal(OperationCall.java:94)
at
org.openarchitectureware.expression.ast.Expression.evaluate( Expression.java:42)
at
org.openarchitectureware.expression.ast.OperationCall.evalua teInternal(OperationCall.java:62)
at
org.openarchitectureware.expression.ast.Expression.evaluate( Expression.java:42)
at
org.openarchitectureware.xtend.ast.CreateExtensionStatement. evaluate(CreateExtensionStatement.java:77)
at
org.openarchitectureware.expression.ast.OperationCall.evalua teInternal(OperationCall.java:71)
at
org.openarchitectureware.expression.ast.Expression.evaluate( Expression.java:42)
at
org.openarchitectureware.expression.ExpressionFacade.evaluat e(ExpressionFacade.java:62)
at
org.openarchitectureware.expression.ExpressionFacade.evaluat e(ExpressionFacade.java:51)
at
org.openarchitectureware.xtend.XtendComponent.invokeInternal (XtendComponent.java:89)
at
org.openarchitectureware.workflow.lib.AbstractWorkflowCompon ent2.invoke(AbstractWorkflowComponent2.java:38)
at
org.openarchitectureware.workflow.container.CompositeCompone nt.internalInvoke(CompositeComponent.java:81)
at
org.openarchitectureware.workflow.container.CompositeCompone nt.invoke(CompositeComponent.java:69)
at
org.openarchitectureware.workflow.WorkflowRunner.executeWork flow(WorkflowRunner.java:236)
at
org.openarchitectureware.workflow.WorkflowRunner.run(Workflo wRunner.java:177)
at
org.openarchitectureware.workflow.WorkflowRunner.main(Workfl owRunner.java:126)


when using this transformation:

import sm2;

extension test::io;

create DocumentRoot this duplicate(DocumentRoot s):
setStatemachine( s.statemachine.duplicate() );

create StateMachineType this duplicate(StateMachineType old):
setSmName( old.smName );

for a EMF model created from the following XML Schema:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<xs:schema xmlns:tns="http://www.tu-harburg.de/~soet1085/SM"
xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
targetNamespace="http://www.tu-harburg.de/~soet1085/SM">
<xs:element name="statemachine" type="tns:StateMachineType"/>
<xs:complexType name="StateMachineType">
<xs:attribute name="smName" type="xs:string"/>
</xs:complexType>
</xs:schema>


Can you please help?
I cannot figure out why:(

Thanks
elena
Re: oAW error :'Couldn't find operation....' [message #376311 is a reply to message #376309] Sat, 24 March 2007 16:05 Go to previous message
Sven Efftinge is currently offline Sven Efftinge
Messages: 1761
Registered: July 2009
Senior Member
Hi elena,

ecore meta models derived from schema use XML data types not the ecore
data types. The ecore adapter used in oAW can only map ecore data types
(ecore::EString, ecore::EInt, etc.) to oaw's data types (String,
Integer, etc.).
Make sure that your ecore meta model uses ecore::EString (and the like)

regards,
Sven

elena t wrote:
> Hi,
>
>
> I get a runtime error :'Couldn't find operation....'
>
> 0 INFO -
> ------------------------------------------------------------ --------------------------
>
> 50 INFO - openArchitectureWare 4.1.1, Build v20061128
> 50 INFO - (c) 2005, 2006 openarchitectureware.org and contributors
> 50 INFO -
> ------------------------------------------------------------ --------------------------
>
> 50 INFO - running workflow:
> D:/_eclipse3.2/workspace1/oaw4.demo.emf.datamodel.xtend/src/ workflow1.oaw
> 50 INFO - 821 INFO - xmiParser: file 'default.sm' => slot 'rootElement'
> 1091 INFO - XtendComponent: executing 'test::Trafo1'
> 1352 ERROR - Couldn't find operation 'setSmName(String)' for
> sm2::StateMachineType. in test/Trafo1.ext on line 9 'setSmName(old.smName)'
> org.openarchitectureware.expression.EvaluationException: Couldn't find
> operation 'setSmName(String)' for sm2::StateMachineType. in
> test/Trafo1.ext on line 9 'setSmName(old.smName)'
> at
> org.openarchitectureware.expression.ast.OperationCall.evalua teInternal(OperationCall.java:136)
>
> at
> org.openarchitectureware.expression.ast.Expression.evaluate( Expression.java:42)
>
> at
> org.openarchitectureware.xtend.ast.CreateExtensionStatement. evaluate(CreateExtensionStatement.java:77)
>
> at
> org.openarchitectureware.expression.ast.OperationCall.evalua teInternal(OperationCall.java:94)
>
> at
> org.openarchitectureware.expression.ast.Expression.evaluate( Expression.java:42)
>
> at
> org.openarchitectureware.expression.ast.OperationCall.evalua teInternal(OperationCall.java:62)
>
> at
> org.openarchitectureware.expression.ast.Expression.evaluate( Expression.java:42)
>
> at
> org.openarchitectureware.xtend.ast.CreateExtensionStatement. evaluate(CreateExtensionStatement.java:77)
>
> at
> org.openarchitectureware.expression.ast.OperationCall.evalua teInternal(OperationCall.java:71)
>
> at
> org.openarchitectureware.expression.ast.Expression.evaluate( Expression.java:42)
>
> at
> org.openarchitectureware.expression.ExpressionFacade.evaluat e(ExpressionFacade.java:62)
>
> at
> org.openarchitectureware.expression.ExpressionFacade.evaluat e(ExpressionFacade.java:51)
>
> at
> org.openarchitectureware.xtend.XtendComponent.invokeInternal (XtendComponent.java:89)
>
> at
> org.openarchitectureware.workflow.lib.AbstractWorkflowCompon ent2.invoke(AbstractWorkflowComponent2.java:38)
>
> at
> org.openarchitectureware.workflow.container.CompositeCompone nt.internalInvoke(CompositeComponent.java:81)
>
> at
> org.openarchitectureware.workflow.container.CompositeCompone nt.invoke(CompositeComponent.java:69)
>
> at
> org.openarchitectureware.workflow.WorkflowRunner.executeWork flow(WorkflowRunner.java:236)
>
> at
> org.openarchitectureware.workflow.WorkflowRunner.run(Workflo wRunner.java:177)
>
> at
> org.openarchitectureware.workflow.WorkflowRunner.main(Workfl owRunner.java:126)
>
>
>
> when using this transformation:
>
> import sm2;
>
> extension test::io;
> create DocumentRoot this duplicate(DocumentRoot s):
> setStatemachine( s.statemachine.duplicate() );
>
> create StateMachineType this duplicate(StateMachineType old):
> setSmName( old.smName );
>
> for a EMF model created from the following XML Schema:
>
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <xs:schema xmlns:tns="http://www.tu-harburg.de/~soet1085/SM"
> xmlns:xs="http://www.w3.org/2001/XMLSchema"
> elementFormDefault="qualified"
> targetNamespace="http://www.tu-harburg.de/~soet1085/SM">
> <xs:element name="statemachine" type="tns:StateMachineType"/>
> <xs:complexType name="StateMachineType"> <xs:attribute name="smName"
> type="xs:string"/>
> </xs:complexType> </xs:schema>
>
>
> Can you please help?
> I cannot figure out why:(
>
> Thanks
> elena
>
>


--
Need professional support on Xtext or Xtend?
Mail to: xtext (at) itemis.com
Twitter : @svenefftinge
Blog : blog.efftinge.de
Re: oAW error :'Couldn't find operation....' [message #578261 is a reply to message #376309] Sat, 24 March 2007 16:05 Go to previous message
Sven Efftinge is currently offline Sven Efftinge
Messages: 1761
Registered: July 2009
Senior Member
Hi elena,

ecore meta models derived from schema use XML data types not the ecore
data types. The ecore adapter used in oAW can only map ecore data types
(ecore::EString, ecore::EInt, etc.) to oaw's data types (String,
Integer, etc.).
Make sure that your ecore meta model uses ecore::EString (and the like)

regards,
Sven

elena t wrote:
> Hi,
>
>
> I get a runtime error :'Couldn't find operation....'
>
> 0 INFO -
> ------------------------------------------------------------ --------------------------
>
> 50 INFO - openArchitectureWare 4.1.1, Build v20061128
> 50 INFO - (c) 2005, 2006 openarchitectureware.org and contributors
> 50 INFO -
> ------------------------------------------------------------ --------------------------
>
> 50 INFO - running workflow:
> D:/_eclipse3.2/workspace1/oaw4.demo.emf.datamodel.xtend/src/ workflow1.oaw
> 50 INFO - 821 INFO - xmiParser: file 'default.sm' => slot 'rootElement'
> 1091 INFO - XtendComponent: executing 'test::Trafo1'
> 1352 ERROR - Couldn't find operation 'setSmName(String)' for
> sm2::StateMachineType. in test/Trafo1.ext on line 9 'setSmName(old.smName)'
> org.openarchitectureware.expression.EvaluationException: Couldn't find
> operation 'setSmName(String)' for sm2::StateMachineType. in
> test/Trafo1.ext on line 9 'setSmName(old.smName)'
> at
> org.openarchitectureware.expression.ast.OperationCall.evalua teInternal(OperationCall.java:136)
>
> at
> org.openarchitectureware.expression.ast.Expression.evaluate( Expression.java:42)
>
> at
> org.openarchitectureware.xtend.ast.CreateExtensionStatement. evaluate(CreateExtensionStatement.java:77)
>
> at
> org.openarchitectureware.expression.ast.OperationCall.evalua teInternal(OperationCall.java:94)
>
> at
> org.openarchitectureware.expression.ast.Expression.evaluate( Expression.java:42)
>
> at
> org.openarchitectureware.expression.ast.OperationCall.evalua teInternal(OperationCall.java:62)
>
> at
> org.openarchitectureware.expression.ast.Expression.evaluate( Expression.java:42)
>
> at
> org.openarchitectureware.xtend.ast.CreateExtensionStatement. evaluate(CreateExtensionStatement.java:77)
>
> at
> org.openarchitectureware.expression.ast.OperationCall.evalua teInternal(OperationCall.java:71)
>
> at
> org.openarchitectureware.expression.ast.Expression.evaluate( Expression.java:42)
>
> at
> org.openarchitectureware.expression.ExpressionFacade.evaluat e(ExpressionFacade.java:62)
>
> at
> org.openarchitectureware.expression.ExpressionFacade.evaluat e(ExpressionFacade.java:51)
>
> at
> org.openarchitectureware.xtend.XtendComponent.invokeInternal (XtendComponent.java:89)
>
> at
> org.openarchitectureware.workflow.lib.AbstractWorkflowCompon ent2.invoke(AbstractWorkflowComponent2.java:38)
>
> at
> org.openarchitectureware.workflow.container.CompositeCompone nt.internalInvoke(CompositeComponent.java:81)
>
> at
> org.openarchitectureware.workflow.container.CompositeCompone nt.invoke(CompositeComponent.java:69)
>
> at
> org.openarchitectureware.workflow.WorkflowRunner.executeWork flow(WorkflowRunner.java:236)
>
> at
> org.openarchitectureware.workflow.WorkflowRunner.run(Workflo wRunner.java:177)
>
> at
> org.openarchitectureware.workflow.WorkflowRunner.main(Workfl owRunner.java:126)
>
>
>
> when using this transformation:
>
> import sm2;
>
> extension test::io;
> create DocumentRoot this duplicate(DocumentRoot s):
> setStatemachine( s.statemachine.duplicate() );
>
> create StateMachineType this duplicate(StateMachineType old):
> setSmName( old.smName );
>
> for a EMF model created from the following XML Schema:
>
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <xs:schema xmlns:tns="http://www.tu-harburg.de/~soet1085/SM"
> xmlns:xs="http://www.w3.org/2001/XMLSchema"
> elementFormDefault="qualified"
> targetNamespace="http://www.tu-harburg.de/~soet1085/SM">
> <xs:element name="statemachine" type="tns:StateMachineType"/>
> <xs:complexType name="StateMachineType"> <xs:attribute name="smName"
> type="xs:string"/>
> </xs:complexType> </xs:schema>
>
>
> Can you please help?
> I cannot figure out why:(
>
> Thanks
> elena
>
>


--
Need professional support on Xtext or Xtend?
Mail to: xtext (at) itemis.com
Twitter : @svenefftinge
Blog : blog.efftinge.de
Previous Topic:oAW: Not able to access the screencasts on the oAW site
Next Topic:[GEMS] Custom Figures
Goto Forum:
  


Current Time: Mon Sep 01 09:47:17 EDT 2014

Powered by FUDForum. Page generated in 0.03021 seconds