Announcement

Collapse
No announcement yet.

java.io.IOException: Could not completely read file

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • java.io.IOException: Could not completely read file

    I have a File Reader (SFTP) that copies files from ftp to local drive.

    i get this error
    java.io.IOException: Could not completely read file

    I have tried increasing the file age, and have unchecked the "Check File age"
    same error.

    The files are not still being written, and I can copy them via Filezilla or WINSCP.

    Any ideas?

  • #2
    See if setting the File Type to Binary under your Source channel helps - if it's not set already.

    Comment


    • #3
      It did not help

      Comment


      • #4
        I am guessing you are polling too frequently for files, or the file size is too large so it conflicts with the polling time.
        HL7v2.7 Certified Control Specialist!

        Comment


        • #5
          Originally posted by siddharth View Post
          I am guessing you are polling too frequently for files, or the file size is too large so it conflicts with the polling time.
          Nope, only polling once a day. File size is small < 1MB.

          Comment


          • #6
            OKay. What does you channel look like. Can you attach, if not a screenshot of the source connector.
            Also, is it using sftp or ftp?
            HL7v2.7 Certified Control Specialist!

            Comment


            • #7
              There is nothing special about the channel at all, SFTP all default settings.
              I guess my question is more, does anyone know of this happening before, and maybe it's the SFTP server setup on that side?

              Comment


              • #8
                Anyone?
                I did find out that it is a Titan FTP server.

                Comment


                • #9
                  Are you using a try/catch loop to make sure that is actually the only thing happening?

                  Code:
                  try{
                     //stuff
                  }
                  catch(e){
                     logger.info(e);
                  }
                  finally{
                     //blah
                  }

                  Comment


                  • #10
                    No it's just a file reader source connector. Don't think you can wrap a file reader source connector in a javascript try catch block.

                    Comment


                    • #11
                      Were you able to reproduce the issue on FileZilla or any other software. If you do, then it is likely a settings problem on the sftp, which might be aborting connection abruptly.
                      HL7v2.7 Certified Control Specialist!

                      Comment


                      • #12
                        Filezilla and WinSCP both work just fine.

                        Comment


                        • #13
                          Hmm. Are these HL7 messages on a file? or is it CSV?

                          An illegal string character is then the most likely candidate which can cause the reading stream to stop.
                          Those are visible on Notepad++. Can you try?
                          Last edited by siddharth; 08-18-2016, 05:49 AM. Reason: correction
                          HL7v2.7 Certified Control Specialist!

                          Comment


                          • #14
                            They are EDI files. files are fine. When I download them using WinSCP, then use Mirth to process them, the read and process with no issues.

                            Comment

                            Working...
                            X