7 Replies Latest reply on Feb 4, 2012 7:13 AM by Jose Alvarez de Lara

    Seam mail, The transaction is not active!

    Jose Alvarez de Lara Novice

      Hi,


      I am trying seam mail and I get always the same exception.
      Here is it,


      10:15:00,046 WARN  [com.arjuna.ats.arjuna] (Transaction Reaper) ARJUNA12117: TransactionReaper::check timeout for TX 0:ffff028df419:379da76f:4f28e84e:106 in state  RUN
      10:15:00,078 WARN  [com.arjuna.ats.arjuna] (Transaction Reaper Worker 0) ARJUNA12095: Abort of action id 0:ffff028df419:379da76f:4f28e84e:106 invoked while multiple threads active within it.
      10:15:00,078 WARN  [com.arjuna.ats.arjuna] (Transaction Reaper Worker 0) ARJUNA12108: CheckedAction::check - atomic action 0:ffff028df419:379da76f:4f28e84e:106 aborting with 1 threads active!
      10:15:00,078 WARN  [com.arjuna.ats.jta] (Transaction Reaper Worker 0) ARJUNA16029: SynchronizationImple.afterCompletion - failed for org.jboss.as.ejb3.component.stateful.StatefulSessionSynchronizationInterceptor$StatefulSessionSynchronization@119a4e1 with exception: java.lang.IllegalMonitorStateException
           at java.util.concurrent.locks.ReentrantLock$Sync.tryRelease(ReentrantLock.java:127) [:1.6.0_29]
           at java.util.concurrent.locks.AbstractQueuedSynchronizer.release(AbstractQueuedSynchronizer.java:1239) [:1.6.0_29]
           at java.util.concurrent.locks.ReentrantLock.unlock(ReentrantLock.java:431) [:1.6.0_29]
           at org.jboss.as.ejb3.component.stateful.StatefulSessionSynchronizationInterceptor.releaseLock(StatefulSessionSynchronizationInterceptor.java:164)
           at org.jboss.as.ejb3.component.stateful.StatefulSessionSynchronizationInterceptor.releaseInstance(StatefulSessionSynchronizationInterceptor.java:156)
           at org.jboss.as.ejb3.component.stateful.StatefulSessionSynchronizationInterceptor.access$300(StatefulSessionSynchronizationInterceptor.java:44)
           at org.jboss.as.ejb3.component.stateful.StatefulSessionSynchronizationInterceptor$StatefulSessionSynchronization.afterCompletion(StatefulSessionSynchronizationInterceptor.java:209)
           at com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.afterCompletion(SynchronizationImple.java:117) [jbossjts-4.15.3.Final.jar:]
           at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.afterCompletion(TwoPhaseCoordinator.java:403) [jbossjts-4.15.3.Final.jar:]
           at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.afterCompletion(TwoPhaseCoordinator.java:335) [jbossjts-4.15.3.Final.jar:]
           at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.cancel(TwoPhaseCoordinator.java:121) [jbossjts-4.15.3.Final.jar:]
           at com.arjuna.ats.arjuna.AtomicAction.cancel(AtomicAction.java:212) [jbossjts-4.15.3.Final.jar:]
           at com.arjuna.ats.arjuna.coordinator.TransactionReaper.doCancellations(TransactionReaper.java:367) [jbossjts-4.15.3.Final.jar:]
           at com.arjuna.ats.internal.arjuna.coordinator.ReaperWorkerThread.run(ReaperWorkerThread.java:79) [jbossjts-4.15.3.Final.jar:]
      
      10:15:00,078 WARN  [com.arjuna.ats.arjuna] (Transaction Reaper Worker 0) ARJUNA12127: TwoPhaseCoordinator.afterCompletion - returned failure for SynchronizationImple< 0:ffff028df419:379da76f:4f28e84e:107, org.jboss.as.ejb3.component.stateful.StatefulSessionSynchronizationInterceptor$StatefulSessionSynchronization@119a4e1 >
      10:15:00,078 WARN  [com.arjuna.ats.arjuna] (Transaction Reaper Worker 0) ARJUNA12121: TransactionReaper::doCancellations worker Thread[Transaction Reaper Worker 0,5,main] successfully canceled TX 0:ffff028df419:379da76f:4f28e84e:106
      10:15:05,531 WARN  [com.arjuna.ats.arjuna] (http--127.0.0.1-8180-4) ARJUNA12077: Abort called on already aborted atomic action 0:ffff028df419:379da76f:4f28e84e:106
      10:15:05,531 ADVERTENCIA [javax.enterprise.resource.webcontainer.jsf.lifecycle] (http--127.0.0.1-8180-4) #{sendMail.sendText}: javax.ejb.EJBTransactionRolledbackException: Transaction rolled back: javax.faces.FacesException: #{sendMail.sendText}: javax.ejb.EJBTransactionRolledbackException: Transaction rolled back
           at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:118) [jsf-impl-2.1.3-b02-jbossorg-2.jar:2.1.3-SNAPSHOT]
           at javax.faces.component.UICommand.broadcast(UICommand.java:315) [jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]
           at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794) [jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]
           at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259) [jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]
           at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81) [jsf-impl-2.1.3-b02-jbossorg-2.jar:2.1.3-SNAPSHOT]
           at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [jsf-impl-2.1.3-b02-jbossorg-2.jar:2.1.3-SNAPSHOT]
           at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) [jsf-impl-2.1.3-b02-jbossorg-2.jar:2.1.3-SNAPSHOT]
           at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593) [jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
           at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:126) [prettyfaces-jsf2-3.3.2.jar:]
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
           at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:734) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
           at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:541) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
           at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:479) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
           at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:407) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
           at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:118) [prettyfaces-jsf2-3.3.2.jar:]
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
           at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]
           at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]
           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
           at java.lang.Thread.run(Thread.java:662) [:1.6.0_29]
      Caused by: javax.faces.el.EvaluationException: javax.ejb.EJBTransactionRolledbackException: Transaction rolled back
           at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102) [jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]
           at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102) [jsf-impl-2.1.3-b02-jbossorg-2.jar:2.1.3-SNAPSHOT]
           ... 31 more
      Caused by: javax.ejb.EJBTransactionRolledbackException: Transaction rolled back
           at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleEndTransactionException(CMTTxInterceptor.java:107) [jboss-as-ejb3-7.0.2.Final.jar:7.0.2.Final]
           at org.jboss.as.ejb3.tx.CMTTxInterceptor.endTransaction(CMTTxInterceptor.java:88) [jboss-as-ejb3-7.0.2.Final.jar:7.0.2.Final]
           at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:215) [jboss-as-ejb3-7.0.2.Final.jar:7.0.2.Final]
           at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:284) [jboss-as-ejb3-7.0.2.Final.jar:7.0.2.Final]
           at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:182) [jboss-as-ejb3-7.0.2.Final.jar:7.0.2.Final]
           at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287) [jboss-invocation-1.1.0.Final.jar:1.1.0.Final]
           at org.jboss.as.ejb3.component.session.SessionInvocationContextInterceptor.processInvocation(SessionInvocationContextInterceptor.java:71) [jboss-as-ejb3-7.0.2.Final.jar:7.0.2.Final]
           at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287) [jboss-invocation-1.1.0.Final.jar:1.1.0.Final]
           at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.0.Final.jar:1.1.0.Final]
           at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:146)
           at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287) [jboss-invocation-1.1.0.Final.jar:1.1.0.Final]
           at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.0.Final.jar:1.1.0.Final]
           at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:76)
           at org.jboss.seam.examples.mail.send.SendMail$$$view21.sendText(Unknown Source) [classes:]
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_29]
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_29]
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_29]
           at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_29]
           at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
           at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
           at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
           at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
           at org.jboss.weld.bean.proxy.EnterpriseBeanProxyMethodHandler.invoke(EnterpriseBeanProxyMethodHandler.java:125) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
           at org.jboss.weld.bean.proxy.EnterpriseTargetBeanInstance.invoke(EnterpriseTargetBeanInstance.java:62) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
           at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:125) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
           at org.jboss.seam.examples.mail.send.SendMail$Proxy$_$$_Weld$Proxy$.sendText(SendMail$Proxy$_$$_Weld$Proxy$.java) [classes:]
           at org.jboss.seam.examples.mail.send.SendMail$Proxy$_$$_WeldClientProxy.sendText(SendMail$Proxy$_$$_WeldClientProxy.java) [classes:]
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_29]
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_29]
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_29]
           at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_29]
           at org.apache.el.parser.AstValue.invoke(AstValue.java:196) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
           at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
           at org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:43) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
           at org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:56) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
           at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105) [jsf-impl-2.1.3-b02-jbossorg-2.jar:2.1.3-SNAPSHOT]
           at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88) [jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]
           ... 32 more
      Caused by: javax.transaction.RollbackException: The transaction is not active!
           at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1149)
           at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:119)
           at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:75)
           at org.jboss.as.ejb3.tx.CMTTxInterceptor.endTransaction(CMTTxInterceptor.java:85) [jboss-as-ejb3-7.0.2.Final.jar:7.0.2.Final]
           ... 67 more
      
      10:15:05,562 WARN  [org.jboss.solder.exception.control.log] (http--127.0.0.1-8180-4) No handlers found for exception javax.faces.FacesException: #{sendMail.sendText}: javax.ejb.EJBTransactionRolledbackException: Transaction rolled back
      



      I get the code from the source seam-mail-e00affb that I have downloaded.
      Here is seam-beans.xml file from src/main/resources/META-INF,


      <beans xmlns="http://java.sun.com/xml/ns/javaee"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xmlns:s="urn:java:ee"
             xmlns:mail="urn:java:org.jboss.seam.mail.core"
             xsi:schemaLocation="
            http://java.sun.com/xml/ns/javaee
            http://docs.jboss.org/cdi/beans_1_0.xsd">
      
          <mail:MailConfig
                  serverHost="smtp.gmail.com"
                  serverPort="465"
                  username="someuser@gmail.com"
                  password="somepass">
              <s:modifies/>
          </mail:MailConfig>
      
      </beans>



      and here is the bean that send the emails,


      @Stateful
      @ConversationScoped
      @Named
      public class SendMail {
          private String text = "Simple Message with text body";
          
          @Inject
          private Instance<MailMessage> mailMessage;
      
          @Inject
          private Instance<CDIVelocityContext> cDIVelocityContext;
      
          @Inject
          private ResourceProvider resourceProvider;
      
          @Inject
          private Instance<Session> session;
          
          @Inject
          private Messages messages;
          
          @Inject
          @Confirmed
          private Event<Person> sentEmailConfirmedEventSrc;
          
          private Person person;
          
          private String name;
          private String email;
      
          private boolean personValid;
          
          @Begin
          public void setPerson() {
               person = new Person(name, email);
               personValid = true;
          }
          
          @End
          public void cancel() {
               person = null;
          }
          
          @End
          public void sendText() throws AddressException {
               if(null != person){
                   mailMessage.get()
                           .from(new InternetAddress("Seam Framework<username@gmail.com>"))
                           .to(new InternetAddress(person.getEmail()))
                           .subject("Text Message from Seam Mail - " + java.util.UUID.randomUUID().toString())
                           .bodyText(text)
                           .send();
                   
                   sentEmailConfirmedEventSrc.fire(person);
               }
          }
          
          public void onPersonSetComplete(@Observes(during = TransactionPhase.AFTER_SUCCESS) @Confirmed final Person person) {
              messages.info(new DefaultBundleKey("send_email_confirmed")).defaults("You have sent an email at {0}")
                      .params(person.getName() + ", " + person.getEmail());
          }
          
          @Produces
          @Dependent
          public Person getPerson() {
              return person;
          }
      
           public boolean isPersonValid() {
                return personValid;
           }
      
           public void setPersonValid(boolean personValid) {
                this.personValid = personValid;
           }
      
           public String getName() {
                return name;
           }
      
           public void setName(final String name) {
                this.name = name;
           }
      
           public String getEmail() {
                return email;
           }
      
           public void setEmail(final String email) {
                this.email = email;
           }
      }
      



      Where is the problem?


      Regards,
      Jose

        • 1. Re: Seam mail, The transaction is not active!
          Cody Lerum Apprentice

          Please post the code for the sentEmailConfirmedEventSrc event

          • 2. Re: Seam mail, The transaction is not active!
            Jose Alvarez de Lara Novice

            I have made a change in the code. Now it leaves as follows,

             

             

            @Inject
            @Confirmed
            private Event<Instance<MailMessage>> sendEmailConfirmedEventSrc;
            

             

            Here is as I call the event,

             

             

            public void onMailMessageComplete(@Observes(during = TransactionPhase.AFTER_SUCCESS) @Confirmed final MailMessage mm) {
                    messages.info(new DefaultBundleKey("send_email_confirmed")).defaults("You have sent an email to {0}")
                            .params(mm.getEmailMessage().getToAddresses());
            }
            

             

            This is the interface Confirmed,

             

             

            @Target({TYPE, METHOD, PARAMETER, FIELD})
            @Retention(RUNTIME)
            @Documented
            @Qualifier
            public @interface Confirmed {
            }
            

             

            And here is the DefaultBundleKey class,

             

             

            public class DefaultBundleKey extends BundleKey {
            
                private static final long serialVersionUID = -4439994434067265378L;
            
                public static final String DEFAULT_BUNDLE_NAME = "messages";
            
                public DefaultBundleKey(String key) {
                    super(DEFAULT_BUNDLE_NAME, key);
                }
            }
            

             

            But this is not the reason why my webapp fails. I have commented the calling of it and fails as well getting the same exception,

            and I do not know where I am getting wrong.

             

            Regards,

            Jose

            • 3. Re: Seam mail, The transaction is not active!
              Cody Lerum Apprentice

              I think you are going to have to debug this deeper as seam mail does not rely on transactions for anything. I'm guessing you are hitting an exception in there somewhere which is rolling back the tx

              • 4. Re: Seam mail, The transaction is not active!
                Jose Alvarez de Lara Novice

                Hi Cody,

                 

                I have debugged the webapp catching the exception org.jboss.seam.mail.core.SendFailedException and this is what I get,

                 

                Caused by: org.jboss.seam.mail.core.SendFailedException: Send Failed
                    at org.jboss.seam.mail.core.BaseMailMessage.send(BaseMailMessage.java:352) [seam-mail-core-impl-3.0.0-20110606.040508-4.jar:]
                    at org.jboss.seam.mail.util.MailUtility.send(MailUtility.java:188) [seam-mail-core-impl-3.0.0-20110606.040508-4.jar:]
                    at org.jboss.seam.mail.core.MailMessageImpl.send(MailMessageImpl.java:359) [seam-mail-core-impl-3.0.0-20110606.040508-4.jar:]
                    at org.jboss.seam.mail.core.MailMessageImpl.send(MailMessageImpl.java:365) [seam-mail-core-impl-3.0.0-20110606.040508-4.jar:]
                    at org.jboss.seam.examples.mail.send.SendMail.sendText(SendMail.java:91) [classes:]
                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_29]
                    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_29]
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_29]
                    at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_29]
                    at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)
                    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287) [jboss-invocation-1.1.0.Final.jar:1.1.0.Final]
                    at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:370) [jboss-invocation-1.1.0.Final.jar:1.1.0.Final]
                    at org.jboss.as.weld.ejb.DelegatingInterceptorInvocationContext.proceed(DelegatingInterceptorInvocationContext.java:80) [jboss-as-weld-7.0.2.Final.jar:7.0.2.Final]
                    at org.jboss.seam.faces.context.conversation.ConversationBoundaryInterceptor.around(ConversationBoundaryInterceptor.java:62) [seam-faces-3.1.0.Final.jar:]
                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_29]
                    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_29]
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_29]
                    at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_29]
                    at org.jboss.interceptor.proxy.InterceptorInvocation$InterceptorMethodInvocation.invoke(InterceptorInvocation.java:72) [jboss-interceptor-core-2.0.0.Alpha3.jar:2.0.0.Alpha3]
                    at org.jboss.interceptor.proxy.SimpleInterceptionChain.invokeNextInterceptor(SimpleInterceptionChain.java:82) [jboss-interceptor-core-2.0.0.Alpha3.jar:2.0.0.Alpha3]
                    at org.jboss.weld.bean.InterceptorImpl.intercept(InterceptorImpl.java:98) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
                    at org.jboss.as.weld.ejb.DelegatingInterceptorInvocationContext.proceed(DelegatingInterceptorInvocationContext.java:70) [jboss-as-weld-7.0.2.Final.jar:7.0.2.Final]
                    at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.delegateInterception(Jsr299BindingsInterceptor.java:107) [jboss-as-weld-7.0.2.Final.jar:7.0.2.Final]
                    at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:120) [jboss-as-weld-7.0.2.Final.jar:7.0.2.Final]
                    at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:130) [jboss-as-weld-7.0.2.Final.jar:7.0.2.Final]
                    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287) [jboss-invocation-1.1.0.Final.jar:1.1.0.Final]
                    at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) [jboss-invocation-1.1.0.Final.jar:1.1.0.Final]
                    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287) [jboss-invocation-1.1.0.Final.jar:1.1.0.Final]
                    at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:45)
                    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287) [jboss-invocation-1.1.0.Final.jar:1.1.0.Final]
                    at org.jboss.as.ejb3.component.stateful.StatefulSessionSynchronizationInterceptor.processInvocation(StatefulSessionSynchronizationInterceptor.java:132) [jboss-as-ejb3-7.0.2.Final.jar:7.0.2.Final]
                    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287) [jboss-invocation-1.1.0.Final.jar:1.1.0.Final]
                    at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:44)
                    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287) [jboss-invocation-1.1.0.Final.jar:1.1.0.Final]
                    at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)
                    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287) [jboss-invocation-1.1.0.Final.jar:1.1.0.Final]
                    at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21) [jboss-invocation-1.1.0.Final.jar:1.1.0.Final]
                    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287) [jboss-invocation-1.1.0.Final.jar:1.1.0.Final]
                    at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.0.Final.jar:1.1.0.Final]
                    at org.jboss.as.ee.component.ViewDescription$ComponentDispatcherInterceptor.processInvocation(ViewDescription.java:202)
                    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287) [jboss-invocation-1.1.0.Final.jar:1.1.0.Final]
                    at org.jboss.as.jpa.interceptor.SFSBInvocationInterceptor.processInvocation(SFSBInvocationInterceptor.java:58)
                    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287) [jboss-invocation-1.1.0.Final.jar:1.1.0.Final]
                    at org.jboss.as.ejb3.component.stateful.StatefulComponentInstanceInterceptor.processInvocation(StatefulComponentInstanceInterceptor.java:61) [jboss-as-ejb3-7.0.2.Final.jar:7.0.2.Final]
                    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287) [jboss-invocation-1.1.0.Final.jar:1.1.0.Final]
                    at org.jboss.as.ejb3.component.session.SessionInvocationContextInterceptor$CustomSessionInvocationContext.proceed(SessionInvocationContextInterceptor.java:126) [jboss-as-ejb3-7.0.2.Final.jar:7.0.2.Final]
                    at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:211) [jboss-as-ejb3-7.0.2.Final.jar:7.0.2.Final]
                    ... 66 more
                
                Caused by: com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first. d9sm7961167wiy.2
                
                    at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2057) [mail-1.4.4.jar:1.4.4]
                    at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1580) [mail-1.4.4.jar:1.4.4]
                    at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1097) [mail-1.4.4.jar:1.4.4]
                    at javax.mail.Transport.send0(Transport.java:195) [mail-1.4.4.jar:1.4.4]
                    at javax.mail.Transport.send(Transport.java:124) [mail-1.4.4.jar:1.4.4]
                    at org.jboss.seam.mail.core.BaseMailMessage.send(BaseMailMessage.java:350) [seam-mail-core-impl-3.0.0-20110606.040508-4.jar:]
                    ... 112 more
                

                 

                It seems I must issue in seam-beans.xml file a STARTTLS command but I do not know how to. In fact the error is that the mail service does

                not connect with the host smtp.gmail.com.

                 

                El mensaje fue editado por: José Alvarez de Lara

                • 6. Re: Seam mail, The transaction is not active!
                  Chris Nice Newbie

                  Im a little confused!

                  [Learn ichimoku=>http://ichi-mo-ku.com]

                  • 7. Re: Seam mail, The transaction is not active!
                    Jose Alvarez de Lara Novice

                    Ok, I have got the information.

                     

                    Thanks a lot,

                    Jose