You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Pavlikus <pa...@bk.ru> on 2004/06/24 20:48:48 UTC

Re[2]: StrursTestCase -- AbstractMethodError

BM> Did you call super() in your overridden method?
Why? TilesRequestProcessor (my super) - have not overload
processPerpropcess, and RequestProcessor.processPerpropcess
simply returns true...

But even when I call super first - exception was the same.



>> -----Original Message-----
>> From: Pavlikus [mailto:pavlikus@bk.ru] 
>> Sent: Thursday, June 24, 2004 11:20 AM
>> To: user@struts.apache.org
>> Subject: StrursTestCase -- AbstractMethodError
>> 
>> 
>> Hi all.
>> When I override the processPreprocess method of 
>> RequestProcessor and my tests starts to fail.
>> 
>> java.lang.AbstractMethodError:  
>> servletunit.struts.StrutsRequestWrapper.getRequestURL()Ljava/l
>> ang/StringBuffer;
>> at 
>> jforum.utils.JForumRequestProcessor.processPreprocess(JForumRe
>> questProcessor.java:35)
>> 
>> A portion of RequestProcessor:
>> protected boolean processPreprocess(HttpServletRequest request,
>>    HttpServletResponse response) {
>> 
>> String path = StringUtils.substringAfter(
>>      request.getRequestURL().toString(), 
>> request.getContextPath()); ...
>> 
>> Test: (extends CactusStrutsTestCase) 
>> setRequestPathInfo("/Login"); addRequestParameter("login", 
>> "existent-login"); addRequestParameter("password", 
>> "password"); actionPerform(); ...
>> 
>> Can you explain me what happen?



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org