web stats
java.io.IOException: Could not completely read file - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 08-15-2016, 01:16 PM
joshua_douglas joshua_douglas is offline
Mirth Newb
 
Join Date: Mar 2014
Posts: 16
joshua_douglas is on a distinguished road
Default 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?
Reply With Quote
  #2  
Old 08-15-2016, 01:35 PM
jcurry5 jcurry5 is offline
OBX.2 Kenobi
 
Join Date: May 2013
Posts: 59
jcurry5 is on a distinguished road
Default

See if setting the File Type to Binary under your Source channel helps - if it's not set already.
Reply With Quote
  #3  
Old 08-15-2016, 01:39 PM
joshua_douglas joshua_douglas is offline
Mirth Newb
 
Join Date: Mar 2014
Posts: 16
joshua_douglas is on a distinguished road
Default

It did not help
Reply With Quote
  #4  
Old 08-15-2016, 10:25 PM
siddharth siddharth is offline
Mirth Guru
 
Join Date: Feb 2013
Posts: 838
siddharth is on a distinguished road
Default

I am guessing you are polling too frequently for files, or the file size is too large so it conflicts with the polling time.
Reply With Quote
  #5  
Old 08-16-2016, 06:25 AM
joshua_douglas joshua_douglas is offline
Mirth Newb
 
Join Date: Mar 2014
Posts: 16
joshua_douglas is on a distinguished road
Default

Quote:
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.
Reply With Quote
  #6  
Old 08-16-2016, 07:04 AM
siddharth siddharth is offline
Mirth Guru
 
Join Date: Feb 2013
Posts: 838
siddharth is on a distinguished road
Default

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?
Reply With Quote
  #7  
Old 08-16-2016, 07:46 AM
joshua_douglas joshua_douglas is offline
Mirth Newb
 
Join Date: Mar 2014
Posts: 16
joshua_douglas is on a distinguished road
Default

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?
Reply With Quote
  #8  
Old 08-17-2016, 12:38 PM
joshua_douglas joshua_douglas is offline
Mirth Newb
 
Join Date: Mar 2014
Posts: 16
joshua_douglas is on a distinguished road
Default

Anyone?
I did find out that it is a Titan FTP server.
Reply With Quote
  #9  
Old 08-17-2016, 01:39 PM
BCMirthUser BCMirthUser is offline
OBX.2 Kenobi
 
Join Date: May 2015
Posts: 93
BCMirthUser is on a distinguished road
Default

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
}
Reply With Quote
  #10  
Old 08-18-2016, 06:07 AM
joshua_douglas joshua_douglas is offline
Mirth Newb
 
Join Date: Mar 2014
Posts: 16
joshua_douglas is on a distinguished road
Default

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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 01:12 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Mirth Corporation