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?
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
Post a Comment