Error during Uploading a File

Hey am stuck in a problem here am trying to upload a file using HttpOutputStream at the client side and at the server side trying to read the file using ServletInputStream .Everytime in the middle of writing the file from ServletInputStream i encounter the following error .
Kindly help !!!!!!!!!!!!!!!!!
java.net.SocketTimeoutException: Read timed out
     at java.net.SocketInputStream.socketRead0(Native Method)
     at java.net.SocketInputStream.read(SocketInputStream.java:129)
     at org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:747)
     at org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer.doRead(InternalInputBuffer.java:777)
     at org.apache.coyote.http11.filters.IdentityInputFilter.doRead(IdentityInputFilter.java:115)
     at org.apache.coyote.http11.InternalInputBuffer.doRead(InternalInputBuffer.java:712)
     at org.apache.coyote.Request.doRead(Request.java:429)
     at org.apache.coyote.tomcat5.InputBuffer.realReadBytes(InputBuffer.java:290)
     at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:374)
     at org.apache.coyote.tomcat5.InputBuffer.read(InputBuffer.java:305)
     at org.apache.coyote.tomcat5.CoyoteInputStream.read(CoyoteInputStream.java:179)
     at common.UploadServlet.doGet(UploadServlet.java:104)
     at common.UploadServlet.doPost(UploadServlet.java:255)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
     at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
     at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
     at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
     at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
     at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
     at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
     at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
     at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
     at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
     at java.lang.Thread.run(Thread.java:595)

Which version of portal are you using

