commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mario Ivankovits (JIRA)" <j...@apache.org>
Subject [jira] Commented: (VFS-113) NullPointerException during getting InputStream from SftpFileObject
Date Wed, 04 Jul 2007 13:14:04 GMT

    [ 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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message