Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » Re: integrating ocl with emf
Re: integrating ocl with emf [message #22053] Wed, 09 May 2007 11:00 Go to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Aashu,

I'm forwarding your question to the OCL newsgroup by adding it to the
"to" list in the reply. Please use that newsgroup for asking OCL in the
future.


aashu aggarwal wrote:
> i m trying to integrate my emf model with ocl
> in validator class functions defined in ecore are getting created
>
> my code is:
> .......
> OCLExpression oclExpr=null;
> <b>IOCLHelper helper=HelperUtil.createOCLHelper()</b>
> helper.setContext(EmployeePackage.Literals.EMPLOYEE);
> ...........
>
> when the highlighted line is executed program exits
>
> can anyone help me ?
> what is the reason for this?
>
> TIA
> aashu
>
Re: integrating ocl with emf [message #22272 is a reply to message #22053] Wed, 09 May 2007 12:34 Go to previous message
Eclipse UserFriend
Originally posted by: cdamus.ca.ibm.com

Hi, Aashu,

What do you mean by "program exits"? Are you running in an Eclipse
instance, or stand-alone? Do you see any exception in the Eclipse log?
(or, if stand-alone, a stack trace on the console?)

Without any diagnostic information, I won't be able to help much. I can't
think of a good reason why that statement should cause a stable JVM
implementation to abort, even if (for example) a class couldn't be loaded.

Cheers,

Christian


Ed Merks wrote:

> Aashu,
>
> I'm forwarding your question to the OCL newsgroup by adding it to the
> "to" list in the reply. Please use that newsgroup for asking OCL in the
> future.
>
>
> aashu aggarwal wrote:
>> i m trying to integrate my emf model with ocl
>> in validator class functions defined in ecore are getting created
>>
>> my code is:
>> .......
>> OCLExpression oclExpr=null;
>> <b>IOCLHelper helper=HelperUtil.createOCLHelper()</b>
>> helper.setContext(EmployeePackage.Literals.EMPLOYEE);
>> ...........
>>
>> when the highlighted line is executed program exits
>>
>> can anyone help me ?
>> what is the reason for this?
>>
>> TIA
>> aashu
>>
Previous Topic:error in creating expression using EMF enumeration
Next Topic:Invariant disallowing element usage
Goto Forum:
  


Current Time: Fri Apr 26 15:08:02 GMT 2024

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

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

Back to the top