Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-1667

Inconsistent behavior of File Upload Success/Failure with t:inputFileUpload component of Tomahawk 1.1.8

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.1.8
    • None
    • File Upload
    • App Server OS : HP-UX B.11.31
      Web Server OS : RHEL 5.7
      App Server : Weblogic 10.3.4
      Web Server : Apache Tomcat

    Description

      We are using below jars for implementing file upload feature with JSF 1.1
      1. tomahawk-1.1.8.jar
      2. commons-io-1.3.2.jar
      3. commons-fileupload-1.2.2.jar
      4. commons-beanutils.jar
      5. commons-codec.jar
      6. commons-collections.jar
      7. commons-digester.jar
      8.commons-el.jar
      9.commons-lang.jar
      10.commons-logging.jar
      11.commons-validator.jar
      12.myfaces-api-1.1.5.jar
      13.myfaces-impl-1.1.5.jar

      EAR 1 is deployed on Server 1 having JSP File , Backing Bean , Delegate
      EAR 2 is deployed on Server 2 having Facade , DAO

      In JSP File we are using below piece of code
      <t:inputFileUpload id="idReport1" styleClass="Browse" size="30" value="#

      {documentList.uploadFile}

      " </t:inputFileUpload>

      UploadedFile Class is used to bind the uploadFile object. This uploadedFile object is sent to DAO using delegate and facade layer.
      Flow of Call is as below :-
      BackBean -> Delegate -> Facade -> DAO -> DB

      We are getting below exception sometimes when file is uploaded.

      <Aug 22, 2013 10:35:31 PM IST> <Error> <HTTP> <BEA-101017> <[ServletContext@7339988[app:GRS-CAND-EAR module:ep path:/ep spec-version:2.5]] Root cause of ServletException.
      javax.faces.FacesException: Error calling action method of component with id bgcChkListForm:empFilesUploadDT:0:uploadLink
      at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72)
      at javax.faces.component.UICommand.broadcast(UICommand.java:109)
      at javax.faces.component.UIData.broadcast(UIData.java:517)
      at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:97)
      at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:171)
      Truncated. see log file for complete stacktrace
      Caused By: javax.faces.el.EvaluationException: Exception while invoking expression #

      {candBgcCheckListBean.uploadEmpFileToDB}

      at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:156)
      at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:61)
      at javax.faces.component.UICommand.broadcast(UICommand.java:109)
      at javax.faces.component.UIData.broadcast(UIData.java:517)
      at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:97)
      Truncated. see log file for complete stacktrace
      Caused By: java.lang.RuntimeException: java.lang.RuntimeException: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
      java.io.FileNotFoundException: /var/tmp/upload_50eda117_1408985bd8a__7ff7_01511152.tmp (No such file or directory (errno:2))
      at com.ultimatix.grs.bo.CandBgcCheckListBean.uploadEmpFileToDB(CandBgcCheckListBean.java:815)
      at sun.reflect.GeneratedMethodAccessor79663.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:132)
      Truncated. see log file for complete stacktrace
      Caused By: java.lang.RuntimeException: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
      java.io.FileNotFoundException: /var/tmp/upload_50eda117_1408985bd8a__7ff7_01511152.tmp (No such file or directory (errno:2))
      at com.ultimatix.grs.delegate.CandBgcCheckListDelegate.uploadEmpFileToDB(CandBgcCheckListDelegate.java:79)
      at com.ultimatix.grs.bo.CandBgcCheckListBean.uploadEmpFileToDB(CandBgcCheckListBean.java:776)
      at sun.reflect.GeneratedMethodAccessor79663.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      Truncated. see log file for complete stacktrace
      Caused By: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
      java.io.FileNotFoundException: /var/tmp/upload_50eda117_1408985bd8a__7ff7_01511152.tmp (No such file or directory (errno:2))
      at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
      at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
      at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
      at com.ultimatix.grs.facade.SLCandBgcCheckListFacade_h81otk_EOImpl_1034_WLStub.uploadEmpFileToDB(Unknown Source)
      at com.ultimatix.grs.delegate.CandBgcCheckListDelegate.uploadEmpFileToDB(CandBgcCheckListDelegate.java:74)
      Truncated. see log file for complete stacktrace

      Request you please provide resolution for the same.

      Attachments

        Activity

          People

            Unassigned Unassigned
            arpitkumar25 Arpit Kumar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified