0 Replies Latest reply on Jun 30, 2010 5:06 AM by hieuhn.hieu.kypernet.com

    IllegalStateException: Could not commit transaction

    hieuhn.hieu.kypernet.com

      I have the problem after call method delete of POJO class on GateIn-3.0.0-GA. It display exception below:
      I didn't met error when I use GateIn-3.0.0-Beta05, it run smoothly


      18:14:56,562 ERROR [Exceptions] handled and logged exception
      java.lang.IllegalStateException: Could not commit transaction
              at org.jboss.seam.jsf.SeamPhaseListener.commitOrRollback(SeamPhaseListener.java:625)
              at org.jboss.seam.jsf.SeamPhaseListener.commitOrRollback(SeamPhaseListener.java:604)
              at org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsAfterPhase(SeamPhaseListener.java:345)
              at org.jboss.seam.jsf.SeamPhaseListenerWrapper.afterPortletPhase(SeamPhaseListenerWrapper.java:123)
              at org.jboss.seam.jsf.SeamPhaseListenerWrapper.afterPhase(SeamPhaseListenerWrapper.java:84)
      



      my Pojo class


      @Name("fileUploadBean")
      public class FileUploadBean {
           
           ...
           
          public void delete() {
              Utils.info(getClass(), "START delete()");
              this.wire();
              Utils.info(getClass(), "BEGIN delete: "+FacesUtil.getRequestParameter("path"));
              path = FacesUtil.getRequestParameter("path");
              if (path != null && path.length() > 0) {
                  this.jcrBrowser = new JCRBrowser();
                  jcrBrowser.connectRepository(REPOSITORY_NAME);
                  Utils.info(getClass(), "DOING delete: ");
                  if(jcrBrowser.deleteNode(path)){//If delete success, get documents in folder
                      Utils.info(getClass(), "delete()");
                      if (orderFormId != null && orderFormId.length() > 0) {
                          Node nodeFolder = jcrBrowser.createOrderFormNode(orderFormId);
                          documents = jcrBrowser.intFolder(nodeFolder);
                      }
                  }
              }
              Utils.info(getClass(), "END delete()");
          }
           
           ...
      
      }
      



      and this link below is full my code and log error
      POJO com.orderform.session.FileUploadBean
      log file
      Could someone help me to solved this problem?
      Thanks