Fixed
Details
Assignee
Eduardo JMEduardo JMReporter
Eduardo JMEduardo JMDue date
Dec 31, 2017Components
Affects versions
Priority
Major
Details
Details
Assignee
Eduardo JM
Eduardo JMReporter
Eduardo JM
Eduardo JMDue date
Dec 31, 2017
Components
Affects versions
Priority
Created December 21, 2017 at 5:03 PM
Updated November 13, 2019 at 8:17 AM
Resolved November 23, 2018 at 10:53 PM
We have an Idempiere 4.1 install, running with Oracle DB 11.
Our idempiere logs registered many times the error:
-----------> StatementUtils.log: Statement close FAILED. [8405]
java.sql.SQLRecoverableException: Closed Connection; State=08003; ErrorCode=17008
Searching in the web, found a solution in c3p0 documentation with a not mapped by Idempiere param: statementCacheNumDeferredCloseThreads
You can get more information about this at:
http://www.mchange.com/projects/c3p0/#statementCacheNumDeferredCloseThreads
So, as discussed with Carlos on skype, we added the treatment to this parameter in the class org.compiere.db.DB_Oracle, and generate a patch with the c3p0 recomendation.
But, in our case, the log continue to write the warning. We obtain the best results with the combination with the patch and changing the properties (IdleConnectionTestPeriod, MaxIdleTimeExcessConnections and MaxIdleTime) in pool.properties file to lower values.