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

Problem with FileCopy on Talend 7.2.1 with Oracle JDK11

Hi all!,

 

I've just migrate from Talend 7.1.1 to Talend 7.2.1 for use jdk11 (oracle), and when copying big files from one directory to another, talend complains with this log:

 

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.talend.FileCopy$1 (file:/C:/work/desarrollo/ide/TOS_DI-Win32-20190620_1446-V7.2.1/configuration/.m2/repository/org/talend/libraries/filecopy/6.0.0/filecopy-6.0.0.jar) to method java.nio.DirectByteBuffer.cleaner()
WARNING: Please consider reporting this to the maintainers of org.talend.FileCopy$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Exception in thread "main" java.lang.NoClassDefFoundError: sun/misc/Cleaner
at org.talend.FileCopy$1.run(FileCopy.java:181)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at org.talend.FileCopy.clean(FileCopy.java:175)
at org.talend.FileCopy.copyFileL(FileCopy.java:152)
at org.talend.FileCopy.copyFile(FileCopy.java:44)
at local_project.extractionmoduleorchestration_1_7.ExtractionModuleOrchestration.tFileList_3Process(ExtractionModuleOrchestration.java:21055)
at local_project.extractionmoduleorchestration_1_7.ExtractionModuleOrchestration.tFileList_5Process(ExtractionModuleOrchestration.java:20830)
at local_project.extractionmoduleorchestration_1_7.ExtractionModuleOrchestration.tFileList_4Process(ExtractionModuleOrchestration.java:20462)
at local_project.extractionmoduleorchestration_1_7.ExtractionModuleOrchestration.tFileArchive_1Process(ExtractionModuleOrchestration.java:19896)
at local_project.extractionmoduleorchestration_1_7.ExtractionModuleOrchestration.tFixedFlowInput_2Process(ExtractionModuleOrchestration.java:19683)
at local_project.extractionmoduleorchestration_1_7.ExtractionModuleOrchestration.tFixedFlowInput_1Process(ExtractionModuleOrchestration.java:18419)
at local_project.extractionmoduleorchestration_1_7.ExtractionModuleOrchestration.tDBInput_1Process(ExtractionModuleOrchestration.java:17707)
at local_project.extractionmoduleorchestration_1_7.ExtractionModuleOrchestration.tRunJob_26Process(ExtractionModuleOrchestration.java:17110)
at local_project.extractionmoduleorchestration_1_7.ExtractionModuleOrchestration.tRunJob_9Process(ExtractionModuleOrchestration.java:16874)
at local_project.extractionmoduleorchestration_1_7.ExtractionModuleOrchestration.tRunJob_15Process(ExtractionModuleOrchestration.java:16648)
at local_project.extractionmoduleorchestration_1_7.ExtractionModuleOrchestration.tMSSqlConnection_3Process(ExtractionModuleOrchestration.java:7018)
at local_project.extractionmoduleorchestration_1_7.ExtractionModuleOrchestration.tDBConnection_3Process(ExtractionModuleOrchestration.java:6701)
at local_project.extractionmoduleorchestration_1_7.ExtractionModuleOrchestration.tDBConnection_2Process(ExtractionModuleOrchestration.java:6400)
at local_project.extractionmoduleorchestration_1_7.ExtractionModuleOrchestration.tDBConnection_1Process(ExtractionModuleOrchestration.java:6256)
at local_project.extractionmoduleorchestration_1_7.ExtractionModuleOrchestration.tFileDelete_3Process(ExtractionModuleOrchestration.java:6109)
at local_project.extractionmoduleorchestration_1_7.ExtractionModuleOrchestration.tDBInput_2Process(ExtractionModuleOrchestration.java:5903)
at local_project.extractionmoduleorchestration_1_7.ExtractionModuleOrchestration.tDBInput_3Process(ExtractionModuleOrchestration.java:4555)
at local_project.extractionmoduleorchestration_1_7.ExtractionModuleOrchestration.tJava_4Process(ExtractionModuleOrchestration.java:4130)
at local_project.extractionmoduleorchestration_1_7.ExtractionModuleOrchestration.tRunJob_1Process(ExtractionModuleOrchestration.java:3541)
at local_project.extractionmoduleorchestration_1_7.ExtractionModuleOrchestration.tJava_3Process(ExtractionModuleOrchestration.java:2786)
at local_project.extractionmoduleorchestration_1_7.ExtractionModuleOrchestration.runJobInTOS(ExtractionModuleOrchestration.java:33078)
at local_project.extractionmoduleorchestration_1_7.ExtractionModuleOrchestration.main(ExtractionModuleOrchestration.java:32637)
Caused by: java.lang.ClassNotFoundException: sun.misc.Cleaner

 

Is this a bug on component? I've searched on community forums without luck.

 

Thanks in advance!

 

Regards

Labels (2)
1 Reply
Anonymous
Not applicable
Author

It looks like this is a bug and that it has been raised here: https://jira.talendforge.org/browse/TDI-42230?jql=text%20~%20%22org.talend.FileCopy%22

I'm afraid that it sounds like you will need to wait for 7.3.1 for this ti be fixed in the Open Source product. You should be able to workaround this by using a tJava and and writing some Java. An example of the sort of code you *could* use (there will be other options) is here...
https://www.geeksforgeeks.org/moving-file-one-directory-another-using-java/