1 Reply Latest reply on Oct 30, 2014 4:01 AM by Wolf-Dieter Fink

    No transaction in progress - Jboss 7.1.1

    kumar k Newbie

      Hi All,

       

      We are doing joss upgradation from Jboss 4 to Jboss 7.1.1.

       

      While running the batch getting the below exception.

       

      13:52:55,770 ERROR [com.xxx.xxx.service.deal.renewal.BatchServiceBean] (http-localhost-127.0.0.1-8080-1) Error creating history record in batch: com.xxx.xxx.model.deal.renewal.DaoException: javax.persistence.TransactionRequiredException: no transaction is in progress

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_67]

      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [rt.jar:1.7.0_67]

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [rt.jar:1.7.0_67]

      at java.lang.reflect.Method.invoke(Unknown Source) [rt.jar:1.7.0_67]

      at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) [jboss-seam-2.1.2.jar:2.1.2]

      at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32) [jboss-seam-2.1.2.jar:2.1.2]

      at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:76) [jboss-seam-2.1.2.jar:2.1.2]

      at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56) [jboss-seam-2.1.2.jar:2.1.2]

      at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107) [jboss-seam-2.1.2.jar:2.1.2]

      at org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInterceptor.java:54) [jboss-seam-2.1.2.jar:2.1.2]

      at org.javassist.tmp.java.lang.Object_$$_javassist_seam_3.processAutomaticRenewal(Object_$$_javassist_seam_3.java)

      at com.xxx.xxx.webservice.batch.BatchWebService.callBatch(BatchWebService.java:62) [classes:]

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_67]

      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [rt.jar:1.7.0_67]

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [rt.jar:1.7.0_67]

      at java.lang.reflect.Method.invoke(Unknown Source) [rt.jar:1.7.0_67]

      at com.sun.xml.ws.api.server.InstanceResolver$1.invoke(InstanceResolver.java:246) [jaxws-rt-2.2.jar:2.2]

      at com.sun.xml.ws.server.InvokerTube$2.invoke(InvokerTube.java:146) [jaxws-rt-2.2.jar:2.2]

      at com.sun.xml.ws.server.sei.EndpointMethodHandler.invoke(EndpointMethodHandler.java:257) [jaxws-rt-2.2.jar:2.2]

      at com.sun.xml.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTube.java:95) [jaxws-rt-2.2.jar:2.2]

      at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:629) [jaxws-rt-2.2.jar:2.2]

      at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:588) [jaxws-rt-2.2.jar:2.2]

      at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:573) [jaxws-rt-2.2.jar:2.2]

      at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:470) [jaxws-rt-2.2.jar:2.2]

      at com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:295) [jaxws-rt-2.2.jar:2.2]

      at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:515) [jaxws-rt-2.2.jar:2.2]

      at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:285) [jaxws-rt-2.2.jar:2.2]

      at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:143) [jaxws-rt-2.2.jar:2.2]

      at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doGet(WSServletDelegate.java:155) [jaxws-rt-2.2.jar:2.2]

      at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doPost(WSServletDelegate.java:189) [jaxws-rt-2.2.jar:2.2]

      at com.sun.xml.ws.transport.http.servlet.WSServlet.doPost(WSServlet.java:76) [jaxws-rt-2.2.jar:2.2]

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83) [jboss-seam-2.1.2.jar:2.1.2]

      at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60) [jboss-seam-2.1.2.jar:2.1.2]

      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam-2.1.2.jar:2.1.2]

      at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64) [jboss-seam-2.1.2.jar:2.1.2]

      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam-2.1.2.jar:2.1.2]

      at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45) [jboss-seam-2.1.2.jar:2.1.2]

      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam-2.1.2.jar:2.1.2]

      at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53) [jboss-seam-2.1.2.jar:2.1.2]

      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam-2.1.2.jar:2.1.2]

      at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40) [jboss-seam-2.1.2.jar:2.1.2]

      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam-2.1.2.jar:2.1.2]

      at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158) [jboss-seam-2.1.2.jar:2.1.2]

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]

      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]

      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]

      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:397) [jbossweb-7.0.13.Final.jar:]

      at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]

      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]

      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]

      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]

      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]

      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]

      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]

      at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_67]

      Caused by: javax.persistence.TransactionRequiredException: no transaction is in progress

      at org.hibernate.ejb.AbstractEntityManagerImpl.flush(AbstractEntityManagerImpl.java:301) [hibernate-entitymanager-3.3.2.GA.jar:3.3.2.GA]

      ... 65 more