CachedConnectionManager
topicfun Jun 24, 2003 11:38 AMHi!
I use a entity bean to store some config data in Oracle database but I got the following error msg which appears after the ejbcreate had finished.
2003-06-24 17:11:07,971 INFO [org.jboss.resource.connectionmanager.CachedConnectionManager] Successfully closed a connection for you. Please close them yourself: org.jboss.resource.adapter.jdbc.WrappedConnection@18e8fe0
java.lang.Exception: Stack Trace
 at org.jboss.resource.connectionmanager.CachedConnectionManager.closeAll(CachedConnectionManager.java:376)
 at org.jboss.resource.connectionmanager.CachedConnectionManager.popMetaAwareObject(CachedConnectionManager.java:199)
 at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:190)
 at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72)
 at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
 at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:243)
 at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:104)
 at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:117)
 at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
 at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
 at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:322)
 at org.jboss.ejb.Container.invoke(Container.java:674)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at
.
.
.
---------------------------------------------------------------
After that my store-methods are still called by jboss but I got back a error:
javax.ejb.EJBException: ejbStore: Connection handle has been closed and is unusable
--------------------------------------------------------------
Here is my ejbcreate- codepart.
 public BigDecimal ejbCreate(DVBApplication tablesCreate)
 throws CreateException {
 try {
 /*to insert in the Instance table*/
 insertInstance();
 Collection c = tablesCreate.getParams();
 Iterator i=c.iterator();
 while (i.hasNext()) {
 paramName = (String)i.next();
 paramValue = (String)i.next();
 /*to insert in the Config_Data table*/
 insertConfig();
 }
 } catch (Exception ex) {
 throw new EJBException("ejbCreate: " +
 ex.getMessage());
 }
 return appInstance;
 }
I have already tried to close the connection but I got other error msg. I think it doesn't solve the problem.
Thanks your help in advance!!!
Best Regards
topicfun
