java - Some queries causes BBDD Closed connection -


i have web app deployed on jboss eap 6 uses hibernate access sql server database.

every time specific register error:

com.microsoft.sqlserver.jdbc.sqlserverexception: connection closed

search other register works fine. restarting jboss seems solve problem. can register data without problem.

what causing exception register? should focus on code? on network? on datasources definition? on db configuration?

there many reasons, offten:

  1. look @ code, maybe call close() method
  2. check out connection string (ntlmv2?)
  3. check out ms sql server , setting, db servers looking not active sessions , closing them.

Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -