Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » OCLinEcore : PermGen space error(OCLinEcore : PermGen space error)
OCLinEcore : PermGen space error [message #989292] Wed, 05 December 2012 14:50 Go to next message
Dan Simkins is currently offline Dan SimkinsFriend
Messages: 38
Registered: December 2012
Member
Hi,

I have created a very simple ecore model (see below) to which I have added a constraint using OCLinEcore.

package ControlModel : control = '<URI>'
{
class Node
{
attribute Description : String[?] = '' { ordered };
invariant DescCheck: Description <> null and Description.size() > 5;
}
}

If I create a dynamic instance of 'Node', all is well and the validation will correctly report null or Description <= 5.

If I create a generator model, generate all code and run the resultant editor (as an eclipse application), on attempting to validate, I receive the following error, and the validation hangs:

Exception in thread "ModalContext" java.lang.OutOfMemoryError: PermGen space
java.lang.OutOfMemoryError: PermGen space
java.lang.OutOfMemoryError: PermGen space
java.lang.OutOfMemoryError: PermGen space
java.lang.OutOfMemoryError: PermGen space
......

I am using Eclipse Juno SR1 on Windows 7 64 bit.

Any pointers would be really appreciated.

Regards

Dan

Re: OCLinEcore : PermGen space error [message #989326 is a reply to message #989292] Wed, 05 December 2012 16:18 Go to previous messageGo to next message
Dan Simkins is currently offline Dan SimkinsFriend
Messages: 38
Registered: December 2012
Member
All,

Problem as PermGen space (I guess the answer was in the error message!!). Implemented suggestion as per http://www.eclipse.org/forums/index.php/m/898737/

Now validation works as expected.

D
Re: OCLinEcore : PermGen space error [message #989338 is a reply to message #989326] Wed, 05 December 2012 17:11 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

Well solved. There is at least one Bugzilla open bemoaning the failure
of Eclipse to ship a solution to the JVM inadequacy. Most modeling
projects have this guaranteed failure for new users.

Regards

Ed Willink

On 05/12/2012 16:18, Dan Simkins wrote:
> All,
>
> Problem as PermGen space (I guess the answer was in the error
> message!!). Implemented suggestion as per
> http://www.eclipse.org/forums/index.php/m/898737/
>
> Now validation works as expected.
>
> D
Previous Topic:how to access to association end in code
Next Topic:OCL parsing without a model?
Goto Forum:
  


Current Time: Thu Apr 25 11:47:01 GMT 2024

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

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

Back to the top