Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » Evaluate operations defined via OCLinEcore in the interactive console yields OCLinvalid
Evaluate operations defined via OCLinEcore in the interactive console yields OCLinvalid [message #733983] Thu, 06 October 2011 08:18 Go to next message
mardo  is currently offline mardo Friend
Messages: 1
Registered: October 2011
Junior Member
Hi,

I
- downloaded a fresh indigo

- replayed the tutorial help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.ocl.doc%2Fhelp%2FTutorials.html until "Helper Features and Operations" (execute isAvailable() in the OCL interactive console).



- got the result OCLInvalid as indicated in the screenshot below.


The stacktrace in the errorlog is:

java.lang.NullPointerException
at org.eclipse.ocl.ecore.EcoreEvaluationEnvironment.getJavaMethodFor(EcoreEvaluationEnvironment.java:225)
at org.eclipse.ocl.ecore.EcoreEvaluationEnvironment.getJavaMethodFor(EcoreEvaluationEnvironment.java:1)
at org.eclipse.ocl.AbstractEvaluationEnvironment.callOperation(AbstractEvaluationEnvironment.java:177)
at org.eclipse.ocl.ecore.EcoreEvaluationEnvironment.callOperation(EcoreEvaluationEnvironment.java:164)
at org.eclipse.ocl.ecore.EcoreEvaluationEnvironment.callOperation(EcoreEvaluationEnvironment.java:1)
at org.eclipse.ocl.EvaluationVisitorImpl.visitOperationCallExp(EvaluationVisitorImpl.java:208)
at org.eclipse.ocl.ecore.impl.OperationCallExpImpl.accept(OperationCallExpImpl.java:390)
at org.eclipse.ocl.AbstractEvaluationVisitor.visitExpression(AbstractEvaluationVisitor.java:248)
at org.eclipse.ocl.OCL.evaluate(OCL.java:456)



Link to Bugzilla: bugs.eclipse.org/bugs/show_bug.cgi?id=360072
  • Attachment: Untitled.png
    (Size: 62.33KB, Downloaded 109 times)

[Updated on: Thu, 06 October 2011 08:19]

Report message to a moderator

Re: Evaluate operations defined via OCLinEcore in the interactive console yields OCLinvalid [message #734593 is a reply to message #733983] Sat, 08 October 2011 19:48 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 4188
Registered: July 2009
Senior Member
Hi

See

https://bugs.eclipse.org/bugs/show_bug.cgi?id=360072

for discussion of problem of using Indigo Pivot/Xtext delegates in the non-Xtext console.

Regards

Ed Willink


On 06/10/2011 09:18, mardo wrote:
> Hi,
>
> I
> - downloaded a fresh indigo
>
> - replayed the tutorial help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.ocl.doc%2Fhelp%2FTutorials.html until "Helper Features and Operations"
>
> - got the result OCLInvalid as indicated in the screenshot below.
>
>
> The stacktrace in the errorlog is:
>
> java.lang.NullPointerException
> at org.eclipse.ocl.ecore.EcoreEvaluationEnvironment.getJavaMethodFor(EcoreEvaluationEnvironment.java:225)
> at org.eclipse.ocl.ecore.EcoreEvaluationEnvironment.getJavaMethodFor(EcoreEvaluationEnvironment.java:1)
> at org.eclipse.ocl.AbstractEvaluationEnvironment.callOperation(AbstractEvaluationEnvironment.java:177)
> at org.eclipse.ocl.ecore.EcoreEvaluationEnvironment.callOperation(EcoreEvaluationEnvironment.java:164)
> at org.eclipse.ocl.ecore.EcoreEvaluationEnvironment.callOperation(EcoreEvaluationEnvironment.java:1)
> at org.eclipse.ocl.EvaluationVisitorImpl.visitOperationCallExp(EvaluationVisitorImpl.java:208)
> at org.eclipse.ocl.ecore.impl.OperationCallExpImpl.accept(OperationCallExpImpl.java:390)
> at org.eclipse.ocl.AbstractEvaluationVisitor.visitExpression(AbstractEvaluationVisitor.java:248)
> at org.eclipse.ocl.OCL.evaluate(OCL.java:456)
>
Previous Topic:OCL Interpreter on ecore M1
Next Topic:describe mutiple classes as OCL
Goto Forum:
  


Current Time: Sun Dec 21 01:15:56 GMT 2014

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

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