Weird Error: CLOSE BY CLIENT STACK TRACE

后端 未结 3 878
孤城傲影
孤城傲影 2020-12-29 05:11

Hi all I have a web application which use Hibernate to retrieve data in the database. And in the server side some execeptions come out at regular interval. Below is the exce

3条回答
  •  醉话见心
    2020-12-29 05:56

    Hibernate connection close work like this way so you no need remove the destroy-method="close".
    
    public synchronized void close() throws SQLException
    {
      close(null);
    }
    
    private void close(Throwable cause) throws SQLException
    {
    <--statement-->
    if(cause == null)
    {
     invalidatingException = NORMAL_CLOSE_PLACEHOLDER;
     if(logger.isLoggable(MLevel.FINEST))
     logger.log(MLevel.FINEST, this + " closed by a client.", new Exception("DEBUG -- CLOSE BY CLIENT STACK TRACE"));
    <--statement-->
    }
    

提交回复
热议问题