简体   繁体   English

休眠会话错误

[英]hibernate session error

I use hibernate for persistence. 我使用休眠来保持持久性。 when i call the method : 当我调用该方法时:

Session s = getCurrentSession();
s.flush();

i geth the following message : 我得到以下消息:

[toString() unavailable - no suspended threads] [toString()不可用-没有暂停的线程]

and it just stops running after the s.flush() method. 并且它只是在s.flush()方法之后停止运行。

I'm using JBoss IDE 1.6 and the message is shown within the Variables window when debugging. 我使用的是JBoss IDE 1.6,调试时该消息显示在“变量”窗口中。

do you have any idea how to solve that ? 你有解决的办法吗?

Doesn't the message say it all: toString() is unavailable as no thread is suspended. 消息不是全部说明:toString()不可用,因为没有线程被挂起。 If you want to see the actual value in your debugging view, well, suspend a thread. 如果要在调试视图中查看实际值,请暂停线程。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM