I am getting the following error:
Caused by: com.jcraft.jsch.JSchException: invalid privatekey: [B@26120bf2
at com.jcraft.jsch.KeyPair.load(KeyPair.java:747)
at com.jcraft.jsch.KeyPair.load(KeyPair.java:561)
at com.jcraft.jsch.IdentityFile.newInstance(IdentityFile.java:40)
at com.jcraft.jsch.JSch.addIdentity(JSch.java:407)
at com.jcraft.jsch.JSch.addIdentity(JSch.java:388)
at org.apache.camel.component.file.remote.SftpOperations.createSession(SftpOperations.java:184)
at org.apache.camel.component.file.remote.SftpOperations.connect(SftpOperations.java:115)
What is the cause and how do I resolve this?