DriverManagerConnectionPoolConnection not closed, check your code!

DriverManagerConnectionPoolConnection not closed, check your code!
I keep getting these, both from custom jdbc calls (finally {close res, stmt, con} ALWAYS) as well as on CMP entity beans.... Not always, but periodicly! ... Running OC4J9.0.4.0.1 ...
Suggestions ???

Sorry Steven Button
I did not mean to offend any one, but don't you go through some frustrating moments when you feel you have tried all possible combinations and u need help from other techies and they do not respond, Once again I am sorry if I have offended anybody.
Here is my hardware/software in production
1) IBM AIX
2) Standalone OC4J 9.0.4.0.0
3) JDK 1.4.2_07
4) Database 10.1.0.2.0
I have also set the following debug flags for the JVM,
-Djdbc.connection.debug=true and
-Ddatasource.verbose=true
Yesterday one interesting thing happened
For some reason our database server connection from application server went down for a few minutes.
After the network connection was restored, in the admin console for OC4J I see more logical connections (Open JDBC Connections count(6) is more than initial pool size(5)).
When I saw the log file I see the same "Check your code" message. But one more interesting thing got logged thanks to "-Ddatasource.verbose=true", this flag will log the pool size of the connection pool in the application log file.
The number that got logged was the correct number of pool size(which is 5).
Example
My initial pool size was "5", the admin console showed the pool size after network failure as "6", which is wrong.
But the -Ddatasource.verbose=true logged the pool size as "5" which is correct.
Can anyone help me with respect to that?
Message for Avi Abrami
Here is the sample finally block we use through out the application code.
try {
} catch (Exception ex) {
// we log the error in the application log file.
} finally {
try
if (lobj_resultset != null)
lobj_resultset.close();
lobj_resultset = null;
} catch (Exception exrs)
try
if (lobj_stmt != null)
lobj_stmt.close();
lobj_stmt = null;
} catch (Exception exstmt)
try
if (lobj_conn != null)
lobj_conn.close();
lobj_conn = null;
} catch (Exception exconn)
As you can see the main catch block will log the appropriate errors encountered in the try block. Thanks for your suggestion, I will give it a try by not ignoring the catch block exceptions in the finally block.
There is one more think,
it is my understanding that if an 'Error' is raised like OutOfMemoryError rather than an Exception
like 'SQLException' then that will not get caught since I am using catch (Exception ex) and not catch (Throwable throw).
But even if I do not catch an 'Error', it is my belief that the finally block will still get executed.
So say the try block for some reason raises an OutOfMemoryError , since in my code I use catch (Exception ex), my code execution will go to finally block and not the catch block, that still should release the connection back to the pool should it not?.
Any help / advise is appreciated.
I have also raised a TAR with oracle and will keep this forum posted with what happens with that.
But, guys I really need help, suggestions, directions from u all.

Similar Messages

  • OrionCMTConnection not closed, check your code. OrionCMTConnection created

    Hi everybody, I have an application running in OAS 10g, this application generally works fine, but in the opmn log of my instance in found the next message :
    07/01/09 17:01:56 OrionCMTConnection not closed, check your code!
    07/01/09 17:01:56 Logical connection not closed, check your code!
    07/01/09 17:01:56 Created at:
    07/01/09 17:01:56 java.lang.Throwable: OrionCMTConnection created
    07/01/09 17:01:56 at com.evermind.sql.OrionCMTConnection.<init>(OrionCMTConnection.java:121)
    07/01/09 17:01:56 at com.evermind.sql.OrionCMTConnectionFinalize.<init>(OrionCMTConnectionFinalize.java:42)
    07/01/09 17:01:56 at com.evermind.util.ClassOptimizerFactory.getOrionCMTConnection(ClassOptimizerFactory.java:80)
    07/01/09 17:01:56 at com.evermind.sql.OrionCMTDataSource.getConnection(OrionCMTDataSource.java:237)
    07/01/09 17:01:56 at com.evermind.sql.OrionCMTDataSource.getConnection(OrionCMTDataSource.java:217)
    07/01/09 17:01:56 at view.base_control_maq.consulta_t_orden_produccion_cod(base_control_maq.java:1934)
    07/01/09 17:01:56 at control_maq._detalle__control__actividad._jspService(_detalle__control__actividad.java:280)
    07/01/09 17:01:56 at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    07/01/09 17:01:56 at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350)
    07/01/09 17:01:56 at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
    07/01/09 17:01:56 at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
    07/01/09 17:01:56 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    07/01/09 17:01:56 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
    07/01/09 17:01:56 at com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:121)
    07/01/09 17:01:56 at com.evermind.server.http.EvermindPageContext.include(EvermindPageContext.java:267)
    07/01/09 17:01:56 at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:99)
    07/01/09 17:01:56 at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:135)
    07/01/09 17:01:56 at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:760)
    07/01/09 17:01:56 at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:892)
    07/01/09 17:01:56 at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:462)
    07/01/09 17:01:56 at templetas.template._jspService(_template.java:68)
    07/01/09 17:01:56 at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    07/01/09 17:01:56 at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350)
    07/01/09 17:01:56 at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
    07/01/09 17:01:56 at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
    07/01/09 17:01:56 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    07/01/09 17:01:56 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
    07/01/09 17:01:56 at com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:121)
    07/01/09 17:01:56 at com.evermind.server.http.EvermindPageContext.include(EvermindPageContext.java:267)
    07/01/09 17:01:56 at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:99)
    07/01/09 17:01:56 at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:135)
    07/01/09 17:01:56 at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:760)
    07/01/09 17:01:56 at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:892)
    07/01/09 17:01:56 at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:462)
    07/01/09 17:01:56 at control_maq._control__actividad._jspService(_control__actividad.java:125)
    07/01/09 17:01:56 at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    07/01/09 17:01:56 at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350)
    07/01/09 17:01:56 at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
    07/01/09 17:01:56 at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
    07/01/09 17:01:56 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    07/01/09 17:01:56 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
    07/01/09 17:01:56 at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
    07/01/09 17:01:56 at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:222)
    07/01/09 17:01:56 at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)
    07/01/09 17:01:56 at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263)
    07/01/09 17:01:56 at org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:1001)
    07/01/09 17:01:56 at org.apache.struts.tiles.TilesRequestProcessor.internalModuleRelativeForward(TilesRequestProcessor.java:345)
    07/01/09 17:01:56 at org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.java:560)
    07/01/09 17:01:56 at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:209)
    07/01/09 17:01:56 at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
    07/01/09 17:01:56 at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
    07/01/09 17:01:56 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    07/01/09 17:01:56 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    07/01/09 17:01:56 at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
    07/01/09 17:01:56 at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:239)
    07/01/09 17:01:56 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
    07/01/09 17:01:56 at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
    07/01/09 17:01:56 at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
    07/01/09 17:01:56 at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
    07/01/09 17:01:56 at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
    07/01/09 17:01:56 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
    07/01/09 17:01:56 at java.lang.Thread.run(Thread.java:534)
    This error occurred with other java files too, but in the code apparently the jdbc connections are closed. I'm searching since a week the problem and different solutions in the forum but this does not apply for my problem, please help me.
    Regards
    Jeanette.

    Thanks Frances, but I set -Ddatasource.verbose=true and get some like this:
    Releasing connection com.evermind.sql.DriverManagerXAConnection@1cf6046 to pool (Pool size: 5)
    com.evermind.sql.OrionCMTDataSource@1a9a15f: Cache timeout, closing connection (Pool size: 4)
    com.evermind.sql.OrionCMTDataSource@1a9a15f: Cache timeout, closing connection (Pool size: 3)
    com.evermind.sql.OrionCMTDataSource@1a9a15f: Cache timeout, closing connection (Pool size: 2)
    com.evermind.sql.OrionCMTDataSource@1a9a15f: Cache timeout, closing connection (Pool size: 1)
    null: Releasing connection com.evermind.sql.DriverManagerXAConnection@6409e1 to pool (Pool size: 1)
    I suppose that some connections were closed well and others didn't close in the right form and use cache timeout.
    Nevertheless even now I don’t know how to correct the message of connection:
    07/01/11 18:31:44 OrionCMTConnection not closed, check your code!
    07/01/11 18:31:44 Logical connection not closed, check your code!
    07/01/11 18:31:44 Created at:
    07/01/11 18:31:44 java.lang.Throwable: OrionCMTConnection created
    07/01/11 18:31:44 at com.evermind.sql.OrionCMTConnection.<init>(OrionCMTConnection.java:121)
    07/01/11 18:31:44 at com.evermind.sql.OrionCMTConnectionFinalize.<init>(OrionCMTConnectionFinalize.java:42).........
    This time in the log I found other lines before the OrionCMTConnection….:
    null: Releasing connection com.evermind.sql.DriverManagerXAConnection@d35cb2 to pool (Pool size: 1)
    INFO - GenericFilterBean.init(118) | Initializing filter 'hibernateFilter'
    INFO - GenericFilterBean.init(143) | Filter 'hibernateFilter' configured successfully
    INFO - AbstractBeanFactory.getBean(219) | Creating shared instance of singleton bean 'sessionFactory'
    INFO - AbstractBeanFactory.getBean(219) | Creating shared instance of singleton bean 'sessionFactory'
    INFO - AbstractBeanFactory.getBean(219) | Creating shared instance of singleton bean 'dataSource'
    INFO - AbstractBeanFactory.getBean(219) | Creating shared instance of singleton bean 'dataSource'
    INFO - Environment.<clinit>(464) | Hibernate 3.0.5
    INFO - Environment.<clinit>(477) | hibernate.properties not found
    INFO - Environment.<clinit>(510) | using CGLIB reflection optimizer
    INFO - Environment.<clinit>(540) | using JDK 1.4 java.sql.Timestamp handling
    I'm totally disoriented now.. please help me
    Jane.

  • OrionCMTConnection not closed, check your code!

    10g
    datasource
    application
    java main
    Thread.start()
    java.lang.Throwable: OrionCMTConnection created
    at com.evermind.sql.OrionCMTConnection.<init>(OrionCMTConnection.java:47)
    at com.evermind.sql.OrionCMTDataSource.getConnection(OrionCMTDataSource.java:83)
    at DBM.connectDatabase(DBM.java:93)
    I can use single thread on datasource,but can't multithreading
    but can use multithreading on jdbc not datasource
    db config normal
    I think it's a oc4j bug on <datasource+multithreading>
    thanks

    user482784,
    Post the entire error message and stack trace you are getting, as well as the section of your code that is causing the error.
    What version of OC4J are you using?
    Are you using the OC4J embedded in JDeveloper?
    Are you using OC4J stand-alone?
    Are you using the OC4J in Oracle Application Server?
    What JDK version are you using?
    If you start threads within the code of the J2EE application that you have deployed to OC4J, then you usually need to launch OC4J with the "-userThreads" option.
    You can try setting some debug properties.
    This may provide more information that may help you resolve your problem.
    Good Luck,
    Avi.
    Message was edited by:
    Avi Abrami

  • DriverManagerConnectionPoolConnection not closed with TopLink cahce synch

    We're using TopLink in several JVMs and have configured cache synchronisation over JMS. The JMS topic runs on Oracle AQ. Every once in a while we get the follwoing error from OC4J:
    DriverManagerConnectionPoolConnection not closed, check your code!
    Now this could be some connection we forget to close, but we do use TopLink for all our databasecommunication. I also see that every time it shows up the last steps of the stacktrace involves the TopLink cache and the AQ classes:
    05/05/12 11:42:27 com.evermind.sql.DriverManagerConnectionPoolConnection@10e3c8c was Created at:
    05/05/12 11:42:27 java.lang.Throwable: DriverManagerConnectionPoolConnection created
    05/05/12 11:42:27      at com.evermind.sql.DriverManagerConnectionPoolConnection.<init>(DriverManagerConnectionPoolConnection.java:29)
    05/05/12 11:42:27      at com.evermind.sql.DriverManagerPooledConnection.getNewLogicalConnection(DriverManagerPooledConnection.java:375)
    05/05/12 11:42:27      at com.evermind.sql.DriverManagerPooledConnection.getConnection(DriverManagerPooledConnection.java:121)
    05/05/12 11:42:27      at com.evermind.sql.OrionPooledDataSource.getConnection(OrionPooledDataSource.java:347)
    05/05/12 11:42:27      at com.evermind.sql.OrionCMTConnection.setConnection(OrionCMTConnection.java:191)
    05/05/12 11:42:27      at com.evermind.sql.OrionCMTConnection.intercept(OrionCMTConnection.java:141)
    05/05/12 11:42:27      at com.evermind.sql.OrionCMTConnection.setAutoCommit(OrionCMTConnection.java:479)
    05/05/12 11:42:27      at com.evermind.sql.ConnectionBCELProxy.setAutoCommit(ConnectionBCELProxy.java:105)
    05/05/12 11:42:27      at oracle.jms.AQjmsDBConnMgr.extraInit(AQjmsDBConnMgr.java:740)
    05/05/12 11:42:27      at oracle.jms.AQjmsDBConnMgr.getConnection(AQjmsDBConnMgr.java:568)
    05/05/12 11:42:27      at oracle.jms.AQjmsDBConnMgr.<init>(AQjmsDBConnMgr.java:367)
    05/05/12 11:42:27      at oracle.jms.AQjmsConnection.<init>(AQjmsConnection.java:246)
    05/05/12 11:42:27      at oracle.jms.AQjmsTopicConnectionFactory.createTopicConnection(AQjmsTopicConnectionFactory.java:214)
    05/05/12 11:42:27      at oracle.toplink.remote.jms.JMSClusteringService.createRemoteConnection(JMSClusteringService.java:67)
    05/05/12 11:42:27      at oracle.toplink.remote.jms.JMSClusteringService.retreiveRemoteSessions(JMSClusteringService.java:199)
    05/05/12 11:42:27      at oracle.toplink.remote.jms.JMSClusteringService.run(JMSClusteringService.java:177)
    05/05/12 11:42:27      at oracle.toplink.remote.jms.JMSClusteringService.initialize(JMSClusteringService.java:164)
    05/05/12 11:42:27      at oracle.toplink.remote.CacheSynchronizationManager.initialize(CacheSynchronizationManager.java:112)
    05/05/12 11:42:27      at oracle.toplink.publicinterface.DatabaseSession.login(DatabaseSession.java:534)
    05/05/12 11:42:27      at org.springframework.orm.toplink.SessionFactoryBean.afterPropertiesSet(Unknown Source)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1072)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:343)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:260)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:221)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveReference(AbstractAutowireCapableBeanFactory.java:980)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveValueIfNecessary(AbstractAutowireCapableBeanFactory.java:918)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:859)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:688)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:325)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:260)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:221)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveReference(AbstractAutowireCapableBeanFactory.java:980)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveValueIfNecessary(AbstractAutowireCapableBeanFactory.java:918)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveConstructorArguments(AbstractAutowireCapableBeanFactory.java:574)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:477)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:306)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:260)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:221)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveReference(AbstractAutowireCapableBeanFactory.java:980)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveValueIfNecessary(AbstractAutowireCapableBeanFactory.java:918)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveConstructorArguments(AbstractAutowireCapableBeanFactory.java:574)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:477)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:306)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:260)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:221)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)
    05/05/12 11:42:27      at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:291)
    05/05/12 11:42:27      at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:317)
    05/05/12 11:42:27      at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:80)
    05/05/12 11:42:27      at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:65)
    05/05/12 11:42:27      at org.springframework.context.access.ContextJndiBeanFactoryLocator.createBeanFactory(ContextJndiBeanFactoryLocator.java:40)
    05/05/12 11:42:27      at org.springframework.beans.factory.access.JndiBeanFactoryLocator.useBeanFactory(JndiBeanFactoryLocator.java:68)
    05/05/12 11:42:27      at org.springframework.ejb.support.AbstractEnterpriseBean.loadBeanFactory(AbstractEnterpriseBean.java:115)
    05/05/12 11:42:27      at org.springframework.ejb.support.AbstractStatelessSessionBean.ejbCreate(AbstractStatelessSessionBean.java:63)
    For those of you familiar with the Spring Framework you'll notice I'm invoking an SLSB throug it, and that thet start of the stackrace is missing, but this error also shows up in other contexts. This is only one of them. They all have in common the AQ and Cache sync lines.
    Anyone have any ideas? Is it even tied to TopLink or might it be an AQ issue?
    Anders,

    What version of OC4J are you using?
    If you are using a 10.1.3 preview release, this may be an issue with OC4J connection pooling in that preview release.
    You could try using AS JMS and TopLink connection pooling to determine which is causing the issue.

  • DriverManagerConnectionPoolConnection not closed

    I am using the Oc4J connection pooling mechanism(data-source.xml) . I do a connection.close() everytime I am done with the Connection . But still I keep getting this "DriverManagerConnectionPoolConnection not closed, check your code!" all the time
    Any clues whats going wrong

    I already do that. But it does not help.
    The problem probably comes from the fact that I use BLOBSo save some binary data :
    [simplified version of my code:]
    //Allocate a LOB using a stored proc (my prefered method, BLOB.createTemporary(...) throws a NullPointerException if used on a Pooled Connection)
    OracleCallableStatement cs = (OracleCallableStatement)connection.prepareCall(
    "{Call dbms_lob.createTemporary(?,false)}");
    cs.registerOutParameter(1, Types.BLOB);
    cs.executeUpdate();
    BLOB myBlob = cs.getBLOB(1);
    cs.close();
    // fill the BLOB with some binary data
    OutputStream outputStream = myBlob.getBinaryOutputStream();
    outputStream.write(byteArray);
    outputStream.flush();
    outputStream.close();
    // use it in an insert
    preStatement = (OraclePreparedStatement)connection.prepareStatement(
    INSERT_SQL);
    preStatement.setBLOB(1, myBlob);
    // execute the insert
    preStatement.executeUpdate();
    preStatement.close();
    // free the BLOB
    OracleCallableStatement cs2 = (OracleCallableStatement)connection.prepareCall(
    "{Call dbms_lob.freetemporary(?)}");
    cs2.setBLOB(1, myBlob);
    cs2.executeUpdate();
    cs2.close();
    /// all this being enclosed try/finally very similar to the one in your sample
    /// Also note that no Exception/Error are thrown (they are all caught and logged)
    If the problem comes from the way Oracle Pooled connections manage BLOBs it there any other way I could use to save some binary data ?
    Thanks for any answer,
    Benoit

  • OC4J AQ/JMS - Logging DriverManagerConnectionPoolConnection not closed

    Hi,
    Since I do not directly utilise JDBC resource, I cannot work out how I might investigate this supposed leak.
    Every now and then (and it does appear to happen sporadically - I cannot identify a pattern), I get the
    messages.
    DriverManagerConnectionPoolConnection not closed, check your code!
    I turned the logging on (using -Djdbc.connection.debug=true), and the following exceptions is thrown:
    Created at:
    java.lang.Throwable: DriverManagerConnectionPoolConnection created
    at com.evermind.sql.DriverManagerConnectionPoolConnection.<init>(DriverManagerConnectionPoolConnection.java:27)
    at com.evermind.sql.DriverManagerPooledConnection.getNewLogicalConnection(DriverManagerPooledConnection.java:341)
    at com.evermind.sql.DriverManagerPooledConnection.getConnection(DriverManagerPooledConnection.java:117)
    at com.evermind.sql.OrionPooledDataSource.getConnection(OrionPooledDataSource.java:235)
    at com.evermind.sql.DriverManagerXADataSource.getNonAutoCommitConnection(DriverManagerXADataSource.java:285)
    at com.evermind.sql.DriverManagerXAConnection.start(DriverManagerXAConnection.java:101)
    at com.evermind.server.TransactionEnlistment.<init>(TransactionEnlistment.java:45)
    at com.evermind.server.ApplicationServerTransaction.enlistResource(ApplicationServerTransaction.java:247)
    at com.evermind.sql.OrionCMTConnection.tryToDelistEnlist(OrionCMTConnection.java:308)
    at com.evermind.sql.OrionCMTConnection.intercept(OrionCMTConnection.java:112)
    at com.evermind.sql.FilterConnection.getTypeMap(FilterConnection.java:135)
    at com.evermind.sql.FilterConnection.getTypeMap(FilterConnection.java:136)
    at oracle.jms.AQjmsConsumer.dequeue(AQjmsConsumer.java:1240)
    at oracle.jms.AQjmsConsumer.receiveFromAQ(AQjmsConsumer.java:981)
    at oracle.jms.AQjmsConsumer.receiveFromAQ(AQjmsConsumer.java:918)
    at oracle.jms.AQjmsConsumer.receive(AQjmsConsumer.java:834)
    at com.evermind.server.ejb.MessageDrivenHome.run(MessageDrivenHome.java:905)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:797)
    at java.lang.Thread.run(Thread.java:479)
    Here is the ejb.jar sections of interest:
    <transaction-type>Container</transaction-type>
    <acknowledge-mode>Auto-acknowledge</acknowledge-mode>
    <message-driven-destination>
    <destination-type>javax.jms.Queue</destination-type>
    </message-driven-destination>
    <resource-ref>
    <res-ref-name>jms/MessageQueueConnectionFactory</res-ref-name>
    <res-type>javax.jms.QueueConnectionFactory</res-type>
    <res-auth>Application</res-auth>
    <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>
    <resource-env-ref>
    <resource-env-ref-name>jms/MessageSendQueue</resource-env-ref-name>
    <resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
    </resource-env-ref>
    <resource-env-ref>
    <resource-env-ref-name>jms/MessageStatusQueue</resource-env-ref-name>
    <resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
    </resource-env-ref>
    Here is the orion-ejb.jar <enterprise-beans> definition:
    <enterprise-beans>
         <message-driven-deployment name="MessagingServer" destination-location="java:comp/resource/CallistaMessagingJMSContext/Queues/CORQ_MSG_SEND_QUEUE" connection-factory-location="java:comp/resource/CallistaMessagingJMSContext/QueueConnectionFactories/jmsFactory" max-instances="100">
         <resource-ref-mapping name="jms/MessageQueueConnectionFactory" location="java:comp/resource/CallistaMessagingJMSContext/QueueConnectionFactories/jmsFactory" />
         <resource-env-ref-mapping name="jms/MessageSendQueue" location="java:comp/resource/CallistaMessagingJMSContext/Queues/CORQ_MSG_SEND_QUEUE" />
         <resource-env-ref-mapping name="jms/MessageStatusQueue" location="java:comp/resource/CallistaMessagingJMSContext/Queues/CORQ_MSG_STATUS_QUEUE" />
         </message-driven-deployment>
    </enterprise-beans>
    The orion-application.xml has the following resource provider mapping for the OJMS Context:
    <resource-provider class="oracle.jms.OjmsContext" name="CallistaMessagingJMSContext">
    <description> OJMS/AQ </description>
    <property name="datasource" value="jdbc/ejb/CallistaMessageOwnerDS" />
    </resource-provider>
    Here is the matching 'jdbc/ejb/CallistaMessageOwnerDS' datasource definition for the JMS:
    <data-source
         class="com.evermind.sql.DriverManagerDataSource"
         name="CallistaMessageOwnerJDBCDatasource"
         location="jdbc/CallistaMessageOwnerCoreDS"
         xa-location="jdbc/xa/CallistaMessageOwnerXADS"
         ejb-location="jdbc/ejb/CallistaMessageOwnerDS"
    connection-driver="oracle.jdbc.driver.OracleDriver"
         username="*********"
         password="****"
              url="jdbc:oracle:thin:@myhost.com.au:1529:ORCL"
         inactivity-timeout="30"
    />
    I would appreciate any input into any mistakes I may have made (perhaps I need to use a different datasource, or define it in a different way)
    Any help - including an indication that this is an error I can safely ignore :-) would be appreciated.
    Thanks
    Jason

    I'm have the same issue. I'm currently trying to seen if the Oracle 9.2.0.5.0 patch corrects the issue (waiting for the file down load). There is a known issue in Oracle and cleaning up Inactive connections. I assuming the two are related ... I hope it works.

  • " Unit of measure ****** is not defined; check your entry in table T006

    I´m Trying to create a material from MDM to SAP and I´m monitoring the IDOC in  WE05 and i get the next message:
    " Unit of measure ****** is not defined; check your entry
    Message no. M3490
    Diagnosis
    The key for the unit of measure you entered is not defined in table T006.
    Procedure
    Define the unit of measure through Customizing (Materials Management). "
    In MDM we are sending as remote key the SAP Code and this code exists in the table T006, but in the information of failed IDOC say:
    " Messages have been issued: number 0000000000184470
    Message no. MK101
    Diagnosis
    During inbound processing for the IDoc, messages have arisen while checking material data. "
    If someone has information about it ,pls I´ll appreciate your answer.
    Regards Itzell T.

    I´m Trying to create a material from MDM to SAP and I´m monitoring the IDOC in WE05 and i get the next message:
    " Unit of measure ****** is not defined; check your entry
    Message no. M3490
    Diagnosis
    The key for the unit of measure you entered is not defined in table T006.
    Procedure
    Define the unit of measure through Customizing (Materials Management). "
    In MDM we are sending as remote key the SAP Code and this code exists in the table T006, but in the information of failed IDOC say:
    " Messages have been issued: number 0000000000184470
    Message no. MK101
    Diagnosis
    During inbound processing for the IDoc, messages have arisen while checking material data. "
    If someone has information about it ,pls I´ll appreciate your answer.
    Regards Itzell T.
      Hi Itzell T,
          While creating the material the unit of measurement which is entered is not existing in the SAP System. The unit of measurement entered during creation of material is cross checked from enteries of check table T006.
          So, functional consultant should take care of this issue just let him know the message.
       He know what problem actually is and fix the problem as Ankur had said.

  • MB1C Error "Storage Bin 450 does not exist Check your entry"

    When doing MB1C error message says
    :"Storage Bin 450 does not exist Check your entry"
    I have maintained all movement types, storage location well. I have not created any storage Bin then why it is asking for this?
    Please help for solution with steps.

    Thanks for your answer. My problem is different but I resolved it myself as under:
    Log Execution->Shipping>Picking>Lean WM-->Define control parameter and no. Range....All three tabs were set.Here in check box I tick mark as Active Lean WM.
    Then went to Control Plant /Storage location/Warehouse No Assignment
    Here Plant/Storage Location/Warehouse were given
    Degree of activation=1
    store tye for picking in LWM=005
    So Lean WM was activated. So in MB1c this error was disappeared as I had activated Lean WM.
    But another error came "There is no item category assigned to account 799999/4050" This is related to field status group in G/L account but still not solved.I am missing Commitment Item in tab Create/Bank/Interest in my G/L account. I tried to run program RM07CUFA in SE 38 saying error No MM group in 3 tabs but could not further identified.
    Above issue was resolved sothread is closed.

  • Depreciation key SBDK not allowed (Check your entry)

    Hi,
    Friends
    i am getting an error in assets account,i have already created dep key SBDK in T.CODE"- AFAMA.
    Fallowing is an error"-
    Depreciation key SBDK not allowed (Check your entry)
    Thanks + Regards in Advance
    SN.Noorie

    Hi,
    This is not the forum for this..please check the following link:
    http://sap.ittoolbox.com/groups/technical-functional/sap-acct/am-depreciation-key-xxxx-not-allowed-check-your-entry-815125
    Regards,
    RS.

  • Why does iTunes keep giving me bogus error messages.  "Your internet connection is not working, check your connection and try again."  My internet is working fine.  iTunes is not working and will not allow me to download tunes.

    why does iTunes keep giving me bogus error messages.  "Your internet connection is not working, check your connection and try again."  My internet is working fine.  iTunes is not working and will not allow me to download tunes.

    This my sound too simple, but I just kept clikning on the arrow next to the selected music and it finally "Kicked" in.
    I live in Europe ,So Be persistent and don't give up !  Aug. 2013

  • I am trying to set up icloud on my new device. However it keeps showing hte message account not verified, check your email. I have tried looking for email there is nothing. How do I set this up?

    I am trying to set up icloud on my new device. However it keeps showing the message - account not verified, check your email. I have looked for email and there is nothing. How do I set this up?

    Welcome to the Apple Community.
    Put in a request for another verification e-mail to be sent to you.
    Start here, change your country if necessary and go to manage your account.
    Also check your Mail rules and filtering, the verification mail may be going to a junk folder or even being deleted altogether. You may also wish to contact your mail provider to see if their spam filters are removing the email before it gets to you.

  • Storage bin 320 902  does not exist (check your entry)

    Storage bin 320 902  does not exist (check your entry)
    Message no. L9009
    I have created the new bins in the interim storage area 902. In the table LPAG also the storage bins are visible. I am creating thre GR for the PO in the system but still getting the error in as above . Please help me out.

    Hi
    check the movement type configuration which is used. So u can find what storage bin is used for the particular movement type.
    If not existed create the interimbin.
    Hope this helps you...
    Rgds,
    Kris.

  • How to resolve: "Update server not found (check your internet connection)"?

    When doing Help / Check for Updates, I get "Update server not found (check your internet connection)". This has been the case for 6-8 weeks or longer but auto update worked fine before. Not sure if something changed on my MacBook Pro. If so, I can't pinpoint it.
    MacBook Pro (Intel Core 2 Duo)
    Mac OS 10.6.6
    Firefox 3.6.13
    Firefox set to "No Proxy"

    See iOS: How to update your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT4623
    If you are currently running an iOS lower than 5.0, connect to your computer & click on the "Update your device using iTunes".
    Tip - Disable your firewall and anitvirus software temporarily.  Then download and install the iOS update. After you update to iOS 5.x, the next update can be installed via wifi (i.e., not connected to your computer).
     Cheers, Tom

  • Special Stock E not supported (check your entry) error in returns delivery

    Dear friends,
    While we are doing the returns delivery, we are getting the error " Special Stock E not supported (check your entry)
    Message no. M7146
    Diagnosis
    The specified objekt (Special Stock E) is not supported."
    This is an M.T.O scenario
    In the returns order the requirement type is 'KE"
    can u pls tell me how the requirement type is determined at sales order level. Can it be changed manually.
    How the strategy group is linked to requirement type.

    Hi,
    Requirement type KE you can not changed manually.
    For a strategy two requirement types are linked. One is from PIR requirement type,another one is from customer requirement type.
    For 20 strategy, customer requirement type is KE.
    For more detais Goto SPRO>Production>Production planning>Demand management>Planned ind req>Planning strategy>Define planning strategy.
    Here you can find the link between requirement type to a strategy.
    Regards,
    Dharma

  • Special Stock E not supported (check your entry) Message no.

    Hi,
    While we are doing the returns delivery, we are getting the error "
    Special Stock E not supported (check your entry)
    Message no. M7146
    Diagnosis
    The specified objekt (Special Stock E) is not supported."
    This is an M.T.O scenario
    In the returns order the requirement type is 'KE"
    The item category is REN
    Schedule line category is DN
    movement type is 651
    Kindly guide how to over come this issue.
    Warm Regards
    Somnath
    09903518371

    Dear somnath
    For information, in returns scenario, special stock indicator E will not support.  The logic behind this is that while taking back the goods into plant, you should not assign those stocks to original sale order.  Either you have to post the stock for Quality or to some new storage location.
    thanks
    G. Lakshmipathi

Maybe you are looking for

  • Mail - help with signatures please

    I want to create an HTML Email signature for Mail on my Mac ... I've managed to create the HTML, and save as a Webarchive file, and everything worked fine (I only need a simple logo at the bottom of my emails), all was well, it even opened up success

  • Is it possible to change my credit card information in my iPhone4?

    Is it possible to change my credit card information in my iPhone4?

  • Intermittent Extra Serial Byte in Visa Read

    Hello All, I'm hoping you can help me with a problem that I've been having. The background: Using a microcontroller to to gather data from various sources and sending all the data back to Labview via an FTDI virtual COM port. The different types of d

  • Where can i watch the live event today (oct. 4th)

    Where can i watch the live event today (oct. 4th)? I knwo it's going on now. All the links i have tried will not open, even in different browsers. Maybe i am trying the wrong ones. Any ideas? -Thanks

  • Cannot install latest version of Visual studio

    Hello, I'm trying to install visual studio. So I've downloaded the .exe file on this location: https://www.visualstudio.com/en-us/products/free-developer-offers-vs.aspx When I open the .exe file I get this error message: Setup detected an issue durin