Ticket #92 (closed Bug: fixed)
产品库动态 forward() 异常
| Reported by: | chenchongqi | Owned by: | yuanhuoqing |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | 产品库 | Version: | 产品库3.0 |
| Keywords: | Cc: | ||
| Due Date: | 08/03/2012 |
Description
日志里很多这样的异常抛出:
java.lang.IllegalStateException?: forward() not allowed after buffer has committed.
我检查了一下,这个地方是否漏了个return?
Matcher matcher=PATTERN_REGEX_COMMENT.matcher(requestUrl);
if(matcher.find(0)){
StringBuffer newUrl=new StringBuffer(String.valueOf(fileNameMap.get("comment")));
newUrl.append(matcher.group(1));
newUrl.append(StringUtils.isEmpty(matcher.group(2))?"":"&type="+matcher.group(2));
newUrl.append(StringUtils.isEmpty(matcher.group(4))?"":"&flag="+matcher.group(4));
newUrl.append(StringUtils.isEmpty(matcher.group(6))?"":"&cmtid="+matcher.group(6));
newUrl.append(StringUtils.isEmpty(matcher.group(8))?"":"&pageNo="+matcher.group(8));
logger.info("pdlib 1 doFilter:newurl="+newUrl.toString());
httpRequest.getRequestDispatcher(newUrl.toString()).forward(httpRequest, httpResponse);
}
Change History
Note: See
TracTickets for help on using
tickets.
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)