Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » FeatureMap gone awry
FeatureMap gone awry [message #430400] Tue, 19 May 2009 23:18 Go to next message
John T.E. Timm is currently offline John T.E. TimmFriend
Messages: 161
Registered: July 2009
Senior Member
I have model that uses a feature map to group various features as per the
"EMF FeatureMaps" whitepaper. There are approximately 30 features that
represent a large choice group and are collected and grouped by a single
feature map. I am now running into a situation, where when I attempt to
add items to one of the features that is derived from the feature map I
get the following exception:

Exception in thread "main" java.lang.OutOfMemoryError
at java.util.ArrayList.newElementArray(ArrayList.java:94)
at java.util.ArrayList.growAtEnd(ArrayList.java:366)
at java.util.ArrayList.add(ArrayList.java:156)
at
org.eclipse.emf.ecore.util.FeatureMapUtil$BasicValidator.<init >(FeatureMapUtil.java:1597)
at
org.eclipse.emf.ecore.util.FeatureMapUtil.getValidator(Featu reMapUtil.java:1713)
at org.eclipse.emf.ecore.util.BasicFeatureMap.<init>
...

Has anyone seen an exception like this when using feature maps for
grouping?

Thanks,

JT
Re: FeatureMap gone awry [message #430401 is a reply to message #430400] Tue, 19 May 2009 23:39 Go to previous messageGo to next message
John T.E. Timm is currently offline John T.E. TimmFriend
Messages: 161
Registered: July 2009
Senior Member
It looks like the constructor for FeatureMapUtil.BasicValidator is getting
into an infinite loop for some reason.

JT
Re: FeatureMap gone awry [message #430417 is a reply to message #430401] Wed, 20 May 2009 10:24 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
JT,

I'd have to see an example of this. I've seen very large model with
hundreds of choices that don't have this problem, so there must be
something more unusual going on than there being 30 choices.


John T.E. Timm wrote:
> It looks like the constructor for FeatureMapUtil.BasicValidator is
> getting into an infinite loop for some reason.
>
> JT
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:EMF models extensions and redefinitions
Next Topic:Multi-valued properties window
Goto Forum:
  


Current Time: Thu Mar 28 13:19:27 GMT 2024

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

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

Back to the top