Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » What is wrong(Argument types mismatch for module element dynamicModuleQuery70.)
What is wrong [message #1386055] Fri, 13 June 2014 08:59 Go to next message
Wilbert Alberts is currently offline Wilbert AlbertsFriend
Messages: 102
Registered: June 2010
Senior Member
Hi,

During the development of an editor I encountered some strange errors that I'm looking for how to debug. I get a bunch of errors associated with an exception like:

org.eclipse.acceleo.engine.AcceleoEvaluationException: Argument types mismatch for module element dynamicModuleQuery70.
	at org.eclipse.acceleo.engine.generation.AcceleoEngine.doEvaluate(AcceleoEngine.java:401)
	at org.eclipse.acceleo.engine.generation.AcceleoEngine.evaluate(AcceleoEngine.java:203)
	at org.eclipse.acceleo.engine.service.AcceleoEvaluationTask.evaluateQuery(AcceleoEvaluationTask.java:122)
	at org.eclipse.acceleo.engine.service.AcceleoEvaluationTask.call(AcceleoEvaluationTask.java:291)
	at org.eclipse.sirius.common.acceleo.mtl.business.internal.interpreter.DynamicAcceleoModule.evaluate(DynamicAcceleoModule.java:531)
	at org.eclipse.sirius.common.acceleo.mtl.business.internal.interpreter.AcceleoMTLInterpreter.internalEvaluate(AcceleoMTLInterpreter.java:1182)
	at org.eclipse.sirius.common.acceleo.mtl.business.internal.interpreter.AcceleoMTLInterpreter.evaluate(AcceleoMTLInterpreter.java:602)
	at org.eclipse.sirius.tools.internal.interpreter.ODesignGenericInterpreter.evaluate(ODesignGenericInterpreter.java:149)
	at org.eclipse.sirius.business.internal.logger.RuntimeLoggerInterpreterImpl.evaluate(RuntimeLoggerInterpreterImpl.java:55)
	at org.eclipse.sirius.business.internal.helper.task.operations.SetValueTask.execute(SetValueTask.java:96)
	at org.eclipse.sirius.business.internal.helper.task.ExecuteToolOperationTask.executeTask(ExecuteToolOperationTask.java:103)
	at org.eclipse.sirius.business.internal.helper.task.ExecuteToolOperationTask.executeTask(ExecuteToolOperationTask.java:114)
	at org.eclipse.sirius.business.internal.helper.task.ExecuteToolOperationTask.executeTask(ExecuteToolOperationTask.java:114)
	at org.eclipse.sirius.business.internal.helper.task.ExecuteToolOperationTask.executeTask(ExecuteToolOperationTask.java:114)
	at org.eclipse.sirius.business.internal.helper.task.ExecuteToolOperationTask.executeTask(ExecuteToolOperationTask.java:114)
	at org.eclipse.sirius.business.internal.helper.task.ExecuteToolOperationTask.execute(ExecuteToolOperationTask.java:88)
	at org.eclipse.sirius.business.api.helper.task.TaskExecutor.operation(TaskExecutor.java:95)
	at org.eclipse.sirius.business.api.helper.task.TaskExecutor.execute(TaskExecutor.java:65)
	at org.eclipse.sirius.tools.api.command.SiriusCommand.doExecute(SiriusCommand.java:80)


My point is that I understand the message but I've absolutely no clue to which expression it applies to.

Where should I start looking?

Greetings,
Wilbert.
Re: What is wrong [message #1386095 is a reply to message #1386055] Fri, 13 June 2014 12:00 Go to previous messageGo to next message
Laurent Redor is currently offline Laurent RedorFriend
Messages: 62
Registered: July 2009
Member
Hi,

You can add a breakpoint on AcceleoEvaluationException and then go to
the SetValueTask.execute (l.96 on your stack) and watch the value of
op.valueExpression field (this is the expression in question).

For your information, the concerned expression is a "Value Expression"
field of a "Set Value" operation.

Regards,

Laurent

Le 13/06/2014 10:59, Wilbert Alberts a écrit :
> Hi,
>
> During the development of an editor I encountered some strange errors
> that I'm looking for how to debug. I get a bunch of errors associated
> with an exception like:
>
> org.eclipse.acceleo.engine.AcceleoEvaluationException: Argument types
> mismatch for module element dynamicModuleQuery70.
> at
> org.eclipse.acceleo.engine.generation.AcceleoEngine.doEvaluate(AcceleoEngine.java:401)
>
> at
> org.eclipse.acceleo.engine.generation.AcceleoEngine.evaluate(AcceleoEngine.java:203)
>
> at
> org.eclipse.acceleo.engine.service.AcceleoEvaluationTask.evaluateQuery(AcceleoEvaluationTask.java:122)
>
> at
> org.eclipse.acceleo.engine.service.AcceleoEvaluationTask.call(AcceleoEvaluationTask.java:291)
>
> at
> org.eclipse.sirius.common.acceleo.mtl.business.internal.interpreter.DynamicAcceleoModule.evaluate(DynamicAcceleoModule.java:531)
>
> at
> org.eclipse.sirius.common.acceleo.mtl.business.internal.interpreter.AcceleoMTLInterpreter.internalEvaluate(AcceleoMTLInterpreter.java:1182)
>
> at
> org.eclipse.sirius.common.acceleo.mtl.business.internal.interpreter.AcceleoMTLInterpreter.evaluate(AcceleoMTLInterpreter.java:602)
>
> at
> org.eclipse.sirius.tools.internal.interpreter.ODesignGenericInterpreter.evaluate(ODesignGenericInterpreter.java:149)
>
> at
> org.eclipse.sirius.business.internal.logger.RuntimeLoggerInterpreterImpl.evaluate(RuntimeLoggerInterpreterImpl.java:55)
>
> at
> org.eclipse.sirius.business.internal.helper.task.operations.SetValueTask.execute(SetValueTask.java:96)
>
> at
> org.eclipse.sirius.business.internal.helper.task.ExecuteToolOperationTask.executeTask(ExecuteToolOperationTask.java:103)
>
> at
> org.eclipse.sirius.business.internal.helper.task.ExecuteToolOperationTask.executeTask(ExecuteToolOperationTask.java:114)
>
> at
> org.eclipse.sirius.business.internal.helper.task.ExecuteToolOperationTask.executeTask(ExecuteToolOperationTask.java:114)
>
> at
> org.eclipse.sirius.business.internal.helper.task.ExecuteToolOperationTask.executeTask(ExecuteToolOperationTask.java:114)
>
> at
> org.eclipse.sirius.business.internal.helper.task.ExecuteToolOperationTask.executeTask(ExecuteToolOperationTask.java:114)
>
> at
> org.eclipse.sirius.business.internal.helper.task.ExecuteToolOperationTask.execute(ExecuteToolOperationTask.java:88)
>
> at
> org.eclipse.sirius.business.api.helper.task.TaskExecutor.operation(TaskExecutor.java:95)
>
> at
> org.eclipse.sirius.business.api.helper.task.TaskExecutor.execute(TaskExecutor.java:65)
>
> at
> org.eclipse.sirius.tools.api.command.SiriusCommand.doExecute(SiriusCommand.java:80)
>
>
> My point is that I understand the message but I've absolutely no clue to
> which expression it applies to.
>
> Where should I start looking?
>
> Greetings,
> Wilbert.
>
Re: What is wrong [message #1532198 is a reply to message #1386095] Sat, 27 December 2014 22:25 Go to previous messageGo to next message
Xue Liu is currently offline Xue LiuFriend
Messages: 12
Registered: May 2014
Junior Member
Hi,

I have the same problem when I restart the Eclipse and create or open the old representation file. It is not reasonable, because when I design the viewpoint specification model, everything is fine. It gives me the error message only after a restart.

Besides, I can not find the AcceleoEvaluationException in the "Add Java Exception Breakpoint" Dialog. Also I can not locate the source code listed in the stack. Does any one have some idea about it ?
Regards

[Updated on: Sat, 27 December 2014 22:26]

Report message to a moderator

Re: What is wrong [message #1536514 is a reply to message #1532198] Tue, 30 December 2014 08:47 Go to previous messageGo to next message
Pierre-Charles David is currently offline Pierre-Charles DavidFriend
Messages: 148
Registered: July 2009
Senior Member
Le 27/12/2014 23:25, Xue Liu a écrit :
> Besides, I can not find the AcceleoEvaluationException in the "Add Java
> Exception Breakpoint" Dialog. Also I can not locate the source code
> listed in the stack. Does any one have some idea about it?

This class comes from Acceleo itself (not directly from Sirius). The
corresponding plug-in should be installed if you have installed the
Sirius support for Acceleo expressions.

Can you check if the following plug-ins are indeed available in your
environement?

- org.eclipse.sirius.common.acceleo.mtl and
org.eclipse.sirius.common.acceleo.mtl.ide: the Sirius bridge for Acceleo
expressions.
- org.eclipse.acceleo.engine: the Acceleo plug-in where
AcceleoEvaluationException is defined.
org.eclipse.sirius.common.acceleo.mtl depends on it, so if you have
installed the bridge, it should be available.

Regards.

--
Pierre-Charles David - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: What is wrong [message #1550720 is a reply to message #1536514] Wed, 07 January 2015 07:24 Go to previous message
Xue Liu is currently offline Xue LiuFriend
Messages: 12
Registered: May 2014
Junior Member
HI,

The problem is solved for me after I create a new "Runntime Eclispe application".
Previous Topic:[Solved]How to bind edges only in the container
Next Topic:Class diagram representation
Goto Forum:
  


Current Time: Sat Jan 31 07:27:18 GMT 2015

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

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