From: Mike B. <mb...@Ga...> - 2003-06-05 11:31:13
|
Are you using 1.2.2 (the last released version) or the code in CVS? Tom Hamilton wrote: > I have tried different approaches - like calling form.submit() in the > test harness - but this just does a javascript form submit(). If I do > this I get a different exception. > > java.lang.NullPointerException > at > org.apache.commons.httpclient.HttpMethodBase.getResponseBody( > HttpMethodBase.java:670) This is happening inside commons-httpclient and it's quite possible that this is already fixed. The version of commons-httpclient that ships with HtmlUnit-1.2.2 is alpha3. They recently released beta1 which fixes a large number of bugs and may fix this problem. Please try commons-httpclient-beta1 which can be found at: http://www.ibiblio.org/maven/commons-httpclient/jars/commons-httpclient-2.0-beta1.jar -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |