struts和tomcat时,tomcat总是提示:IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted;

fangta 2004-06-10 03:36:16

public class InfoDbForm extends ActionForm {
//private InfoDb infodb1 = new InfoDb();

private InfoDb infodb=new InfoDb();
public void setDatasetname(String datasetname){
infodb.setDatasetname(datasetname);

//this.infodb1 = infodb;
}
public String getDatasetname(){
return (infodb.getDatasetname());
}
public void setInfo(InfoDb info){
this.infodb=info;
//this.infodb1 = infodb;
}
public InfoDb getInfo(){
return (this.infodb);
//return (this.infodb1);
}
// This method is called with every request. It resets the Form
// attribute prior to setting the values in the new request.
public void reset(ActionMapping mapping, HttpServletRequest request){
//this.infodb1 = new InfoDb();
}
public ActionErrors validate(ActionMapping arg0,HttpServletRequest arg1){
ActionErrors errors=new ActionErrors();
return errors;
}
}
...全文
213 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
kui 2004-06-20
  • 打赏
  • 举报
回复
很可能是“InfoDb infodb=new InfoDb();”不成功,
检查一下InfoDb,如果是进行数据操作,则重点看一下数据库连接是否正确。
fangta 2004-06-10
  • 打赏
  • 举报
回复
tomcat总是提示:严重: Exception loading sessions from persistent storage
java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: com.issue.database.InfoDb,不知道是什么原因。

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