java.lang.IllegalStateException: getAttribute: Session already invalidat

以下的都是什么原因造成的啊?第一条:2005-01-26 11:58:03 StandardWrapperValve[jsp]: Servlet.service() f

以下的都是什么原因造成的啊?  第一条:
  2005-01-26 11:58:03 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
  java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Invalid operation for the current cursor position.
  第二条:
  2005-01-26 12:14:29 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
  java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Object has been closed.
  第三条:
  2005-01-26 14:47:27 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
  java.lang.OutOfMemoryError
  第四条:
  2005-01-26 16:13:29 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
  java.lang.IllegalStateException: getAttribute: Session already invalidated
 

------解决方法--------------------------------------------------------
1cursur任务完成后要next
  2操作前关闭了资源。
  3取的数据庞大
  4session被invalidated两次。

------解决方法--------------------------------------------------------
1.ResultSet中游标已经移到结束行。如果还想操作,可以first()。
  2.connection/statement/ResultSet之类数据库资源已经关闭,你的代码中还想操作关闭的连接或资源。
  3.可能的情况比较多。资源(connection或其它的)没有释放完;循环操作中产生的数据过大;