Information about CircularExpansionException [message #698828] |
Wed, 20 July 2011 06:11  |
Eclipse User |
|
|
|
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 09:45  |
Eclipse User |
|
|
|
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
>>
>>
|
|
|
Powered by
FUDForum. Page generated in 0.04356 seconds