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 -

delphi - Take screenshot in webcam using VFrames in Console Application -

c++ - Migration from QScriptEngine to QJSEngine -