0 Replies Latest reply on Mar 6, 2013 6:50 AM by nagendra peddu

    java.lang.UnsupportedOperationException: no transaction in jboss 7.1.1

    nagendra peddu Newbie

      while migrating seam application jboss 4.1.2 to jboss 7.1 when ever we call Asynchronous events getting the exception is java.lang.UnsupportedOperationException: no transaction.

       

       

      5:07:41,962 ERROR org.jboss.seam.async.AsynchronousExceptionHandler (Sched1_Worker-1) Exeception thrown whilst executing asynchronous call: java.lang.UnsupportedOperationException: no transaction

          at org.jboss.seam.transaction.NoTransaction.begin(NoTransaction.java:36)

          at org.jboss.seam.util.Work.workInTransaction(Work.java:44)

          at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:91)

          at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)

          at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)

          at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)

          at org.jboss.seam.async.AsynchronousInterceptor.aroundInvoke(AsynchronousInterceptor.java:52)

          at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)

          at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)

          at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)

          at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)

          at com.manam.mobee.fwk.audit.AdminAuditAction_$$_javassist_seam_6.saveAudit(AdminAuditAction_$$_javassist_seam_6.java)

          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.seam.util.Reflections.invoke(Reflections.java:22)

          at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)

          at org.jboss.seam.Component.callComponentMethod(Component.java:2253)

          at org.jboss.seam.core.Events.raiseEvent(Events.java:85)

          at org.jboss.seam.async.AsynchronousEvent$1.process(AsynchronousEvent.java:33)

          at org.jboss.seam.async.Asynchronous$ContextualAsynchronousRequest.run(Asynchronous.java:80)

          at org.jboss.seam.async.AsynchronousEvent.execute(AsynchronousEvent.java:27)

          at org.jboss.seam.async.QuartzDispatcher$QuartzJob.execute(QuartzDispatcher.java:243)

          at org.quartz.core.JobRunShell.run(JobRunShell.java:202)

          at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)

       

       

      component.xml

       

      <?xml version="1.0" encoding="UTF-8"?>
      <components xmlns="http://jboss.com/products/seam/components"
          xmlns
      :async="http://jboss.com/products/seam/async" xmlns:core="http://jboss.com/products/seam/core"
          xmlns
      :transaction="http://jboss.com/products/seam/transaction"
          xmlns
      :mail="http://jboss.com/products/seam/mail"  xmlns:persistence="http://jboss.com/products/seam/persistence"
          xmlns
      :security="http://jboss.com/products/seam/security" xmlns:web="http://jboss.com/products/seam/web"
          xmlns
      :xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi
      :schemaLocation="http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.1.xsd  http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.1.xsd                  http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-2.1.xsd                  http://jboss.com/products/seam/bpm http://jboss.com/products/seam/bpm-2.1.xsd                  http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.1.xsd                  http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail-2.1.xsd                  http://jboss.com/products/seam/web http://jboss.com/products/seam/web-2.1.xsd                  http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.1.xsd http://jboss.com/products/seam/async http://jboss.com/products/seam/async-2.1.xsd">
         
      <core:init debug="false" jndi-pattern="@jndiPattern@" transaction-management-enabled="true"/>
         
      <core:manager concurrent-request-timeout="2000"
              conversation
      -id-parameter="cid" conversation-timeout="120000"
              parent
      -conversation-id-parameter="pid" />

         
      <web:hot-deploy-filter url-pattern="/*.mobee" />


         
      <persistence:entity-manager-factory
              installed
      ="@seamBootstrapsPu@" name="entityManagerFactory"
              persistence
      -unit-name="mobeeadmin" />
         
      <persistence:managed-persistence-context
             
      auto-create="true" entity-manager-factory="@seamEmfRef@" name="entityManager"
              persistence
      -unit-jndi-name="@puJndiName@" />

             
      <async:quartz-dispatcher />

         
      <security:identity authenticate-method="#{authenticator.authenticate}" />
              
      <web:rewrite-filter view-mapping="*.mobee" />

         
      <event type="org.jboss.seam.security.notLoggedIn">
             
      <action execute="#{redirect.captureCurrentView}" />
         
      </event>

         
      <event type="org.jboss.seam.security.loginSuccessful">
             
      <action execute="#{redirect.returnToCapturedView}" />
         
      </event>
         
      <mail:mail-session host="localhost" port="25" />

      </components>