title: java.lang.ClassCastException: com.jcraft.jsch.ChannelSftp$2 cannot be cast to java.io.FileInputStream
body: <p>I'm downloading a file from remote server using sftp channel as inputstream and trying to cast into fileinputstream. Then I'm receiving following exception from jvm 1.8</p>
  
  <p>java.lang.ClassCastException: com.jcraft.jsch.ChannelSftp$2 cannot be cast to java.io.FileInputStream</p>
  
  <p>Please someone help. I'm stuck here</p>