`
dky_rl
  • 浏览: 66963 次
  • 性别: Icon_minigender_1
  • 来自: 黑龙江
社区版块
存档分类
最新评论

Session is closed !

阅读更多
@Transactional在struts2+spring+jpa+hibernate
今天修改程序,我用定时器定时调用action中的一个方法。
发现一个exception:
javax.persistence.PersistenceException: org.hibernate.SessionException: Session is closed!
原因是一个service method,or service class 没有添加annotation:@Transactional

    @Transactional
    public class UserService  {
    }

分享到:
评论

相关推荐

    利用Spring来管理Hibernate完整例子

    其中Hibernate每次都需要手动创建SessionFactory,Session,手动开启提交关闭事务。而这一切操作完全是由Spring来代替。使持久层更加方便,使开发人员减少持久层操作,把注意力放到业务上。

    BO 错误消息及解决方法

    BO错误消息一览表,内含大部分BO错误消息,及解决方法。

    Tab Session Manager-crx插件

    ● Save and restore windows and tabs● Manage sessions with name and tags● Auto save when window is closed● Auto save at regular intervals● Import and export sessions● Compatibility with Firefox ...

    ChromeDriver v2.24 for windows linux and mac (2016-09-09)

    Resolved issue 1497: GetLog fails when the current window is closed [['OS-All', 'Pri-0']] Resolved issue 1495: ChromeDriver crashes with "Check failed: !page_load_strategy_.empty()" [['OS-All', 'Pri-0...

    解决virtualbox不能为虚拟电脑打开一个新任务。

    解决virtualbox 不能为虚拟电脑打开一个新任务、修复Genymotion打不开问题 解决virtualbox 不能为虚拟电脑打开一个新任务、修复Genymotion打不开问题

    ftptree 实现FTP连接,文件查看等

    If an Internet session object cannot be initialized based on the configuration specified in the registry entry HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings, an error ...

    微软内部资料-SQL性能优化3

    To make use of either more or less strict isolation levels in applications, locking can be customized for an entire session by setting the isolation level of the session with the SET TRANSACTION ...

    微软内部资料-SQL性能优化2

    A 32-bit process is normally limited to addressing 2 gigabytes (GB) of memory, or 3 GB if the system was booted using the /3G boot switch even if there is more physical memory available. By leveraging...

    数位板压力测试

    This specification is intended to be an open standard, and as such the text and information contained herein may be freely used, copied, or distributed without compensation or licensing restrictions. ...

    IEInspector.HTTP.Analyzer.Full.Edition.v5.3.1.Incl.Keymaker-ZWT[程序文件+注册机]

    Add-on Edition: An add-on that integrates into the lower part of your IE or Firefox window and can be opened/closed from the IE or Firefox toolbar. It can only capture and view ...

    计算机网络第六版答案

    21. The maximum emission rate is 500 packets/sec and the maximum transmission rate is 350 packets/sec. The corresponding traffic intensity is 500/350 =1.43 > 1. Loss will eventually occur for each ...

    Sublime Text 3 (Build 3143)

    Fixed flash-of-white that could occur when the auto complete window is closed Disable scroll animation when animation_enabled is false in settings Files can now be renamed when only the case has ...

    i-vector的工具箱

    In case Matlab is not installed or Matlab license is not available (for instance on a computer cluster), we provide standalone executables that can be used in conjunction with the Matlab Compiler ...

    simplewebrtc.js webrtc网页视频开发帮助工具

    self.emit('ready', connection.socket.sessionid); self.sessionReady = true; self.testReadiness(); }); connection.on('message', function (message) { var existing = self.pcs[message.from]; if ...

    TLS协议的本地实现Forge.zip

     sessionCache: {},  // supported cipher suites in order of preference  cipherSuites: [  forge.tls.CipherSuites.TLS_RSA_WITH_AES_128_CBC_SHA,  forge.tls.CipherSuites.TLS_RSA_WITH_AES_...

    3G CDMA2000 Wireless system engineering - Yang S. (2004)

    13.3.3 Session Layer 205 13.3.4 Connection Layer 206 Contents xi 13.3.5 Security Layer 210 13.3.6 Concluding Remarks 210 References 211 CHAPTER 14 1xEV-DO Radio Interface: Forward Link 213 14.1 ...

    Delphi7.1 Update

    visit the Borland Registered User web site to obtain a localized readme file that may contain important late- breaking information not included in this readme file.IMPORTANT: Delphi must be closed ...

    Linux FTP服务配置

     idle_session_timeout=600 设置默认的断开不活跃session的时间  data_connection_timeout=120 设置数据传输超时时间  nopriv_user=ftpsecure 运行vsftpd需要的非特权系统用户默认是nobody  async_abor_...

Global site tag (gtag.js) - Google Analytics