aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes EJB TRANSACTION ROLLBACK EXCEPTION:javax.ejb.EJBException: null Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB TRANSACTION ROLLBACK EXCEPTION:javax.ejb.EJBException: null" Watch "EJB TRANSACTION ROLLBACK EXCEPTION:javax.ejb.EJBException: null" New topic
Author

EJB TRANSACTION ROLLBACK EXCEPTION:javax.ejb.EJBException: null

yousuf alam
Greenhorn

Joined: Apr 22, 2008
Posts: 9
Hi ,

We are running application in jboss 2.4.7 and developed with ejb 2.
Sometime we are getting the exception like 'TRANSACTION ROLLBACK EXCEPTION'.if i restart the jboss server its working fine.
IF the user access application is increased then we got this kind of issues.
kindly let me know what is the root cause of this issue. Since its running in production so kindly reply asap.

Excpetion :
23-May-2012 10:50:06][ERROR,GenesisUtilities] |HttpProcessor[80][152]| TRANSACTION ROLLBACK EXCEPTION:
javax.transaction.TransactionRolledbackException: null
Embedded Exception
null
Embedded Exception
null; nested exception is:
javax.ejb.EJBException: null
Embedded Exception
null; nested exception is:
javax.ejb.EJBException: null
Embedded Exception
null
Embedded Exception
null; nested exception is:
javax.ejb.EJBException: null
Embedded Exception
null
at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:166)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:347)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:100)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:127)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:170)
at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:286)
at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:506)
at org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.invokeContainer(GenericProxy.java:335)
at org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.invoke(StatelessSessionProxy.java:123)
at $Proxy120.getSetting(Unknown Source)
at org.apache.jsp.footer$jsp._jspService(footer$jsp.java:84)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at za.co.sun.lib.util.web.CompressionFilter.doFilter(CompressionFilter.java:199)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:536)
Caused by: javax.ejb.EJBException: null
Embedded Exception
null
Embedded Exception
null; nested exception is:
javax.ejb.EJBException: null
Embedded Exception
null
at za.co.sun.app.genesis.GenesisUtilities.getSetting(GenesisUtilities.java:103)
at sun.reflect.GeneratedMethodAccessor255.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:542)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:82)
at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:138)
... 47 more
[23-May-2012 10:50:07][ERROR,XAConnectionFactory] |HttpProcessor[80][119]| Unable to register with TransactionManager
javax.transaction.RollbackException: Already started rolling back.
at org.jboss.tm.TxCapsule.enlistResource(TxCapsule.java:573)
at org.jboss.tm.TransactionImpl.enlistResource(TransactionImpl.java:102)
at org.jboss.pool.jdbc.xa.XAConnectionFactory.prepareObject(XAConnectionFactory.java:314)
at org.jboss.pool.ObjectPool.getObject(ObjectPool.java:637)
at org.jboss.pool.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSource.java:215)
at za.co.sun.lib.DBLib.DataSourceConnectionMgr.getConnection(DataSourceConnectionMgr.java:54)
at za.co.sun.lib.DBLib.DBMgr.FindAll(DBMgr.java:437)
at za.co.sun.lib.DBLib.DBMgr.FindAll(DBMgr.java:968)
at za.co.sun.app.webimgview.ReferenceValidator.retrieveShipmentsForShipmentId(ReferenceValidator.java:272)
at za.co.sun.app.webimgview.ReferenceValidator.populateReferenceList(ReferenceValidator.java:511)
at za.co.sun.app.webimgview.ReferenceValidator.getValidReferences(ReferenceValidator.java:96)
at org.apache.jsp.get_0005fresponse_0005frefs$jsp._jspService(get_0005fresponse_0005frefs$jsp.java:169)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:536)


yousuf alam.A
Mansur Khan
Ranch Hand

Joined: Mar 27, 2007
Posts: 50
BTW, is it BMT or CMT.

Assuming it is CMT, check if you invoked a setRollbackOnly() earlier in the execution chain:

at za.co.sun.app.webimgview.ReferenceValidator.retrieveShipmentsForShipmentId(ReferenceValidator.java:272)


SCDJWS, SCBCD, SCJP
yousuf alam
Greenhorn

Joined: Apr 22, 2008
Posts: 9
Mansur Khan wrote:BTW, is it BMT or CMT.

Assuming it is CMT, check if you invoked a setRollbackOnly() earlier in the execution chain:

at za.co.sun.app.webimgview.ReferenceValidator.retrieveShipmentsForShipmentId(ReferenceValidator.java:272)



Thanks Mansur for your reply and giving your valuable time.
Application using in CMT and setRollbackOnly is invoked after finished the operation only.
Here my problem is application is working fine.while many user access the application i got this issue.if i restart the jboss then its working fine.
Is there any coding issues like memory or connection?
Is there any way to find out the root cause in jboss server?
I am using jboss 2.4.7.





Mansur Khan
Ranch Hand

Joined: Mar 27, 2007
Posts: 50
What do the system logs say?
yousuf alam
Greenhorn

Joined: Apr 22, 2008
Posts: 9
Mansur Khan wrote:What do the system logs say?

Its showing only Rollback exception like what i saying before.
IF i restart the server its working fine.
Please suggest me on this.
Mansur Khan
Ranch Hand

Joined: Mar 27, 2007
Posts: 50
Check if only you get this? If your collegue is not getting this, then there might be an issue with your setup.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB TRANSACTION ROLLBACK EXCEPTION:javax.ejb.EJBException: null