title: Internal Exception: java.sql.SQLException: Connection closed Error Code: 0
body: <p>We have a java web application deployed into payara 164 application Server.<br>
  Host machine is a debian 9.3 server, used database is a mariadb-server-10.1, java version is "1.8.0_131". </p>
  
  <p>Recently we are facing some problems related to Connection.  </p>
  
  <p>During a longer procedure, the invocation of the below query:</p>
  
  <pre><code>UPDATE mailboxes SET mb_last_receive_run = ? WHERE (mb_id = ?)
  bind =&gt; [2 parameters bound]
  </code></pre>
  
  <p>yields:</p>
  
  <blockquote>
    <p>Internal Exception: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operations allowed after connection closed.
    Error Code: 0</p>
  </blockquote>