On 2/22/02 2:00 PM, "Stephane Bailliez" <[EMAIL PROTECTED]> wrote:
> > I think there is a bug in ASTStringLiteral (pure guess, it's getting late > here so I have to go). I'm having NPEs from time to time when putting > velocity in high load stress with 20 concurrent requests. > > in ASTStringLiteral::value(InternalContextAdapter) i quickly changed the log > to have the full stacktrace and output the literal. > > > It looks like child nodes are not initialized so I'm wondering if it is no > due to the if nodeTree == null that need to synchronized (yek !) or at least > it should be inited before being assigned, ie changed to: > > SimpleNode tree = rsvc.parse( br,context.getCurrentTemplateName() ); > > tree.init( context, rsvc ); > nodeTree = tree; > > I will do more testing by monday (throwing ThreadAlyzer) but this is my > first guess as of now so take this with the appropriate load of salt. :) I think your analysis is right. That code is susceptible to problems at high stress. (I wrote that...) I'll fix - can you test now? -- Geir Magnusson Jr. [EMAIL PROTECTED] System and Software Consulting The question is : What is a Mahnamahna? -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
