File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes java.lang.IllegalStateException:  [com.arjuna.ats.internal.jta.transaction.arjunacore.notx] no trans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "java.lang.IllegalStateException:  [com.arjuna.ats.internal.jta.transaction.arjunacore.notx] no trans" Watch "java.lang.IllegalStateException:  [com.arjuna.ats.internal.jta.transaction.arjunacore.notx] no trans" New topic
Author

java.lang.IllegalStateException: [com.arjuna.ats.internal.jta.transaction.arjunacore.notx] no trans

Nilya Zarkar
Greenhorn

Joined: Dec 11, 2010
Posts: 1
Ours is a web application using Hibernate configured with JBoss (4.2.3) JTA for doing simple transactions.
We are getting this error while committing the transaction.
[2011-07-19 06:45:23] [INFO] [http-0.0.0.0-80-6:CreateAgentTask.java:54] [user:] - Agent 265 created for workflow id 71
[2011-07-19 06:45:23] [INFO] [http-0.0.0.0-80-6:RunManager.java:62] [user:] - enchached: 348
[2011-07-19 06:45:23] [INFO] [http-0.0.0.0-80-6:AgentReservationTask.java:46] [user:] - allocationg agents:
[2011-07-19 06:45:23] [INFO] [http-0.0.0.0-80-9:LoadGenService.java:47] [user:] - Allocation requested for 1 agents
[2011-07-19 06:45:23] [DEBUG] [http-0.0.0.0-80-9:ReservationManager.java:49] [user:] - Machine reservation requested for 1 agents
[2011-07-19 06:45:23] [ERROR] [http-0.0.0.0-80-9:LoadGenService.java:139] [user:] - Agent allocation failed fn=allocateAgents st=fail reservationId=-1
java.lang.IllegalStateException: BaseTransaction.commit - [com.arjuna.ats.internal.jta.transaction.arjunacore.notx] [com.arjuna.ats.internal.jta.transaction.arjunacore.notx] no transaction!
at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:130)
at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:87)
at org.jboss.tm.usertx.client.ServerVMClientUserTransaction.commit(ServerVMClientUserTransaction.java:140)
at com.persistentsys.peg.cloudburst.common.db.JpaUtil.commitTransaction(JpaUtil.java:65)
at com.persistentsys.peg.cloudburst.platform.azure.VMRoleLayer.describeCapabilities(VMRoleLayer.java:58)
at com.persistentsys.peg.cloudburst.platform.ReservationManager.doReservationFor(ReservationManager.java:54)
at com.persistentsys.peg.cloudburst.platform.LoadGenFacade.allocateAgents(LoadGenFacade.java:97)
at com.persistentsys.peg.cloudburst.platform.LoadGenService.allocateAgents(LoadGenService.java:48)
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:597)
at org.jboss.wsf.container.jboss42.InvocationHandlerJSE.invoke(InvocationHandlerJSE.java:106)
at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:222)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:474)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:295)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:205)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:131)
at org.jboss.wsf.common.servlet.AbstractEndpointServlet.service(AbstractEndpointServlet.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:662)
[2011-07-19 06:45:24] [ERROR] [http-0.0.0.0-80-6:AgentReservationTask.java:59] [user:] - Unable to allocate agents for run 254
com.persistentsys.peg.cloudburst.services.messages.ProvisioningException: Fail to allocate agents
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

This error is not reproducible and comes randomly during execution of the application.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10067
    
163

[2011-07-19 06:45:23] [ERROR] [http-0.0.0.0-80-9:LoadGenService.java:139] [user:] - Agent allocation failed fn=allocateAgents st=fail reservationId=-1
java.lang.IllegalStateException: BaseTransaction.commit - [com.arjuna.ats.internal.jta.transaction.arjunacore.notx] [com.arjuna.ats.internal.jta.transaction.arjunacore.notx] no transaction!


Can't say much from that log except that the transaction might have been rolled back due to earlier error or it might have timed out. In short, the code is trying to do some transactional operation when there's no transaction in progress.

[My Blog] [JavaRanch Journal]
 
 
subject: java.lang.IllegalStateException: [com.arjuna.ats.internal.jta.transaction.arjunacore.notx] no trans