Just trying to help by throwing out ideas here...

Could there be a versioning problem with this class:
servletunit.struts.StrutsRequestWrapper?

Is there a call to StrutsRequestWrapper.getRequestURL() on line 35 of
JForumRequestProcessor.java? (in your processPreprocess method)

The server is saying that's an abstract method. Can you access this method
on your superclass and create a new StringBuffer around it instead? Is there
a version of the class that has a default implementation for this method?

B

> -----Original Message-----
> From: Pavlikus [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, June 24, 2004 11:49 AM
> To: Struts Users Mailing List
> Subject: 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:[EMAIL PROTECTED]
> >> Sent: Thursday, June 24, 2004 11:20 AM
> >> To: [EMAIL PROTECTED]
> >> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to