我在Tomcat上有一个页面第一次打开时出现这个异常,
哪位高人知道产生的全体原因!
IllegalStateException in: R(/jsp/ris/ReqInfoStatistic.jsp + null) C
urrent state = FLUSHED, new state = CODING
...全文
542打赏收藏
有哪位老大能说一说 IllegalStateException ,
我在Tomcat上有一个页面第一次打开时出现这个异常, 哪位高人知道产生的全体原因! IllegalStateException in: R(/jsp/ris/ReqInfoStatistic.jsp + null) C urrent state = FLUSHED, new state = CODING
其实是一个servlet
代码如下:
/* ============================================================================
* POP-Station Software
* Copyright (c) 2004-, Modern Co., Ltd. All rights reserved.
* ============================================================================
* ClassName: ReqInfoServlet
*
* Function : this servlet is order to switch and deal with request data
*
* History :
*
* 2004/04/15 Xiqiang Yin: [PPST256]Create class
* ============================================================================
*/
package imo.popst.ris;
// ActionModel am = new ActionModel();
ActionModel am = null;
am = (ActionModel)session.getAttribute("ConFigModel");
// System.out.println(MN+"model is "+am);
if(am == null){
log.error(MN+"ConfFigModel is null inside session");
return;
}
nextPage = am.getParam1();
log.debug(MN+" Action Type is:" + am.getType());
if((am.getType()).equals("REQINFOLIST")){
getReqInfoList(request,response,am);
}
else if ((am.getType()).equals ("REQINFOVIEW")){
viewReqInfo(request);
}
else if ((am.getType()).equals ("REQINFOPAGE")){
pagingReqInfo(request);
}
else if ((am.getType()).equals ("REQINFOLISTSORT")){
nextPage = am.getParam1();
}
else if ((am.getType()).equals("REQINFOCREATE") ) {
reqInfoCreate(request);
}
else if ((am.getType()).equals("REQINFOSAVEMODIFICATION")) {
reqInfoSaveModification(request);
}
else if ((am.getType()).equals("NOASSOCIATEDREQUESTS")) {
notAssoRequests(request);
}
else if ((am.getType()).equals("REQINFOSTATISTIC")) {
statisticReqInfo(request);
}
else if ((am.getType()).equals("REQCONVERTTOORDER")) {
convertReqToOrder(request);
}
else if ((am.getType()).equals("ASSOCIATEDORDERINFO")) {
assoOrderInfo(request);
}
else if ((am.getType()).equals("CUTASSOCIATION") ) {
cutAssociation(request);
}
else if ((am.getType()).equals("NOASSOCIATEDORDERS") ) {
notAssoOrder(request);
}
else if ((am.getType()).equals("ASSOCIATEORDER")) {
associateOrder(request);
}
else if ((am.getType()).equals ("REQINFOEDIT")) {//Edit certain Request.
ReqInfoModel model = editReqInfo(request);
ReqInfoDbacc reqDb = new ReqInfoDbacc ();
if (reqDb.canBeEdited(model)) {
nextPage = am.getParam1();
}
else {//need to redirect to note page
log.error(MN+"/Error: The request can't be edited");
return;
}
}//if((am.getType()).equals ("REQINFOEDIT"))
//Redirect to page
log.info(MN+"ActionType is:" + am.getType() + ".\nAnd nextPage is:"+nextPage);
if (nextPage == null) {
nextPage = "";
}
if (nextPage.equals("")) {
log.error(MN+"/Error: Can't get next step's page. Please check the configuration");
return;
}
sc.getRequestDispatcher(nextPage).forward(request,response);
}//doPost