1 Reply Latest reply: May 11, 2012 6:19 AM by René van Wijk RSS

    Connection closed. Is JdbcControl's connection thread-safe?

      I am running a web application with beehive controls on WebLogic Server 10.3.
      I access a customized java control which also accesses jdbcControl in a thread Class. Sometimes , when the jdbcControl's method costs a little more time, following exception occurs.
      java.sql.SQLException: Connection closed
           at weblogic.jdbc.wrapper.JTAConnection.getXAConn(JTAConnection.java:187)
           at weblogic.jdbc.wrapper.JTAConnection.checkConnection(JTAConnection.java:64)
           at weblogic.jdbc.wrapper.ResultSet.preInvocationHandler(ResultSet.java:66)
           at weblogic.jdbc.wrapper.ResultSet_oracle_jdbc_driver_OracleResultSetImpl.getObject(Unknown Source)
           at org.apache.beehive.controls.system.jdbc.ResultSetHashMap.<init>(ResultSetHashMap.java:67)
           at org.apache.beehive.controls.system.jdbc.RowToHashMapMapper.mapRowToReturnType(RowToHashMapMapper.java:58)

      It sounds like that there is another thread uses the JDBC Connection and closes it . Isn't JdbcControl's connection thread-safe? Or just some configuration to set to avoid this?