weblogic Cause: org.hibernate.exception.GenericJDBCException: Connection closed

时间:2015-04-14 21:30:53   收藏:0   阅读:322

    现场的weblogic报错,导致数据无法下发,报错信息如下:

    ### Error opening session.  Cause: org.hibernate.exception.GenericJDBCException: Connection closed
    ### Cause: org.hibernate.exception.GenericJDBCException: Connection closed
    com.gg.corm.exceptions.PersistenceException: 
    ### Error opening session.  Cause: org.hibernate.exception.GenericJDBCException: Connection closed
    ### Cause: org.hibernate.exception.GenericJDBCException: Connection closed

       连接被关闭,我觉得有两种问题,一是weblogic有设置非活动超时时间导致,二是Oracle数据库sqlnet.ora中的超时设置导致。

      之前写过java.sql.SQLRecoverableException: IO 错误: Socket closed ,非活动超时时间在数据源-->连接池-->高级中设置,设置为300,如果还报这种错,还需要设大,直到不报错,当然,最好是优化功能。


  

原文:http://blog.csdn.net/stevendbaguo/article/details/45047835

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!