Yes I am using Struts framework. (Struts 1.2.9) I am using velocity tools also.
About thread safety, I am not sure how can I check this. But as this is an existing and big application, it must be working in thread safe manner.. Could you suggest me how to look for the thread safety for velocity files? -----Original Message----- From: Nathan Bubna [mailto:nbu...@gmail.com] Sent: Tuesday, April 28, 2009 7:21 PM To: Velocity Users List Subject: Re: How to resolve error : Left side ($menuCurrentPage) of '==' operation has null value. If a reference, it may not be in the context. Operation not possible. Without knowing a lot more about how you populate and use your context, i'm really not sure. Are you using a framework? If so, which one? Are you using VelocityTools at all? Are you sure your context is being handled in a threadsafe manner? Velocity looks for references in the context it is given. It's mostly up to you to make sure that context is properly filled and used. On Mon, Apr 27, 2009 at 8:35 PM, RUPALI <r.gup...@mpstechnologies.com> wrote: > Thanks Nathan, > But how is this possible that the error goes on page refresh? And its not > just for variable $menuCurrentPage, randomly the message generates for any > variable and resolves on page refresh..?? > > > > -----Original Message----- > From: Nathan Bubna [mailto:nbu...@gmail.com] > Sent: Monday, April 27, 2009 7:17 PM > To: Velocity Users List > Subject: Re: How to resolve error : Left side ($menuCurrentPage) of '==' > operation has null value. If a reference, it may not be in the context. > Operation not possible. > > Yes, it is a Velocity message. it means that in the template being > processed at that time, there is no value for th $menuCurrentPage > variable when it is being used in an #if( $menuCurrentPage == > 'something' ) comparison (or an #elseif). > > On Sun, Apr 26, 2009 at 11:33 PM, RUPALI <r.gup...@mpstechnologies.com> > wrote: >> Hi, >> >> >> >> The problem I am facing is that occasionally Resourcenotfound/unable to >> parse file error comes on the velocity pages which go on page refresh. >> >> >> >> >> >> The following error is shown in the server logs before the logging of >> resourcenotfound exception: >> >> Left side ($menuCurrentPage) of '==' operation has null value. If a >> reference, it may not be in the context. Operation not possible. >> >> >> >> Is something related to the velocity engine here? >> >> The problem is occurring right now only on staging site of my website, and >> thankfully is not on Live. But it is happening a lot of times on staging > and >> is becoming troublesome >> >> >> >> Thanks, >> >> Rupali >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org > For additional commands, e-mail: user-h...@velocity.apache.org > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org > For additional commands, e-mail: user-h...@velocity.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org For additional commands, e-mail: user-h...@velocity.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org For additional commands, e-mail: user-h...@velocity.apache.org