Hello,

I will raise a new Jira issue after some investigation. I will put some
error messages inside FileResourceLoader and spring VelocityView.doRender
(which obtains template object), to check if resource.data is null or empty.

Currently the work-around I have is to reload template in a
VelocityView.doRender() if node is null or empty and to return always 'true'
by ResourceLoader.isSourceModified() to avoid caching templates which can be
empty because of error.

The template that the problem is related to, has many multi-level parse()
directives and some custom toolboxes. So parsing operation is quite complex.

Bye,
Jessica


Nathan Bubna wrote:
> 
> Would you open a new JIRA issue for this?
> https://issues.apache.org/jira/browse/VELOCITY
> 
> On Mon, Mar 9, 2009 at 12:10 PM, Jessica Mong <[email protected]>
> wrote:
>>
>> Hello,
>>
>> I synchronized the Velocity engine and still the same problem, also
>> upgraging to Velocity 1.6.1 doesn't help.
>>
>> Bye,
>> Jessisa
>>
>>
>> Nathan Bubna wrote:
>>>
>>> Hmm. There were a number of concurrency bugs cleaned up between 1.4
>>> and 1.6.x.  (like VELOCITY-383, VELOCITY-610, VELOCITY-24 and a few
>>> others).  If you are able to move to 1.6, you may well find this has
>>> already been fixed.
>>>
>>> On Sat, Mar 7, 2009 at 4:38 PM, Jessica Mong
>>> <[email protected]> wrote:
>>>> Hello
>>>>
>>>> Velocity: 1.4
>>>> Velocity-tools:1.4
>>>>
>>>> What:
>>>> The node object inside template has no children after reload, despite
>>>> of
>>>> the template file on disk is not empty. No exceptions are thrown.
>>>>
>>>> When happens:
>>>> While template file on disk is updating (overwrite with a copy
>>>> operation),
>>>> template is reloaded by ResourceManagerImpl (Velocity engine is serving
>>>> a
>>>> huge amount of requests).
>>>>
>>>> Many thanks for any help.
>>>>
>>>> Regards.
>>>> Jessica
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [email protected]
>>> For additional commands, e-mail: [email protected]
>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Template-load-parse-error---empty-node-returned-tp22393174p22416457.html
>> Sent from the Velocity - Dev mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Template-load-parse-error---empty-node-returned-tp22393174p22424918.html
Sent from the Velocity - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to