Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Getting an error: Insufficient system resources exist to complete the

Hello,
I'm getting following error in one of my Talend jobs:
Exception in component tFileCopy_1
java.io.IOException: Insufficient system resources exist to complete the requested service
at sun.nio.ch.FileDispatcher.write0(Native Method)
at sun.nio.ch.FileDispatcher.write(FileDispatcher.java:44)
at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:100)
at sun.nio.ch.IOUtil.write(IOUtil.java:56)
at sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:203)
at sun.nio.ch.FileChannelImpl.transferToTrustedChannel(FileChannelImpl.java:449)
at sun.nio.ch.FileChannelImpl.transferTo(FileChannelImpl.java:520)
at org.talend.FileCopy.copyFileM(FileCopy.java:97)
at org.talend.FileCopy.copyFile(FileCopy.java:44)
at hfidataimport.hfidataimport_0_1.HFIDataImport.tFileCopy_1Process(HFIDataImport.java:6114)
at hfidataimport.hfidataimport_0_1.HFIDataImport.tFileExist_1Process(HFIDataImport.java:6003)
at hfidataimport.hfidataimport_0_1.HFIDataImport.tMSSqlInput_1Process(HFIDataImport.java:5843)
at hfidataimport.hfidataimport_0_1.HFIDataImport.tAccessInput_3Process(HFIDataImport.java:4043)
at hfidataimport.hfidataimport_0_1.HFIDataImport.tAccessInput_1Process(HFIDataImport.java:2484) disconnected
...
The job was running daily on schedule and was untouched when this started happening since last 2 days.
What could the reason be and what's the cure?
Thanks in Advance,
Aman
Labels (3)
7 Replies
Anonymous
Not applicable
Author

Whats the Size of the File you are copying and whats the Platform used?
Anonymous
Not applicable
Author

Its about 67 mb today and platform is Win XP. The file size increases daily by a few kbs.
Anonymous
Not applicable
Author

Hi
I got a link which tells that
On the Windows plateform, you can't copy a file bigger than 64Mb, an Exception in thread "main" java.io.IOException: Insufficient system resources exist to complete the requested service is thrown.
Ref:-http://www.rgagnon.com/javadetails/java-0064.html
Anyhow i tried the samples given in my system, its working fine.
Try to upgrade your java to lastest version.
Anonymous
Not applicable
Author

Thanks for the very quick reply lijolawrance 0683p000009MACn.png
Anonymous
Not applicable
Author

I have just started seeing this on Win XP, TIS 4.1.1.r50363.
The tFileCopy stops at exactly 102,400,000 bytes, while it should write/copy all 106,509,404 bytes.
Sounds like an arbitrarily imposed limit. Slightly smaller versions of the file have loaded without issues in the past.
Does the component just ask the operating system to make the copy or is it reading and writing the file directly?
The same large files on Windows Server 2008 R2 copy correctly.
My java is build 1.6.0_15-b03.
Is there an alternative to fTileCopy? I guess I could write a DOS batch script to do the copy but don't really want to do that.
Anonymous
Not applicable
Author

Hi
You can write a Java routine for copying files.
use java.nio.chanels package
Anonymous
Not applicable
Author

Any News on this topic?
Got the same problem with tfilecopy and 1.5GB file.
Win Server 2003 R2 x64 SP2
Java 6U31