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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
MdG_IntoDataNL
Contributor II
Contributor II

Route fails with java.lang.NoSuchMethodError: org.apache.camel.component.file.remote.RemoteFileEndpoint.isPreSort()Z

Hi There!

 

Hope somebody can help me with this one, I have a simple route which scans an sftp directory. When files are found the route creates a message and puts that message in a ActiveMQ queue.

0683p000009M4Ye.png

 

When running the above, the route crashes with the following error (removed the username/password and server):

Starting job triggerSFTPscan at 10:05 13/05/2019.

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/Applications/Talend/FincoFuel_TOSESB-7.1.1/studio/configuration/.m2/repository/org/talend/libraries/activemq-all-5.15.5/6.0.0-SNAPSHOT/activemq-all-5.15.5-6.0.0-SNAPSHOT.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/Applications/Talend/FincoFuel_TOSESB-7.1.1/studio/configuration/.m2/repository/org/talend/libraries/slf4j-log4j12-1.7.5/6.0.0/slf4j-log4j12-1.7.5-6.0.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
[statistics] connecting to socket on port 3516
[statistics] connected
[WARN ]: org.apache.camel.component.file.remote.SftpConsumer - Consumer SftpConsumer[sftp://username@server:22/?password=xxxxxx] failed polling endpoint: sftp://username@server:22/?password=xxxxxx. Will try again at next poll. Caused by: [java.lang.NoSuchMethodError - org.apache.camel.component.file.remote.RemoteFileEndpoint.isPreSort()Z]
java.lang.NoSuchMethodError: org.apache.camel.component.file.remote.RemoteFileEndpoint.isPreSort()Z
	at org.apache.camel.component.file.remote.SftpConsumer.doPollDirectory(SftpConsumer.java:157)
	at org.apache.camel.component.file.remote.SftpConsumer.pollDirectory(SftpConsumer.java:87)
	at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:124)
	at org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:174)
	at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:101)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)

But if i disable the ActiveMq components, the route works fine. 

0683p000009M4V2.png

 

To me it looks like there are some libraries with different versions that can cause this behaviour, but i can not figure out how to solve this. Does anybody have any suggestions? 

Labels (2)
4 Replies
nfz11
Creator III
Creator III

What version of Talend studio are you using?  Can you upgrade to the latest?

MdG_IntoDataNL
Contributor II
Contributor II
Author

I'm on  Talend Open Studio for ESB Version: 7.1.1.20181026_1147

 

If i try to update from studio, it tells me that there is no update found. Guess i'm on the latest?

MdG_IntoDataNL
Contributor II
Contributor II
Author

We still are having this issue, does anyone have an idea of how to solve this?

PaulTegelaar
Contributor
Contributor

Hey,

 

I think I found the issue. I've exported two routes from a 7.1 TOS. It seems to have to do with the dependencies that are used by the connection factory. You can test it yourself.

 

Regards,

 

Paul


testFTPError.zip