Similar Messages

  • Getting error while uploading multiple files in sharepoint hosted app in 2013 with REST API

    Hi All,
    In one of my tasks, I was struck with one issue, that is "While uploading multiple files into custom list with REST API".
    Iam trying to upload multiple files in library with REST calls for an APP development, my issue is if i wants to upload 4 image at once its storing only
    3 image file and further giving "Conflict" error". Below is the attached screenshot of exact error.
    Error within screenshot are : status Code : 409
    status Text :conflict
    For this operation i am uploading different files as an attachment to an list item, below is the code used for uploading multiple files.
    my code is
    function PerformUpload(listName, fileName, listItem, fileData)
        var urlOfAttachment="";
       // var itemId = listItem.get_id();
        urlOfAttachment = appWebUrl + "/_api/web/lists/GetByTitle('" + listName + "')/items(" + listItem + ")/AttachmentFiles/add(FileName='" + fileName + "')"
        // use the request executor (cross domain library) to perform the upload
        var reqExecutor = new SP.RequestExecutor(appWebUrl);
        reqExecutor.executeAsync({
            url: urlOfAttachment,
            method: "POST",
            headers: {
                "Accept": "application/json; odata=verbose",
                "X-RequestDigest": digest              
            contentType: "application/json;odata=verbose",
            binaryStringRequestBody: true,
            body: fileData,
            success: function (x, y, z) {
                alert("Success!");
            error: function (x, y, z) {
                alert(z);

    Hi,
    THis is common issue if your file size exceeds 
     upload a document of size more than 1mb. worksss well for kb files.
    https://social.technet.microsoft.com/Forums/office/en-US/b888ac78-eb4e-4653-b69d-1917c84cc777/getting-error-while-uploading-multiple-files-in-sharepoint-hosted-app-in-2013-with-rest-api?forum=sharepointdevelopment
    or try the below method
    https://social.technet.microsoft.com/Forums/office/en-US/40b0cb04-1fbb-4639-96f3-a95fe3bdbd78/upload-files-using-rest-api-in-sharepoint-2013?forum=sharepointdevelopment
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Error while uploading .xml file for Customer/Vendor List for Italy

    Hi All,
    We are facing problem while uploading the .xml file in DMEE transaction for the new Customer/Vendor List for Italy.
    We have followed the entire process given in the OSS Note(1090857).
    We have SAP 4.6c and followed the below steps:
    1. Created ID-FI-IT Development class
    2. Added domains
    3. Added Data elements
    4. Tried to upload the given .xml file and got any error saying ".xml file could not be interpreted".
    Also there is a .SAR file mentioned to upload if we receive any errors while uploading .xml file.
    Tried uploading the .SAR file also. STill we are recieving the same Error.
    Can any one of you help us out.
    Thanks in Advance.
    Ramesh

    Ok, we upload .SAR file in this way:
    1. unpack .SAR file with SAPCAR.EXE program. Yuo obtain 2 files
    R492445.P9C and K492445.P9C
    2. put K492445.P9C in directory \SAPMNT\TRANS\COFILES and put R492445.P9C in directory \SAPMNT\TRANS\DATA of your system (DEV, TST or PRD)
    3. Use Tx STMS. If You want create DMEE tree in DEV system, go to DEV import queue. Choose menu Extras | Other requests | Add. Insert P9CK492445 in Transp. request field.
    4. Import the request. This creates the DMEE tree. You don't need ti upload XML file after. You can see the DMEE tree created with Tx DMEE and inserting
    Tree type        UMS1            
    Format tree     IT_CUST_VEN_LIST
    5. after continue follow the note
    I hope this help you
    Roberto

  • Error while uploading tiff file using report "RSTXLDMC"

    Hi Experts,
    I am trying to upload .tif file into SAP usinf report "RSTXLDMC".
    Getting below error.
    Uploading TIFF Files to SAPscript Texts
    Load File
    c:\file.tif
    The file contains    134,412  bytes
    This is a TIFF file with MOTOROLA byte order
    First IFD offset:                                        8
    Reading IFD from offset          8  Number of Tags         13
    ImageWidth:                                          5,120
    ImageLength:                                         6,590
    Compression:                                             2
    Photometric Interpretation:                              0
    Number of StripOffsets:                                  5
    RowsPerStrip:                                        1,636
    Number of StripByteCounts:                               5
    XResolution:                                           600  /          1
    YResolution:                                           600  /          1
    ResolutionUnit:                                          2
    This is a baseline TIFF 6.0 BILEVEL file
    TIFF upload not possible, compression type 2 not supported
    How to solve this ????
    Please help.
    Regards,
    SVS

    Dear Vijay,
    I have one tiff 6.0 image which i am passing to program "RSTXLDMC".
    I have not done any conversion or changes in the file.
    Regards,
    Sagar Sontakke

  • (409) Conflict Error while uploading the file into Sharepoint library

    Getting the below error while uploading the file into Sharepoint library.
    (409) Conflict. at System.Net.HttpWebRequest.GetResponse() at Microsoft.SharePoint.Client.SPWebRequestExecutor.Execute() at Microsoft.SharePoint.Client.File.SaveBinary(ClientContext context, String serverRelativeUrl,
    Stream stream, String etag, Boolean overwriteIfExists
    I have used the below code:
    ClientOM.File.SaveBinaryDirect(clientContext, "/Shared%20Documents/NewDocument.pptx", memoryStream, true);
    Thanks in advance.

    May be issue is with path.
    https://server/ should be there instead of
    subsite path(https://server/path/path)
    in the client context
    Check the below link
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/fbb38b10-1127-48a6-a65f-0301edd766c4/the-remote-server-returned-an-error-409-conflict-error-while-uploading-files-to-sharepoint?forum=sharepointdevelopmentlegacy

  • UCCX 8.0 "Error while uploading the file. Please try again."

    I was on UCCX  version 8.0.2.11003-10 and i was able to upload an script with the same name as an old one (overwrite).
    Upgrade to  UCCX 8.0.2.11004-12 and now I am receiving the error: "Error while uploading the file. Please try again."
    There was a bug CSCth09248 that affected version 7 but supposed to be fixed on version 8 and was fixed on an earlier version. But after moving to a minor patch, problem came back...
    Any ideas?

    Hi,
    I belive the bug was initially opened to fix the issue when uploading script fails when using wizard to configure uccx.
    But now they have re-opened the same bug instead of opened a new one for the issue that you have.
    I looked at the case attached to that bug, case # 617145545. Below is the problem description that customer has which is same as yours and this bug has been re-opened to fix this particular problem.
    When I tried to upload a modified script with an existing file name, the message "script file already exists.
    Overwrite existing script file, continue?" comes up and when I select "OK" then,
    it dispaly Status "Error while uploading the file.  Please try again".
    If I remove an existing file first, it will upload fine.  
    Using UCCX Admin 8.0.2.11004-12 and UCCX Editor 8.0(2.0).
    Thanks
    Ankita

  • RFBILA00 - Error during opening of file

    Hello everyone!
    Can someone provide me some help regarding a error message when executing RFBILA00: the message is very strange due to the fact that I have another system an I can write to my c:/temp directory the extract to consolidation. It goes like this: Error during opening of file c:\temp\EXTRACT_CS_CO.txt
    I've also check all the costumizing between the two systems and they are equal.
    Thanks in advanced,
    David Resende

    Deat Paulo,
    Thank you for your fast response!
    Could it be that the path indicated in the unix configuration isn't valid? I've check this over and over and I don't see any difference between the two systems I have. One works and the other don't!
    I've check the customizing via transaction FILE, and everything is equal. Should I contact the systems administration to verify the existence of the unix path, or can I do it myself?
    Best regards,
    David

  • Lockbox-Error during opening of file C:\temp\142941

    When I execute the transaction :FLB2, I always meet the error message "Error during opening of file C:\temp\142941". Could anyone please tell me why it happens?  Many thanks!

    Hi Christina,
    I have experienced the same problem. When we run FLB2, the system creates a file and stores it somewhere. Via program RFBIDE00 the system tries to open the file. It probably has to do with the fact that you have several application servers but only one is installed as central instance.
    What in fact happens, is that the file is written to the application server on which you are logged on to on that moment but when the program RFBIDE00 is running it looksup the file on the central instance server.
    I have logged a OSS message for this.
    Kind Regards,
    Joep
    [email protected]

  • An error message uploading "large" files

    Hello!
    I'm getting an error message uploading "large" files (40-70 mb) - "unable to sync "file_name" due to server error". This message occurs only with a "large" files. The files up to 10 mb syncs perfectly and all of my files are correct (no issues with a "Windows-reserved / trailing" characters or "files in use").
    I pay 90 usd montly to Adobe and still need to use free services like Wetransfer or Dropbox. Please help.
    Thank you!
    Mindaugas

    I'm having this same problem and have written other posts but no replies. The file size for a single file is supposed to be something like 1-2 gig. How can a 40-70 meg file not work? It seems like the cloud storage feature is a selling point only and not fully realized yet. I love the interface and the idea but it's unrelaible to sync up, leave work, arrive home and no "larger" files are available. Yep, back to Dropbox and Google drive unfortunately.

  • Syntax Error in uploading a file

    I am trying to upload a text file having two columns in a client dependent ztable zvalordreasons. On saving a syntax being thrown that is "The work area "STRUCT1 is not long enough".
    Can somebody tell me what this error could be ??
    REPORT  ZREASONUPLOAD.
    TABLES : ZVALORDREASONS.
    DATA : BEGIN OF struct1 occurs 0,
               LFARV type ZVALORDREASONS-LFARV,
               AUGRU type ZVALORDREASONS-AUGRU,
           END OF struct1.
    DATA : input_file LIKE struct1 occurs 10 with header line.
    SELECTION-SCREEN BEGIN OF BLOCK selectfile WITH FRAME title TEXT-001.
      PARAMETERS : selfile TYPE string DEFAULT
                   'C:\valreasons.txt'.
    SELECTION-SCREEN END OF BLOCK selectfile.
    START-OF-SELECTION.
    PERFORM upload.
    break-point.
    LOOP AT input_file INTO struct1.
      WRITE : / struct1-lfarv.
      WRITE :   struct1-augru.
    INSERT INTO zvalordreasons VALUES struct1.
    ENDLOOP.
    *INSERT zvalordreasons FROM TABLE input_file.
    FORM upload.
      REFRESH: input_file.
      CLEAR  : input_file.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        FILENAME                      = selfile
        FILETYPE                      = 'ASC'
        HAS_FIELD_SEPARATOR           = 'X'
        DAT_MODE                      = 'X'
      TABLES
        DATA_TAB                      = input_file
        EXCEPTIONS
        FILE_OPEN_ERROR               = 1
        FILE_READ_ERROR               = 2
        NO_BATCH                      = 3
        GUI_REFUSE_FILETRANSFER       = 4
        INVALID_TYPE                  = 5
        NO_AUTHORITY                  = 6
        UNKNOWN_ERROR                 = 7
        BAD_DATA_FORMAT               = 8
        HEADER_NOT_ALLOWED            = 9
        SEPARATOR_NOT_ALLOWED         = 10
        HEADER_TOO_LONG               = 11
        UNKNOWN_DP_ERROR              = 12
        ACCESS_DENIED                 = 13
        DP_OUT_OF_MEMORY              = 14
        DISK_FULL                     = 15
        DP_TIMEOUT                    = 16
        OTHERS                        = 17.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
           WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM.
    Edited by: Pawan Patel on Jan 3, 2008 7:14 AM

    Hi All,
    I have also encountered such error during my test upload of Hierarchy from a flat file.
    This is my exact error: u201CSyntax error in template RSTMPL9C, row 297u201D.
    After browsing hundreds of WebPages, I took a closer look at my infopackage. And whalah! Under the u201CExternal Data Tabu201D, I forgot to enter a value in the u201CNumber of Header Rows to be Ignoredu201D. And thatu2019s it. It solves the problem. I have successfully uploaded my hierarchy through flat file.
    Hope this could also help those who have encountered same problem.
    Sheila S.

  • Lsmw Error during the specify files

    While doing Material master upload thru lsmw...using Batch input method
    During the specify files step i am getting this error
    File Name 'Converted Data': Max. 45 Characters. Remaining data saved.
    Message no. /SAPDMC/LSMW_OBJ_060028
    Pls Guide me.......

    Hi,
    How you save your source file?  Need to be saved in  as TAB delimited file
    OK. Check link:
    http://www.sap123.com/a/98/#loading-material-masters-with-lsmw-direct-input-method
    http://www.slideshare.net/arun_bala1/sap-sd-lsmw-legacy-system-migration-workbench
    Regards,
    Biju K

  • PO attachment - Read error during upload

    Hi Gurus,
    I am getting the error when I am trying to attach any file in ME22N, by clicking the services for object button, create attachment, and select the attachment.
    The error message is "Read error during PC upload" and "The attachement has not been created".
    The system is upgraded to ECC 6 last year and have not tried this function before. Now the client want to use this functionality.
    Thanks in advance.
    Durai

    Hi Charlie,
    There is no message number appeared. In the bottom message bar " The attachment has not been created" appeared. In the seperate message window, " Read error during PC upload" is on the title and "Include file in the PC application, Try again?, is in the body.
    Hope I clarified your doubt.
    Thanks and regards
    Durai

  • Data upload error during uploading data in catalogs ( CCM 2.0 )

    Hi ,
    I am having problem during upload of data into catalogs of CCM 2.0. I think there is some problem with my file. When i click "Upload Schema" it just upload schema not the data. But if i am removing schema from file it is giving me error.
    Kindly if anyone can send me sample file for data upload in CCM 2.0 or steps to upload data correctly.
    Thanks & Regards,
    Kamal

    Hi,
    I don't understand very well, the standard characteristic for images is /CCM/PICTURE.
    It's a complex characteristic composed by
    /CCM/DESCRIPTION
    /CCM/URL
    /CCM/MIME_TYPE. (for example image/jpeg).
    If your problems still exist, you can send me your file
    Regards

  • Error in uploading a file in server

    Hi,
    We are working in a application whose technologies are Flex 4.0 and .Net 2010.
    We are using .Net WCF Service for interacting with backend from the Flex front end.
    In our application, we have requirement to upload a file from the client into a server.
    We faced the following issue,
    Security violation Issue #2032.
    Solution: We have found that there is a sandbox restriction to access other domains, then we have placed the crossdomain.xml, which resolves the issue.
    But this solution works only in the IE.
    We are still getting the same error (Error #2032: Stream Error.) in other browsers - FireFox, Chrome and Safari.
    Please let us know if there are any suggestions or solutions for this issue.
    Regards,
    Guru

    Siva,
    You must apply modifiable binary type in wdDoInit of controller:
    ISimpleType stype =
      wdContext
        .node<YourNode>()
          .getNodeInfo()
            .getAttribute("FileResource")
              .getModifiableSimpleType();
    IWDModifiableBinaryType mtype = (IWDModifiableBinaryType)stype;
    /* Optional steps: affects only FileDownload control */
    /* mtype.setMimeType( WDWebResourceType.JPG_IMAGE);  */
    /* mtype.setFileName( "picture.jpg" );               */
    Sure, to make above work you must use binary type in context designer.
    Valery Silaev
    SaM Solutions
    http://www.sam-solutions.net

  • Error while uploading a file using ke13 transactoin

    Hi..
    We have the following error when uploading a project plan by cost element excel upload using KE13 transaction...
    There is a z program that calls this ke13 program while uploading. The excel file is split into x files and uploaded..
    THe error is: Quantity Unit HR cannot be converted to & and error occured when generating data for planning processor...
    Any idea if someone face similar situation..
    Any clue would help us..
    Thanks,
    Kanthi.

    Hi,
        Covert quantity to char and upload the data.
    Regards
    Amole

Maybe you are looking for