[ https://issues.apache.org/jira/browse/VFS-113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12510183
]
Mario Ivankovits commented on VFS-113:
--------------------------------------
I am out of time at the moment.
So if its a threading issue, you could create your own FileSystemManager per Thread.
Just have a look at the VFS.java source and do the same, just store the reference in an ThreadLocal.
Hope this is a appropriate workaround for the moment.
> 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