Invalid state, the Connection object is closed.
来源:互联网 发布:程序员 显示器 知乎 编辑:程序博客网 时间:2024/06/10 20:04
解决了此问题:
如果数据库有值,用hibernate查询会报错:
Invalid state, the Connection object is closed.没数据的话,不报错。
原因:
某字段设了char(32),保存汉子,如果10几个汉子了,会导致hibernate认为取出的是不全数据,进而关闭连接。
换成varchar(300)就好了。
0 0
- Invalid state, the Connection object is closed.
- The requested operation is invalid on a closed state
- 出现Invalid operation. The connection is closed.这种错误
- The saved state file is invalid (VERR_SSM_INTEGRITY_FOOTER). Delete the saved state and try agai
- The remote host closed the connection. The error code is 0x80072746.
- The BUFFERDIR connection property is invalid 异常处理
- Invalid cursor state & Instance name is invalid
- Qtcpsocket The remote host closed the connection
- java.sql.SQLException: Connection is closed
- Local Area connection is invalid
- The state information is invalid for this page and might be corrupted.
- nodejs mysql Error: Connection lost The server closed the connection
- The specified JTAG device (in the Target Connection tab) is invalid.
- The underlying connection was closed错误
- The underlying connection was closed错误
- SqliteOpenHelper the connection pool has been closed
- Operation is not valid due to the current state of the object.
- Operation is not valid due to the current state of the object.
- Guided Image Filtering学习笔记
- 嵌入式 BT656/BT601/BT1120协议差异小结
- erlang Mod:module_info
- php 的session操作使用
- 【HDU】4597 Play Game(DP+记忆化搜索)
- Invalid state, the Connection object is closed.
- 情商
- 换个方式学编程
- 七周七数据库一
- JAVA foreach和普通for循环是否需要判断为null
- 研究Android即时聊天、实时语音通话、实时对讲机等的必备知识Audio
- 去掉UItableview header(footer)view 黏性(sticky)
- LTE:Constellation Mapping
- OpenGL Shader Key Points (3)