commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Rademacher (JIRA)" <>
Subject [jira] Commented: (VFS-113) NullPointerException during getting InputStream from SftpFileObject
Date Tue, 20 Mar 2007 07:33:32 GMT


Tim Rademacher commented on VFS-113:

It's been a while since I wrote this. ;-) So by now, the only exception I get while trying
to reproduce this was this IOException. As far as I remember, this has the same origin as
the NullPointerException.

But I'll keep on trying to get you a stacktrace of the NullPointerException!



org.apache.commons.vfs.FileSystemException: Could not copy "sftp://blavla@blabla/blabla.txt"
to "sftp://blavla@blabla/archive/blabla.txt".
	at org.apache.commons.vfs.provider.AbstractFileObject.copyFrom(
	at org.apache.commons.vfs.provider.AbstractFileObject.moveTo(
	at de.inka.service.file.InkaFileSystemConnection.move(
	... 11 more
Caused by: org.apache.commons.vfs.FileSystemException: Could not read file "sftp://blavla@blabla/blabla.txt".
	at org.apache.commons.vfs.provider.AbstractFileObject.getInputStream(
	at org.apache.commons.vfs.provider.DefaultFileContent.getInputStream(
	at org.apache.commons.vfs.FileUtil.writeContent(
	at org.apache.commons.vfs.FileUtil.copyContent(
	at org.apache.commons.vfs.provider.AbstractFileObject.copyFrom(
	... 13 more
Caused by: 4: 
	at com.jcraft.jsch.ChannelSftp._get(
	at com.jcraft.jsch.ChannelSftp.get(
	at com.jcraft.jsch.ChannelSftp.get(
	at org.apache.commons.vfs.provider.sftp.SftpFileObject.doGetInputStream(
	at org.apache.commons.vfs.provider.AbstractFileObject.getInputStream(
	... 17 more
Caused by: inputstream is closed
	at com.jcraft.jsch.ChannelSftp.fill(
	at com.jcraft.jsch.ChannelSftp.header(
	at com.jcraft.jsch.ChannelSftp._get(
	... 21 more

> NullPointerException during getting InputStream from SftpFileObject
> -------------------------------------------------------------------
>                 Key: VFS-113
>                 URL:
>             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:
For additional commands, e-mail:

View raw message