Iam trying to aquire exclusive lock with refresh on request object and getting following exception which is logged to console. Iam catching exception in HibernateException catch block, Iam not logging in catch block, but Iam stll seeing the log error message on console. Is there anyway to turn off log message.
[b]Hibernate version:[/b]
2.1.7
[b]Mapping documents:[/b]
[b]Code between sessionFactory.openSession() and session.close():[/b]
try {
session.refresh(requestObject, Mode.UPGRADE_NOWAIT);
return true;
} catch (HibernateException e) {
}
[b]Full stack trace of any exception that occurs:[/b]
<Nov 17, 2004 10:13:47 AM PST> <Error> <MAS Logger> <000000> <net.sf.hibernate.util.JDBCExceptionReporter: could not load: [com.Request#78]
java.sql.SQLException: ORA-00054: resource busy and acquire with NOWAIT specified
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:579)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1894)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteDescribe(TTC7Protocol.java:831)
at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2496)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2840)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:608)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:536)
at weblogic.jdbc.wrapper.PreparedStatement.executeQuery(PreparedStatement.java:80)
at net.sf.hibernate.impl.BatcherImpl.getResultSet(BatcherImpl.java:87)
at net.sf.hibernate.loader.Loader.getResultSet(Loader.java:875)
at net.sf.hibernate.loader.Loader.doQuery(Loader.java:269)
at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:133)
at net.sf.hibernate.loader.Loader.loadEntity(Loader.java:911)
at net.sf.hibernate.loader.Loader.loadEntity(Loader.java:931)
at net.sf.hibernate.loader.SimpleEntityLoader.load(SimpleEntityLoader.java:58)
at net.sf.hibernate.persister.EntityPersister.load(EntityPersister.java:419)
at net.sf.hibernate.impl.SessionImpl.refresh(SessionImpl.java:2183)
[b]Name and version of the database you are using:[/b]
oracle9i
[b]The generated SQL (show_sql=true):[/b]
[b]Debug level Hibernate log excerpt:[/b]
|