1 Reply Latest reply on May 17, 2008 9:32 AM by graben

    javax.ejb.EJBTransactionRolledbackException: java.util.ArrayList

    ashvini

      i am kind of getting errors with each step i move forward with seam.

      I am having a jsf page manualTags.jsp, SLSB ManualTagService.java and an entity bean ManualTag.

      The manualTags.jsp has a search criteria and a seach button, on clicking that should retirve the result in the datatable on the same page.

      The problem i am facing is i can get the datatable on the page if i remove the code for search button, but when i try to go as per the business
      that is click search button and then render datatable its giving me wierd errors.


      2008-05-15 17:43:19,048 ERROR
      javax.servlet.ServletException: #{manualTagService.getAl\}: javax.ejb.EJBTransactionRolledbackException: java.util.ArrayList
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:256

      I have no clue where exactly the problem is, i have tried various combinations of the code.


      The code i am using is as follows.
      The jsp page has
                





      
      <h:commandButton value="Search" action="#{manualTagService.getAll}" />
      
      <h:dataTable value="#{ManualTags}" rendered ="#{manualTagService.renderTable}"
      
      
      The SLSB code
      
      @Stateless
      
      @Scope(ScopeType.SESSION)
      
      @Name("manualTagService")
      
      @Interceptors(SeamInterceptor.class)
      
      public class ManualTagServiceBean implements ManualTagService, Serializable {
      
      @Out
      
           @In (create = true, required=false)
      
           private ManualTag manualTag;
      
      
           
      
           @DataModel
      
           @Out(required=false)
      
           private List<ManualTag> ManualTags;
      
           
      
      @Factory("ManualTags")
      
           public void findManualTags() {
      
                System.out.println("am i coming here befopre the query *****"+ this.manualTag.getLocation());
      
                
      
                ManualTags =  (List)manager.createQuery("from ManualTag mt where mt.entryLocationId = '"+manualTag.getLocation()+"'" ).getResultList();
      
      }
      
      



      any help will be appreciated.
      Thanks in advance