When Selenium has finished running and it is posting back the results to our servlet, we are getting a null pointer exception from tomcat (see stack dump below). It appears to be related to a size limit when the post content length goes > 2MB. It is technically a tomcat issue but you might consider implementing a solution to this that perhaps limits the data being passed (or have we missed something?).

 

Our selenium test suit only has 212 Tests and 5142 Commands at the moment. This is growing and before the end of our current project we expect it to be around 100 times bigger than now.

 

Tech stack:

-----------

Selenium 0.5

Tomcat 5.5.9

Firefox 1.0.4

 

Stack trace and dump of request header details:

===============================================

Header name is: host

With value: akl-devo4.corp.peace.com:8080 Header name is: user-agent With value: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 Header name is: accept With value: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5

Header name is: accept-language

With value: en-us,en;q=0.5

Header name is: accept-encoding

With value: gzip,deflate

Header name is: accept-charset

With value: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Header name is: keep-alive With value: 300 Header name is: connection With value: keep-alive Header name is: referer With value: http://akl-devo4.corp.peace.com:8080/tam/selenium/TestRunner.html?auto=true&resultsUrl=postResults&test=peace

Header name is: cookie

With value: JSESSIONID=42F53A5ECD04C304F7362B2AD7CE2A78; JSESSIONID=54A54F64C175E771C5EA2CF3D6D9202F

Header name is: content-type

With value: application/x-www-form-urlencoded Header name is: content-length With value: 2127319

2005-08-31 13:38:31,811 ERROR [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/tam].[postResults]] - <Servlet.service() for servlet postResults threw exception> java.lang.NullPointerException

        at org.apache.catalina.connector.Request.parseParameters(Request.java:2340)

        at org.apache.catalina.connector.Request.getParameterNames(Request.java:1038)

        at org.apache.catalina.connector.RequestFacade.getParameterNames(RequestFacade.java:359)

        at com.peace.core.test.postResults.doPost(postResults.java:41)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

.....

 

_______________________________________________
Selenium-users mailing list
Selenium-users@lists.public.thoughtworks.org
http://lists.public.thoughtworks.org/mailman/listinfo/selenium-users

Reply via email to