进入toLostList方法...
2011-1-13 17:23:42 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet default threw exception
org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.weiao.crm.entity.CstCustomer#HK0000000002]
at org.hibernate.impl.SessionFactoryImpl$1.handleEntityNotFound(SessionFactoryImpl.java:377)
at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:145)
at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:195)
at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:103)
at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:878)
at org.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java:846)
at org.hibernate.type.EntityType.resolveIdentifier(EntityType.java:557)
at org.hibernate.type.EntityType.resolve(EntityType.java:379)
at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:116)
......
省略多行...
<c:if test="${sessionScope.lostList==null}">
<script>window.location.href = "lost!toLostList.action"</script>
</c:if>
public String toLostList(){
System.out.println("进入toLostList方法...");
ArrayList lostList = null;
if(lost!=null){
lostList = lostBiz.find(lost);
}else{
lostList = lostBiz.find();
}
if(lostList.size() > 0){
session.put("lostList", lostList);
return "list";
}
return "error";
}