3 Replies Latest reply on Mar 13, 2006 6:17 PM by Gavin King

    No Error messages when Session bean / Action not called

    krypton Novice

      Hi, this is a basic error on my part, although I can't see where I
      am going wrong. I have modified the booking example. After registration
      I sent the user to a create-profile.xhtml page, which the allows the
      user to enter some information, this is then sent to a Session bean
      called ProfileAction. When I submit the page, nothing is persisted
      and the action is not called. There are no errors to indicate anything,
      the page is redisplayed.

      Server Log after submit is pressed, ie this is the trace for the
      web request that is not calling the action

      2006-03-10 09:06:45,715 DEBUG [org.jboss.seam.contexts.Lifecycle] >>> Begin web request
      2006-03-10 09:06:45,755 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.manager
      2006-03-10 09:06:45,755 DEBUG [org.jboss.seam.core.Manager] No stored conversation
      2006-03-10 09:06:45,755 DEBUG [org.jboss.seam.contexts.Contexts] found in application context: org.jboss.seam.core.init
      2006-03-10 09:06:45,755 DEBUG [org.jboss.seam.jsf.SeamPhaseListener] After restore view, conversation context: ConversationContext(5)
      2006-03-10 09:06:45,755 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: user
      2006-03-10 09:06:45,755 DEBUG [org.jboss.seam.contexts.Contexts] found in session context: user
      2006-03-10 09:06:45,755 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to seam component
      2006-03-10 09:06:45,755 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: user
      2006-03-10 09:06:45,755 DEBUG [org.jboss.seam.contexts.Contexts] found in session context: user
      2006-03-10 09:06:45,755 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to seam component
      2006-03-10 09:06:45,755 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: user
      2006-03-10 09:06:45,755 DEBUG [org.jboss.seam.contexts.Contexts] found in session context: user
      2006-03-10 09:06:45,755 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to seam component
      2006-03-10 09:06:45,775 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: themeManager
      2006-03-10 09:06:45,775 DEBUG [org.jboss.seam.contexts.Contexts] found in application context: themeManager
      2006-03-10 09:06:45,775 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to seam component
      2006-03-10 09:06:45,775 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: user
      2006-03-10 09:06:45,775 DEBUG [org.jboss.seam.contexts.Contexts] found in session context: user
      2006-03-10 09:06:45,775 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to seam component
      2006-03-10 09:06:45,775 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: user
      2006-03-10 09:06:45,775 DEBUG [org.jboss.seam.contexts.Contexts] found in session context: user
      2006-03-10 09:06:45,775 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to seam component
      2006-03-10 09:06:45,775 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: user
      2006-03-10 09:06:45,775 DEBUG [org.jboss.seam.contexts.Contexts] found in session context: user
      2006-03-10 09:06:45,775 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to seam component
      2006-03-10 09:06:45,775 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: user
      2006-03-10 09:06:45,775 DEBUG [org.jboss.seam.contexts.Contexts] found in session context: user
      2006-03-10 09:06:45,775 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to seam component
      2006-03-10 09:06:45,905 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
      2006-03-10 09:06:45,905 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@2d09e0, cl=org.jboss.mx.loading.UnifiedClassLoader3@986c47{ url=null ,addedOrder=0}
      2006-03-10 09:06:45,956 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
      2006-03-10 09:06:45,956 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@2d09e0, cl=org.jboss.mx.loading.UnifiedClassLoader3@1fac352{ url=null ,addedOrder=0}
      2006-03-10 09:06:45,966 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url null
      2006-03-10 09:06:45,966 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@2d09e0, cl=org.jboss.mx.loading.UnifiedClassLoader3@63a8af{ url=null ,addedOrder=0}
      2006-03-10 09:06:46,006 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: user
      2006-03-10 09:06:46,006 DEBUG [org.jboss.seam.contexts.Contexts] found in session context: user
      2006-03-10 09:06:46,006 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to seam component
      2006-03-10 09:06:46,026 DEBUG [org.jboss.seam.jsf.SeamPhaseListener] Before saving state
      2006-03-10 09:06:46,026 DEBUG [org.jboss.seam.core.Manager] Discarding conversation state: 5
      2006-03-10 09:06:46,036 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: themeManager
      2006-03-10 09:06:46,036 DEBUG [org.jboss.seam.contexts.Contexts] found in application context: themeManager
      2006-03-10 09:06:46,036 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to seam component
      2006-03-10 09:06:46,036 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: user
      2006-03-10 09:06:46,036 DEBUG [org.jboss.seam.contexts.Contexts] found in session context: user
      2006-03-10 09:06:46,036 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to seam component
      2006-03-10 09:06:46,036 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: themeManager
      2006-03-10 09:06:46,036 DEBUG [org.jboss.seam.contexts.Contexts] found in application context: themeManager
      2006-03-10 09:06:46,036 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to seam component
      2006-03-10 09:06:46,036 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: user
      2006-03-10 09:06:46,036 DEBUG [org.jboss.seam.contexts.Contexts] found in session context: user
      2006-03-10 09:06:46,036 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to seam component
      2006-03-10 09:06:46,046 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: user
      2006-03-10 09:06:46,046 DEBUG [org.jboss.seam.contexts.Contexts] found in session context: user
      2006-03-10 09:06:46,046 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolved name to seam component
      2006-03-10 09:06:46,046 DEBUG [org.jboss.seam.contexts.Lifecycle] After render response, destroying contexts
      2006-03-10 09:06:46,046 DEBUG [org.jboss.seam.contexts.Lifecycle] flushing business process context
      2006-03-10 09:06:46,046 DEBUG [org.jboss.seam.contexts.BusinessProcessContext] no process instance to persist business process state
      2006-03-10 09:06:46,046 DEBUG [org.jboss.seam.contexts.Lifecycle] destroying event context
      2006-03-10 09:06:46,046 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.jboss.seam.core.manager
      2006-03-10 09:06:46,046 DEBUG [org.jboss.seam.contexts.Lifecycle] destroying conversation context
      2006-03-10 09:06:46,046 DEBUG [org.jboss.seam.contexts.Lifecycle] flushing server-side conversation context
      2006-03-10 09:06:46,046 DEBUG [org.jboss.seam.contexts.Lifecycle] <<< End web request
      


      create-profile.xhtml extract
      <h:form>
      ..
       <!-- Main Page -->
       <div class="section">
       <h1>Main Page</h1>
       </div>
       <div class="section">
       <fieldset>
       <div class="entry_small">
       <table>
       <tr>
       <td><div class="label"><h:outputLabel for="themeName">Page Title:</h:outputLabel></div></td>
       <td colspan="2"><div class="input"><h:inputText id="user-mainPage-title"
       value="#{user.mainPage.title}"/></div></td>
       </tr>
       <tr>
       <td><div class="label"><h:outputLabel for="profileName">Keywords:</h:outputLabel></div></td>
       <td colspan="2"><div class="input"><h:inputText id="user-mainPage-keywords"
       value="#{user.mainPage.keywords}"/></div></td>
       </tr>
       </table>
       </div>
       </fieldset>
       </div>
       ..
       <!-- End Section, Errors, Submit -->
       <div class="section">
       <div class="entry errors"><h:messages globalOnly="true"/></div>
       <div class="entry">
       <div class="label"> </div>
       <div class="input">
       <h:commandButton value="Create" action="#{profile.create}" class="button"/> 
       </div>
       </div>
       </div>
      
      </h:form>
      


      The faces-config.xml
      ..
      <!-- Navigation rules from actions -->
       <navigation-rule>
       <navigation-case>
       <from-action>#{profile.create}</from-action>
       <from-outcome>ok</from-outcome>
       <to-view-id>/view-profile.xhtml</to-view-id>
       <redirect />
       </navigation-case>
       <navigation-case>
       <from-action>#{profile.create}</from-action>
       <from-outcome>notok</from-outcome>
       <to-view-id>/create-profile.xhtml</to-view-id>
       <redirect />
       </navigation-case>
       </navigation-rule>
      ..
      



      The ProfileAction class, this is the session bean not being called
      @Stateful
      @Scope(EVENT)
      @Name("profile")
      @Interceptors(SeamInterceptor.class)
      @LoggedIn
      public class ProfileAction implements Profile {
      
       private static final Logger log = Logger.getLogger(ProfileAction.class.getName());
      
       @In @Out @Valid
       private User user;
      
       @PersistenceContext
       private EntityManager em;
      
       @In
       private transient FacesContext facesContext;
      
       public String create() {
       System.out.println("*******************************");
       System.out.println("Creating new profile - " + user);
       em.persist(user);
       log.info("Created profile, page = ok");
       return "ok";
       }
       public String delete() {
       log.info("Deleting profile - " + user);
       user.reset();
       em.persist(user);
       log.info("Created profile, page = ok");
       return "ok";
       }
       public String modify() {
       log.info("Modify profile - " + user);
       em.persist(user);
       log.info("Modified profile, page = ok");
       return "ok";
       }
      
       @Destroy @Remove
       public void destroy() {}
      
      }
      



      I know its my mistake, but i can't seem to see where the error is ?

      TIA

        • 1. Re: No Error messages when Session bean / Action not called
          krypton Novice

          Hi people, any advice on this issue? The action/SLSB is not being invoked and Seam does not complain about anything either ?

          • 2. Re: No Error messages when Session bean / Action not called
            krypton Novice

            ok i got the action being called, although i have made progress i am unable to update an entity's relationship, looking again at the examples.

            20:26:19,893 INFO [STDOUT] *******************************
            20:26:19,893 INFO [STDOUT] Creating new profile - com.iplay.cms.model.user.User@1767f84
            20:26:19,933 ERROR [STDERR] 13-Mar-2006 20:26:19 com.iplay.cms.manager.ProfileAction create
            INFO: Created profile, page = ok
            20:26:19,933 INFO [STDOUT] Hibernate: insert into User (password, profileName, themeName, singlePageDisplay,
            MAIN_PAGE_ID, FAQ_PAGE_ID, GALLERY_PAGE_ID, RATES_PAGE_ID, singlePage, email) values (?, ?, ?, ?, ?, ?, ?, ?,
            ?, ?)
            20:26:19,943 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: null
            20:26:19,983 ERROR [JDBCExceptionReporter] failed batch
            20:26:19,983 ERROR [AbstractFlushingEventListener] Could not synchronize database state with session
            org.hibernate.exception.GenericJDBCException: Could not execute JDBC batch update
             at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:91)
             at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:79)
             at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
             at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:202)
             at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:230)
             at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:140)
             at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListen
            er.java:296)
             at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
             at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1009)
             at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:356)
             at org.hibernate.transaction.CacheSynchronization.beforeCompletion(CacheSynchronization.java:59)
             at org.jboss.tm.TransactionImpl.doBeforeCompletion(TransactionImpl.java:1488)
             at org.jboss.tm.TransactionImpl.beforePrepare(TransactionImpl.java:1107)
             at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:321)
             at org.jboss.aspects.tx.TxPolicy.endTransaction(TxPolicy.java:175)
             at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:87)
             at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:192)
             at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
             at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
             at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
             at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:81)
             at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
             at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
             at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
             at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
             at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
             at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
             at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
             at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:190)
             at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
             at $Proxy282.create(Unknown Source)
             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:585)
             at com.sun.el.parser.AstValue.invoke(AstValue.java:130)
             at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:274)
             at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
             at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:69)
             at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
             at javax.faces.component.UICommand.broadcast(UICommand.java:106)
             at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90)
             at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:164)
             at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:316)
             at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
             at javax.faces.webapp.FacesServlet.service(FacesServlet.java:106)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
             at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:23)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
             at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
             at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
             at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
             at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:54)
             at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:174)
             at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
             at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
             at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
             at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
             at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
             at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
             at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BasePro
            tocol.java:663)
             at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
             at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
             at java.lang.Thread.run(Thread.java:595)
            Caused by: java.sql.BatchUpdateException: failed batch
             at org.hsqldb.jdbc.jdbcStatement.executeBatch(Unknown Source)
             at org.hsqldb.jdbc.jdbcPreparedStatement.executeBatch(Unknown Source)
             at org.jboss.resource.adapter.jdbc.WrappedStatement.executeBatch(WrappedStatement.java:517)
             at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:58)
             at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:195)
             ... 64 more
            20:26:20,063 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
            javax.faces.FacesException: Error calling action method of component with id _tagId0:_tagId14
             at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:74)
             at javax.faces.component.UICommand.broadcast(UICommand.java:106)
             at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90)
             at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:164)
             at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:316)
             at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
             at javax.faces.webapp.FacesServlet.service(FacesServlet.java:106)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
             at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:23)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
             at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
             at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
             at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
             at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:54)
             at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:174)
             at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
             at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
             at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
             at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
             at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
             at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
             at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BasePro
            tocol.java:663)
             at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
             at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
             at java.lang.Thread.run(Thread.java:595)
            Caused by: javax.faces.el.EvaluationException: /create-profile.xhtml @114,96 action="#{profile.create}": java.
            lang.RuntimeException: org.jboss.tm.JBossRollbackException: Unable to commit, tx=TransactionImpl:XidImpl[Forma
            tId=257, GlobalId=dell405/43, BranchQual=, localId=43] status=STATUS_NO_TRANSACTION; - nested throwable: (org.
            hibernate.exception.GenericJDBCException: Could not execute JDBC batch update)
             at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:73)
             at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
             ... 28 more
            Caused by: java.lang.RuntimeException: org.jboss.tm.JBossRollbackException: Unable to commit, tx=TransactionIm
            pl:XidImpl[FormatId=257, GlobalId=dell405/43, BranchQual=, localId=43] status=STATUS_NO_TRANSACTION; - nested
            throwable: (org.hibernate.exception.GenericJDBCException: Could not execute JDBC batch update)
             at org.jboss.aspects.tx.TxPolicy.handleEndTransactionException(TxPolicy.java:198)
             at org.jboss.aspects.tx.TxPolicy.endTransaction(TxPolicy.java:180)
             at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:87)
             at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:192)
             at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
             at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
             at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
             at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:81)
             at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
             at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
             at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
             at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
             at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
             at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
             at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
             at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:190)
             at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
             at $Proxy282.create(Unknown Source)
             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:585)
             at com.sun.el.parser.AstValue.invoke(AstValue.java:130)
             at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:274)
             at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
             at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:69)
             ... 29 more
            Caused by: org.jboss.tm.JBossRollbackException: Unable to commit, tx=TransactionImpl:XidImpl[FormatId=257, Glo
            balId=dell405/43, BranchQual=, localId=43] status=STATUS_NO_TRANSACTION; - nested throwable: (org.hibernate.ex
            ception.GenericJDBCException: Could not execute JDBC batch update)
             at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:369)
             at org.jboss.aspects.tx.TxPolicy.endTransaction(TxPolicy.java:175)
             ... 53 more
            Caused by: org.hibernate.exception.GenericJDBCException: Could not execute JDBC batch update
             at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:91)
             at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:79)
             at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
             at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:202)
             at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:230)
             at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:140)
             at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListen
            er.java:296)
             at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
             at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1009)
             at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:356)
             at org.hibernate.transaction.CacheSynchronization.beforeCompletion(CacheSynchronization.java:59)
             at org.jboss.tm.TransactionImpl.doBeforeCompletion(TransactionImpl.java:1488)
             at org.jboss.tm.TransactionImpl.beforePrepare(TransactionImpl.java:1107)
             at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:321)
             ... 54 more
            Caused by: java.sql.BatchUpdateException: failed batch
             at org.hsqldb.jdbc.jdbcStatement.executeBatch(Unknown Source)
             at org.hsqldb.jdbc.jdbcPreparedStatement.executeBatch(Unknown Source)
             at org.jboss.resource.adapter.jdbc.WrappedStatement.executeBatch(WrappedStatement.java:517)
             at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:58)
             at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:195)
             ... 64 more
            
            


            • 3. Re: No Error messages when Session bean / Action not called
              Gavin King Master

              Turn off JDBC batch updates in Hibernate, and you will probably get a better exception from your JDBC driver.

              This is a Hibernate problem, not related to Seam.