This discussion is archived
1 Reply Latest reply: May 11, 2012 4:19 AM by RenévanWijk RSS

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

user43525 Newbie
Currently Being Moderated
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(
     at weblogic.jdbc.wrapper.JTAConnection.checkConnection(
     at weblogic.jdbc.wrapper.ResultSet.preInvocationHandler(
     at weblogic.jdbc.wrapper.ResultSet_oracle_jdbc_driver_OracleResultSetImpl.getObject(Unknown Source)
     at org.apache.beehive.controls.system.jdbc.ResultSetHashMap.<init>(
     at org.apache.beehive.controls.system.jdbc.RowToHashMapMapper.mapRowToReturnType(

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?


  • Correct Answers - 10 points
  • Helpful Answers - 5 points