hi,
I wanted to test my app (using Xwork/Webwork2) under extreme load
conditions. So I hit the server (Jetty) with a few concurrent clients
(grinder3.0) and from time to time I get this Exception, which I never got
before when testing single requests (see below).
And why is it calling something Jasper/JSP related if I'm not using any kind
of JSP and only Velocity?
I understand that for velocity tags to work in JSP you might need some
integration, but If I don't want to use any JSP related stuff, should I be
forced to go throught Jsp Writers and all that?
Maybe that's why Webwork1.x is faster that ww2.... !?
I tested in the same conditions an older version of Webwork2 (from CVS, before
beta2) and this Exception doesn't happen at all.
So I checked what was the difference, and I found out that in that old
VelocityResult (that doesn't throw this Exception) it's not used the
javax.servlet.jsp.PageContext to merge the template (this is a change
introduced in version 1.3 by Patrick), and it just writes it directly to
response.getWriter().
So, why is this being thrown when using the ...jsp.PageContext.
I assume that it probably depends on the JSP engine used.
Has anybody tested this new VelocityResult under high concurrency conditions
when using JASPER (which I believe is provided with TOMCAT & JETTY) ?
Very curious about this one, since it IS a problem I want to eliminate.
Thanks for any feedback at all..
18:36:01,243 ERROR ServletDispatcher:187 - Could not execute action
java.lang.NullPointerException
at
org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:375)
at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:321)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:94)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:109)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:94)
at
org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:344)
at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:153)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:271)
at org.apache.velocity.Template.merge(Template.java:296)
at
com.opensymphony.webwork.dispatcher.VelocityResult.doExecute(VelocityResult.java:89)
at
com.opensymphony.webwork.dispatcher.WebWorkResultSupport.execute(WebWorkResultSupport.java:53)
at
com.opensymphony.xwork.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:274)
at
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:192)
at
com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:37)
at
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:170)
at
com.opensymphony.xwork.DefaultActionProxy.execute(DefaultActionProxy.java:116)
at
com.opensymphony.webwork.dispatcher.ServletDispatcher.serviceAction(ServletDispatcher.java:182)
at
com.opensymphony.webwork.dispatcher.ServletDispatcher.service(ServletDispatcher.java:162)
--
"Everywhere is walking distance if you have the time" - Steven Wright
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork