autocommit=true problem with oc4j application server
i am using container managed enterprise java beans, also a container managed session facade. JDBC driver is connectorJ for mysql database. when i deploy the ejbs on server, during deployment it issues following warnings.
"canot call commit when autocommit=true"
when container try to commit the transaction in any method of ejb then it throws following exception.
oracle.oc4j.rmi.OracleRemoteException: Error open transaction is not closed
at UserMgmtSessionEJB_StatelessSessionBeanWrapper115.registerNewUser(UserMgmtSessionEJB_StatelessSessionBeanWrapper115.java:557)
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 com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:67)
at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:47)
at com.evermind.server.rmi.InterceptorCallHandlerWrapper.run(InterceptorCallHandlerWrapper.java:18)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:299)
at java.lang.Thread.run(Thread.java:534)
at connection to xerces/192.168.0.205 as admin
at UserMgmtSessionEJB_StatelessSessionBeanWrapper115.registerNewUser(UserMgmtSessionEJB_StatelessSessionBeanWrapper115.java:557)
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 com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:67)
at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:47)
at com.evermind.server.rmi.InterceptorCallHandlerWrapper.run(InterceptorCallHandlerWrapper.java:18)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:299)
at java.lang.Thread.run(Thread.java:534)
Regards,
Faisal Iqbal
Subject
Written By
Posted
autocommit=true problem with oc4j application server
June 24, 2005 08:06AM
February 08, 2008 03:25PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.