[ 
https://issues.apache.org/jira/browse/VFS-113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12510170
 ] 

Mario Ivankovits commented on VFS-113:
--------------------------------------

Hi,

this is your real exception:

Caused by: com.jcraft.jsch.JSchException: Session.connect: 
java.net.ConnectException: Connection refused: connect
at com.jcraft.jsch.Session.connect(Unknown Source)
at com.jcraft.jsch.Session.connect(Unknown Source)
at 
org.apache.commons.vfs.provider.sftp.SftpClientFactory.createConnection(SftpClientFactory.java:210)


It looks like some sort of network configuration problem, could you try to 
enable debugging of your ssh daemon.

In case you use OpenSSH, as far as I know you have to have the configuration 
option "PasswordAuthentication" set to yes to make the jsch library work.

> NullPointerException during getting InputStream from SftpFileObject
> -------------------------------------------------------------------
>
>                 Key: VFS-113
>                 URL: https://issues.apache.org/jira/browse/VFS-113
>             Project: Commons VFS
>          Issue Type: Bug
>            Reporter: Tim Rademacher
>             Fix For: 1.1
>
>         Attachments: SftpFileObject.diff
>
>
> Hi, 
> I experienced unregular NullPointerExceptions while getting an InputStream 
> from an SftpFileObject. It only occures in a multithreading environment.
> I made a patch. By now it seems to work!
> Regards,
> Tim

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to