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

javascript - Why Selenium can't find an element that is graphically visible -

java - How to compare two classes -

mysql - Gateway Timeout Error on Insert 70000 record using Hibernate in Java -