java - Connection issue while connecting to HANA DB via JDBC -


i connecting hana db via ngdbc.jar. connection made after running query 3-4 times connection hana db lost. when restart java server again works 3-4 times. can help?check error description here

error msg-

warn  [org.hibernate.util.jdbcexceptionreporter] (http--0.0.0.0-8080-6) sql error: -708, sqlstate: 08006  error [org.hibernate.util.jdbcexceptionreporter] (http--0.0.0.0-8080-6) data receive failed [connection reset].  info  [com.ultimatix.controller.metricscontroller] (http--0.0.0.0-8080-6) context setmonthfreezedateorg.hibernate.exception.jdbcconnectionexception: not execute query  error [org.hibernate.transaction.jdbctransaction] (http--0.0.0.0-8080-6) jdbc rollback failed: com.sap.db.jdbc.exceptions.jdbc40.sqlnontransientconnectionexception: connection database server lost; check server , network status [system error: socket closed] 

i can see using hibernate based on log.

can elaborate little bit on stack?

as @rc said, should consider connection pooling instead of opening direct connections if doing in "java" server.

may keeping connection open long , times out.

these guesses, until can share logs or sample code.

one more thing, related ngjdbc driver only, there "reconnect" connection property default set false.

regards


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -