Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Buckminster » Information about CircularExpansionException
Information about CircularExpansionException [message #698828] Wed, 20 July 2011 10:11 Go to next message
Axel Guckelsberger is currently offline Axel GuckelsbergerFriend
Messages: 226
Registered: July 2009
Senior Member
Hi all,

during materialisation the following appears at a random point (meaning not
for a certain package):

ERROR [0018] :
org.eclipse.buckminster.core.common.model.CircularExpansionException:
${modelName}


Some searching lead me to the
org.eclipse.buckminster.core.common.model.ExpandingProperties#checkedExpand
method:

if (recursionGuard > MAX_NESTING_DEPTH) // 64
throw new CircularExpansionException((String) topValue);


Is this a known problem in 3.7 or did anybody see this before? Thank you in
advance for any information about this behaviour.

Regards,
Axel
Re: Information about CircularExpansionException [message #698845 is a reply to message #698828] Wed, 20 July 2011 10:58 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3229
Registered: July 2009
Senior Member
Hi Axel,

Property expansion is recursive so a string ${model} that when expanded, contains the string ${model}, will lead to an
endless recursion. Buckminster traps that and throws a CircularExpansionException. The circularity can be indirect (a
string expanding to a string that in turn expands to a string etc.).

This shouldn't be a problem unless you introduce such circularity with some property and I don't think it's related to
changes in 3.7.

HTH,
- thomas


On 2011-07-20 12:11, Axel Guckelsberger wrote:
> Hi all,
>
> during materialisation the following appears at a random point (meaning not
> for a certain package):
>
> ERROR [0018] :
> org.eclipse.buckminster.core.common.model.CircularExpansionException:
> ${modelName}
>
>
> Some searching lead me to the
> org.eclipse.buckminster.core.common.model.ExpandingProperties#checkedExpand
> method:
>
> if (recursionGuard> MAX_NESTING_DEPTH) // 64
> throw new CircularExpansionException((String) topValue);
>
>
> Is this a known problem in 3.7 or did anybody see this before? Thank you in
> advance for any information about this behaviour.
>
> Regards,
> Axel
>
>
Re: Information about CircularExpansionException [message #698930 is a reply to message #698845] Wed, 20 July 2011 13:45 Go to previous message
Axel Guckelsberger is currently offline Axel GuckelsbergerFriend
Messages: 226
Registered: July 2009
Senior Member
Hi Thomas,

thanks for your explaination.
The problem was that the cspex file defined another action (intended for
another build job). This action uses a property to delegate a given var to
an ant task. Renaming the expected var (so that var and property are named
differently) fixed this problem.

Greetings
Axel


Thomas Hallgren wrote:

> Hi Axel,
>
> Property expansion is recursive so a string ${model} that when expanded,
> contains the string ${model}, will lead to an endless recursion.
> Buckminster traps that and throws a CircularExpansionException. The
> circularity can be indirect (a string expanding to a string that in turn
> expands to a string etc.).
>
> This shouldn't be a problem unless you introduce such circularity with
> some property and I don't think it's related to changes in 3.7.
>
> HTH,
> - thomas
>
>
> On 2011-07-20 12:11, Axel Guckelsberger wrote:
>> Hi all,
>>
>> during materialisation the following appears at a random point (meaning
>> not for a certain package):
>>
>> ERROR [0018] :
>> org.eclipse.buckminster.core.common.model.CircularExpansionException:
>> ${modelName}
>>
>>
>> Some searching lead me to the
>>
org.eclipse.buckminster.core.common.model.ExpandingProperties#checkedExpand
>> method:
>>
>> if (recursionGuard> MAX_NESTING_DEPTH) // 64
>> throw new CircularExpansionException((String) topValue);
>>
>>
>> Is this a known problem in 3.7 or did anybody see this before? Thank you
>> in advance for any information about this behaviour.
>>
>> Regards,
>> Axel
>>
>>
Previous Topic:Git Auto-Fetch not working
Next Topic:Path to current target platform
Goto Forum:
  


Current Time: Thu Nov 27 16:36:45 GMT 2014

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

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