You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Tim Rademacher (JIRA)" <ji...@apache.org> on 2007/02/28 14:39:57 UTC
[jira] Created: (VFS-113) NullPointerException during getting
InputStream from SftpFileObject
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
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
[jira] Commented: (VFS-113) NullPointerException during getting
InputStream from SftpFileObject
Posted by "Mario Ivankovits (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/VFS-113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12510174 ]
Mario Ivankovits commented on VFS-113:
--------------------------------------
Oh, sorry, mixed up things ... could you please provide a small test case to reproduce your exception.
Thanks!
> 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
[jira] Commented: (VFS-113) NullPointerException during getting
InputStream from SftpFileObject
Posted by "Mario Ivankovits (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/VFS-113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12482327 ]
Mario Ivankovits commented on VFS-113:
--------------------------------------
Yesterday I changed the sftp stuff to no longer read the whole file into memory but to use the stream based methods of jsch, so no it might be that this exception has goon .... or that it is even worse now ;-)
Would be glad if you could give it a try.
Thanks!
Ciao,
Mario
> 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
[jira] Commented: (VFS-113) NullPointerException during getting
InputStream from SftpFileObject
Posted by "Mario Ivankovits (JIRA)" <ji...@apache.org>.
[ 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
[jira] Commented: (VFS-113) NullPointerException during getting
InputStream from SftpFileObject
Posted by "Mario Ivankovits (JIRA)" <ji...@apache.org>.
[ 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
[jira] Resolved: (VFS-113) NullPointerException during getting
InputStream from SftpFileObject
Posted by "Mario Ivankovits (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/VFS-113?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mario Ivankovits resolved VFS-113.
----------------------------------
Resolution: Fixed
Fix Version/s: 1.1
I applied your patch, though, having a stacktrace of the npe to do further investigation would be great.
Thanks!
Ciao,
Mario
> 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
[jira] Commented: (VFS-113) NullPointerException during getting
InputStream from SftpFileObject
Posted by "vikas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/VFS-113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12510177 ]
vikas commented on VFS-113:
---------------------------
rg.apache.commons.vfs.FileSystemException: Could not read file "sftp://maan:maan@vikas/transport/source/students1.txt".
at org.apache.commons.vfs.provider.AbstractFileObject.getInputStream(AbstractFileObject.java:1163)
at org.apache.commons.vfs.provider.DefaultFileContent.getInputStream(DefaultFileContent.java:360)
at com.adeptia.indigo.services.transport.ftp.SecuredFtp.download(SecuredFtp.java:161)
at com.adeptia.indigo.services.transport.ftp.FtpSource.createInputStream(FtpSource.java:179)
at com.adeptia.indigo.services.transport.support.AbstractStreamSource.initialize(AbstractStreamSource.java:44)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:483)
at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(Unknown Source)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(Unknown Source)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown Source)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
at com.adeptia.indigo.utils.RemoteMBeanProxy$LocalHandler.invokeOperation(RemoteMBeanProxy.java:441)
at com.adeptia.indigo.utils.RemoteMBeanProxy$Handler.invoke(RemoteMBeanProxy.java:294)
at $Proxy2.initialize(Unknown Source)
at com.adeptia.indigo.jelly.ActivityTag.runSync(ActivityTag.java:313)
at com.adeptia.indigo.jelly.ActivityTag.doTag(ActivityTag.java:250)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:278)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:133)
at com.werken.blissed.jelly.JellyActivity.perform(JellyActivity.java:120)
at com.werken.blissed.ProcessEngine.enterState(ProcessEngine.java:391)
at com.werken.blissed.ProcessEngine.followTransition(ProcessEngine.java:509)
at com.werken.blissed.ProcessEngine.checkTransitions(ProcessEngine.java:458)
at com.werken.blissed.ProcessEngine.startProcess(ProcessEngine.java:366)
at com.werken.blissed.ProcessEngine.spawn(ProcessEngine.java:299)
at com.adeptia.indigo.processflow.BlissedProcessFlow.execute(BlissedProcessFlow.java:159)
at com.adeptia.indigo.transaction.IndigoTransaction.execute(IndigoTransaction.java:423)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:483)
at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(Unknown Source)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(Unknown Source)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown Source)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
at javax.management.remote.rmi.RMIConnectionImpl.doOperation(Unknown Source)
at javax.management.remote.rmi.RMIConnectionImpl.access$100(Unknown Source)
at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(Unknown Source)
at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(Unknown Source)
at javax.management.remote.rmi.RMIConnectionImpl.invoke(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
at sun.rmi.transport.Transport$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.commons.vfs.FileSystemException: Could not connect to SFTP server at "sftp://maan:maan@vikas/".
at org.apache.commons.vfs.provider.sftp.SftpFileSystem.getChannel(SftpFileSystem.java:144)
at org.apache.commons.vfs.provider.sftp.SftpFileObject.doGetInputStream(SftpFileObject.java:380)
at org.apache.commons.vfs.provider.AbstractFileObject.getInputStream(AbstractFileObject.java:1159)
... 53 more
Caused by: com.jcraft.jsch.JSchException: java.io.IOException: inputstream is closed
at com.jcraft.jsch.ChannelSftp.start(Unknown Source)
at com.jcraft.jsch.Channel.connect(Unknown Source)
at com.jcraft.jsch.Channel.connect(Unknown Source)
at org.apache.commons.vfs.provider.sftp.SftpFileSystem.getChannel(SftpFileSystem.java:123)
... 55 more
Caused by: java.io.IOException: inputstream is closed
at com.jcraft.jsch.ChannelSftp.fill(Unknown Source)
at com.jcraft.jsch.ChannelSftp.header(Unknown Source)
... 59 more
Tim Rademacher is saying right i debug the code i found one thread opens the connectionand return the input syteam stream.While the input
stream is processed ,another thread does anything with sftp. It gets the same SftpChannel from the FileSystem, opens it (again?) and closes it, when it's finished. Then the first thread seems to get the error.
I am facing this problem .
Please help me regards this.
What should i have done to resolve this problem
Thanks Vikas
> 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
[jira] Commented: (VFS-113) NullPointerException during getting
InputStream from SftpFileObject
Posted by "vikas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/VFS-113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12510171 ]
vikas commented on VFS-113:
---------------------------
no this is not my problem .
I resolved this problem by using jar jsch0.1.31
> 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
[jira] Commented: (VFS-113) NullPointerException during getting
InputStream from SftpFileObject
Posted by "Tim Rademacher (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/VFS-113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12483506 ]
Tim Rademacher commented on VFS-113:
------------------------------------
Hi, I experienced some errors while testing the new functionality:
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(AbstractFileObject.java:919)
at org.apache.commons.vfs.provider.AbstractFileObject.moveTo(AbstractFileObject.java:981)
at de.inka.service.file.InkaFileSystemConnection.move(InkaFileSystemConnection.java:463)
... 11 more
Caused by: org.apache.commons.vfs.FileSystemException: Could not close the input stream for file "sftp://d290009@santiago/data_santiago/zdm/java_jobs/dvoimport/test/PositionenInka3_1015.asc".
at org.apache.commons.vfs.provider.DefaultFileContent$FileContentInputStream.close(DefaultFileContent.java:525)
at org.apache.commons.vfs.FileUtil.writeContent(FileUtil.java:87)
at org.apache.commons.vfs.FileUtil.copyContent(FileUtil.java:103)
at org.apache.commons.vfs.provider.AbstractFileObject.copyFrom(AbstractFileObject.java:910)
... 13 more
Caused by: java.io.IOException: error
at com.jcraft.jsch.ChannelSftp$2.close(ChannelSftp.java:1178)
at java.io.BufferedInputStream.close(Unknown Source)
at org.apache.commons.vfs.util.MonitorInputStream.close(MonitorInputStream.java:115)
at java.io.BufferedInputStream.close(Unknown Source)
at org.apache.commons.vfs.util.MonitorInputStream.close(MonitorInputStream.java:115)
at org.apache.commons.vfs.provider.DefaultFileContent$FileContentInputStream.close(DefaultFileContent.java:521)
... 16 more
or
java.lang.NullPointerException
at com.jcraft.jsch.ChannelSftp.fill(ChannelSftp.java:2153)
at com.jcraft.jsch.ChannelSftp.header(ChannelSftp.java:2179)
at com.jcraft.jsch.ChannelSftp.access$7(ChannelSftp.java:2177)
at com.jcraft.jsch.ChannelSftp$2.read(ChannelSftp.java:1100)
at java.io.BufferedInputStream.read1(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at org.apache.commons.vfs.util.MonitorInputStream.read(MonitorInputStream.java:88)
at java.io.BufferedInputStream.read1(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at org.apache.commons.vfs.util.MonitorInputStream.read(MonitorInputStream.java:88)
at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(Unknown Source)
at sun.nio.cs.StreamDecoder$CharsetSD.implRead(Unknown Source)
at sun.nio.cs.StreamDecoder.read(Unknown Source)
at java.io.InputStreamReader.read(Unknown Source)
at com.Ostermiller.util.CSVLexer.zzRefill(CSVLexer.java:605)
at com.Ostermiller.util.CSVLexer.getNextToken(CSVLexer.java:789)
at com.Ostermiller.util.CSVParser.getLine(CSVParser.java:335)
at com.Ostermiller.util.LabeledCSVParser.setLabels(LabeledCSVParser.java:245)
at com.Ostermiller.util.LabeledCSVParser.getLine(LabeledCSVParser.java:211)
at de.inka.dvo.dao.FileImport.importFile(FileImport.java:199)
at de.inka.dvo.ExportController.doOnNewFile(ExportController.java:345)
at de.inka.dvo.dao.FileObserver.processForward(FileObserver.java:112)
at de.inka.dvo.dao.FileObserver.processForward(FileObserver.java:1)
at de.inka.util.observer.InkaObserver.update(InkaObserver.java:171)
at de.inka.util.observer.InkaObservable.notifyObservers(InkaObservable.java:483)
at de.inka.service.file.observer.FileObservable.processMessage(FileObservable.java:295)
at de.inka.service.file.observer.FileObservable.processMessage(FileObservable.java:1)
at de.inka.util.observer.InkaObservable$WorkerRunnable.run(InkaObservable.java:121)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
What I think is, that one thread opens the connection and returns the input stream to anywhere. While the input stream is processed, another thread does anything else with sftp. It gets the same SftpChannel from the FileSystem, opens it (again?) and closes it, when it's finished. Then the first thread seems to get the error.
I also got sometimes an InputStreamClosed Exception, which seems to support my theory.
I have to look further...
Regards
Tim
> 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
[jira] Commented: (VFS-113) NullPointerException during getting
InputStream from SftpFileObject
Posted by "vikas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/VFS-113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12510167 ]
vikas commented on VFS-113:
---------------------------
Hi Mario Ivankovits
I am using commons-vfs-20070703.jar
I am facing this problem
Exception ************************ org.apache.commons.vfs.FileSystemException: Could not connect to SFTP server at "sftp://maan:maan@vikas/".
org.apache.commons.vfs.FileSystemException: Could not connect to SFTP server at "sftp://maan:maan@vikas/".
at org.apache.commons.vfs.provider.sftp.SftpFileProvider.doCreateFileSystem(SftpFileProvider.java:99)
at org.apache.commons.vfs.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:81)
at org.apache.commons.vfs.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:62)
at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:641)
at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:582)
at com.adeptia.indigo.services.transport.ftp.SecuredFtp.connect(SecuredFtp.java:272)
at com.adeptia.indigo.services.transport.ftp.SecuredFtp.download(SecuredFtp.java:145)
at com.adeptia.indigo.services.transport.ftp.FtpSource.createInputStream(FtpSource.java:179)
at com.adeptia.indigo.services.transport.support.AbstractStreamSource.initialize(AbstractStreamSource.java:44)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:483)
at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(Unknown Source)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(Unknown Source)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown Source)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
at com.adeptia.indigo.utils.RemoteMBeanProxy$LocalHandler.invokeOperation(RemoteMBeanProxy.java:441)
at com.adeptia.indigo.utils.RemoteMBeanProxy$Handler.invoke(RemoteMBeanProxy.java:294)
at $Proxy2.initialize(Unknown Source)
at com.adeptia.indigo.jelly.ActivityTag.runSync(ActivityTag.java:313)
at com.adeptia.indigo.jelly.ActivityTag.doTag(ActivityTag.java:250)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:278)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:133)
at com.werken.blissed.jelly.JellyActivity.perform(JellyActivity.java:120)
at com.werken.blissed.ProcessEngine.enterState(ProcessEngine.java:391)
at com.werken.blissed.ProcessEngine.followTransition(ProcessEngine.java:509)
at com.werken.blissed.ProcessEngine.checkTransitions(ProcessEngine.java:458)
at com.werken.blissed.ProcessEngine.startProcess(ProcessEngine.java:366)
at com.werken.blissed.ProcessEngine.spawn(ProcessEngine.java:299)
at com.adeptia.indigo.processflow.BlissedProcessFlow.execute(BlissedProcessFlow.java:159)
at com.adeptia.indigo.transaction.IndigoTransaction.execute(IndigoTransaction.java:423)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:483)
at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(Unknown Source)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(Unknown Source)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown Source)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
at javax.management.remote.rmi.RMIConnectionImpl.doOperation(Unknown Source)
at javax.management.remote.rmi.RMIConnectionImpl.access$100(Unknown Source)
at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(Unknown Source)
at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(Unknown Source)
at javax.management.remote.rmi.RMIConnectionImpl.invoke(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
at sun.rmi.transport.Transport$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.commons.vfs.FileSystemException: Could not connect to SFTP server at "vikas".
at org.apache.commons.vfs.provider.sftp.SftpClientFactory.createConnection
(SftpClientFactory.java:214)
at org.apache.commons.vfs.provider.sftp.SftpFileProvider.doCreateFileSystem(SftpFileProvider.java:90)
... 57 more
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)
... 58 more
com.adeptia.indigo.utils.IndigoException: Could not connect to SFTP server at "sftp://maan:maan@vikas/".
at com.adeptia.indigo.services.transport.ftp.SecuredFtp.connect(SecuredFtp.java:278)
at com.adeptia.indigo.services.transport.ftp.SecuredFtp.download(SecuredFtp.java:145)
at com.adeptia.indigo.services.transport.ftp.FtpSource.createInputStream(FtpSource.java:179)
at com.adeptia.indigo.services.transport.support.AbstractStreamSource.initialize(AbstractStreamSource.java:44)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:483)
at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(Unknown Source)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(Unknown Source)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown Source)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
at com.adeptia.indigo.utils.RemoteMBeanProxy$LocalHandler.invokeOperation(RemoteMBeanProxy.java:441)
at com.adeptia.indigo.utils.RemoteMBeanProxy$Handler.invoke(RemoteMBeanProxy.java:294)
at $Proxy2.initialize(Unknown Source)
at com.adeptia.indigo.jelly.ActivityTag.runSync(ActivityTag.java:313)
at com.adeptia.indigo.jelly.ActivityTag.doTag(ActivityTag.java:250)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:278)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:133)
at com.werken.blissed.jelly.JellyActivity.perform(JellyActivity.java:120)
at com.werken.blissed.ProcessEngine.enterState(ProcessEngine.java:391)
at com.werken.blissed.ProcessEngine.followTransition(ProcessEngine.java:509)
at com.werken.blissed.ProcessEngine.checkTransitions(ProcessEngine.java:458)
at com.werken.blissed.ProcessEngine.startProcess(ProcessEngine.java:366)
at com.werken.blissed.ProcessEngine.spawn(ProcessEngine.java:299)
at com.adeptia.indigo.processflow.BlissedProcessFlow.execute(BlissedProcessFlow.java:159)
at com.adeptia.indigo.transaction.IndigoTransaction.execute(IndigoTransaction.java:423)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:483)
at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(Unknown Source)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(Unknown Source)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown Source)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
at javax.management.remote.rmi.RMIConnectionImpl.doOperation(Unknown Source)
at javax.management.remote.rmi.RMIConnectionImpl.access$100(Unknown Source)
at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(Unknown Source)
at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(Unknown Source)
at javax.management.remote.rmi.RMIConnectionImpl.invoke(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
at sun.rmi.transport.Transport$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Print Exception**************************
2007-07-04 18:26:49,859 ERROR [Flow Thread(192168001166118355380787500016)] flow com.adeptia.indigo.jelly.ActivityTag.runSync(ActivityTag.java:320) - Process_Flow_For_SecureFTP|FTP_Source_Secure_Test|FtpSource|Failed|administrators|192168001166118294134403100005|192168001166118355380753100015|192168001166118294076370300003||admin|Error initializing activity FtpSource:FTP_Source_Secure_Test:192168001166118294076370300003[Could not connect to SFTP server at "sftp://maan:maan@vikas/".]|wshost
com.adeptia.indigo.utils.IndigoException: Could not connect to SFTP server at "sftp://maan:maan@vikas/".
please help me regards this
> 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
[jira] Commented: (VFS-113) NullPointerException during getting
InputStream from SftpFileObject
Posted by "Tim Rademacher (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/VFS-113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12482326 ]
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!
Regards,
Tim
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(AbstractFileObject.java:919)
at org.apache.commons.vfs.provider.AbstractFileObject.moveTo(AbstractFileObject.java:981)
at de.inka.service.file.InkaFileSystemConnection.move(InkaFileSystemConnection.java:463)
... 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(AbstractFileObject.java:1140)
at org.apache.commons.vfs.provider.DefaultFileContent.getInputStream(DefaultFileContent.java:320)
at org.apache.commons.vfs.FileUtil.writeContent(FileUtil.java:71)
at org.apache.commons.vfs.FileUtil.copyContent(FileUtil.java:103)
at org.apache.commons.vfs.provider.AbstractFileObject.copyFrom(AbstractFileObject.java:910)
... 13 more
Caused by: 4:
at com.jcraft.jsch.ChannelSftp._get(ChannelSftp.java:968)
at com.jcraft.jsch.ChannelSftp.get(ChannelSftp.java:861)
at com.jcraft.jsch.ChannelSftp.get(ChannelSftp.java:837)
at org.apache.commons.vfs.provider.sftp.SftpFileObject.doGetInputStream(SftpFileObject.java:385)
at org.apache.commons.vfs.provider.AbstractFileObject.getInputStream(AbstractFileObject.java:1136)
... 17 more
Caused by: java.io.IOException: inputstream is closed
at com.jcraft.jsch.ChannelSftp.fill(ChannelSftp.java:2131)
at com.jcraft.jsch.ChannelSftp.header(ChannelSftp.java:2155)
at com.jcraft.jsch.ChannelSftp._get(ChannelSftp.java:906)
... 21 more
> 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
[jira] Commented: (VFS-113) NullPointerException during getting
InputStream from SftpFileObject
Posted by "vikas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/VFS-113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12510333 ]
vikas commented on VFS-113:
---------------------------
hi
Now it is working .
I have also one more problem.
By using FTPClientWrapper.java class ,we call createConnection() method to create a new connection to server.
But if i am downloading a file and due to any problem(network broken ,ftp server connection failed)connection is broken.
We have to give number of attempts to connect FTP server.
I am not finding code ,if the connection is broken How many times it tris to connect to FTP server.
Number of Attempts to connect to FTP server(Where is this code)
Help me to figure out
Vikas Kumar
> 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
[jira] Updated: (VFS-113) NullPointerException during getting
InputStream from SftpFileObject
Posted by "Tim Rademacher (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/VFS-113?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tim Rademacher updated VFS-113:
-------------------------------
Attachment: SftpFileObject.diff
Fix for the NullPointerException in SftpFileObject.getContent().getInputStream()
> 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
> 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
[jira] Issue Comment Edited: (VFS-113) NullPointerException during
getting InputStream from SftpFileObject
Posted by "vikas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/VFS-113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12510167 ]
vikas edited comment on VFS-113 at 7/4/07 6:14 AM:
---------------------------------------------------
Hi Mario Ivankovits
I am using commons-vfs-20070703.jar
I am facing this problem as in above comments:
Please give me some suggestion on this issue .
What can i do to resolve this problem in secure ftp.
there is any another way to resolve this problem.
org.apache.commons.vfs.FileSystemException: Could not read file "sftp://maan:maan@vikas/transport/source/students1.txt".
at org.apache.commons.vfs.provider.AbstractFileObject.getInputStream(AbstractFileObject.java:1163)
at org.apache.commons.vfs.provider.DefaultFileContent.getInputStream(DefaultFileContent.java:360)
at com.adeptia.indigo.services.transport.ftp.SecuredFtp.download(SecuredFtp.java:161)
at com.adeptia.indigo.services.transport.ftp.FtpSource.createInputStream(FtpSource.java:179)
at com.adeptia.indigo.services.transport.support.AbstractStreamSource.initialize(AbstractStreamSource.java:44)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:483)
at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(Unknown Source)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(Unknown Source)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown Source)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
at com.adeptia.indigo.utils.RemoteMBeanProxy$LocalHandler.invokeOperation(RemoteMBeanProxy.java:441)
at com.adeptia.indigo.utils.RemoteMBeanProxy$Handler.invoke(RemoteMBeanProxy.java:294)
at $Proxy2.initialize(Unknown Source)
at com.adeptia.indigo.jelly.ActivityTag.runSync(ActivityTag.java:313)
at com.adeptia.indigo.jelly.ActivityTag.doTag(ActivityTag.java:250)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:278)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:133)
at com.werken.blissed.jelly.JellyActivity.perform(JellyActivity.java:120)
at com.werken.blissed.ProcessEngine.enterState(ProcessEngine.java:391)
at com.werken.blissed.ProcessEngine.followTransition(ProcessEngine.java:509)
at com.werken.blissed.ProcessEngine.checkTransitions(ProcessEngine.java:458)
at com.werken.blissed.ProcessEngine.startProcess(ProcessEngine.java:366)
at com.werken.blissed.ProcessEngine.spawn(ProcessEngine.java:299)
at com.adeptia.indigo.processflow.BlissedProcessFlow.execute(BlissedProcessFlow.java:159)
at com.adeptia.indigo.transaction.IndigoTransaction.execute(IndigoTransaction.java:423)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:483)
at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(Unknown Source)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(Unknown Source)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown Source)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
at javax.management.remote.rmi.RMIConnectionImpl.doOperation(Unknown Source)
at javax.management.remote.rmi.RMIConnectionImpl.access$100(Unknown Source)
at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(Unknown Source)
at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(Unknown Source)
at javax.management.remote.rmi.RMIConnectionImpl.invoke(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
at sun.rmi.transport.Transport$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.commons.vfs.FileSystemException: Could not connect to SFTP server at "sftp://maan:maan@vikas/".
at org.apache.commons.vfs.provider.sftp.SftpFileSystem.getChannel(SftpFileSystem.java:144)
at org.apache.commons.vfs.provider.sftp.SftpFileObject.doGetInputStream(SftpFileObject.java:380)
at org.apache.commons.vfs.provider.AbstractFileObject.getInputStream(AbstractFileObject.java:1159)
... 53 more
Caused by: com.jcraft.jsch.JSchException: java.io.IOException: inputstream is closed
at com.jcraft.jsch.ChannelSftp.start(Unknown Source)
at com.jcraft.jsch.Channel.connect(Unknown Source)
at com.jcraft.jsch.Channel.connect(Unknown Source)
at org.apache.commons.vfs.provider.sftp.SftpFileSystem.getChannel(SftpFileSystem.java:123)
... 55 more
Caused by: java.io.IOException: inputstream is closed
at com.jcraft.jsch.ChannelSftp.fill(Unknown Source)
at com.jcraft.jsch.ChannelSftp.header(Unknown Source)
... 59 more
2007-07-04 16:41:59,984 ERROR [Flow Thread(192168001166118354716240600002)] flow com.adeptia.indigo.jelly.ActivityTag.runSync(ActivityTag.java:320) - Process_Flow_For_SecureFTP|FTP_Source_Secure_Test|FtpSource|Failed|administrators|192168001166118294134403100005|192168001166118354716031200001|192168001166118294076370300003||admin|Error initializing activity FtpSource:FTP_Source_Secure_Test:192168001166118294076370300003[Could not read file "sftp://maan:maan@vikas/transport/source/students1.txt".]|wshost
org.apache.commons.vfs.FileSystemException: Could not read file "sftp://maan:maan@vikas/transport/source/students1.txt".
please help me regards this
was:
Hi Mario Ivankovits
I am using commons-vfs-20070703.jar
I am facing this problem
Exception ************************ org.apache.commons.vfs.FileSystemException: Could not connect to SFTP server at "sftp://maan:maan@vikas/".
org.apache.commons.vfs.FileSystemException: Could not connect to SFTP server at "sftp://maan:maan@vikas/".
at org.apache.commons.vfs.provider.sftp.SftpFileProvider.doCreateFileSystem(SftpFileProvider.java:99)
at org.apache.commons.vfs.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:81)
at org.apache.commons.vfs.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:62)
at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:641)
at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:582)
at com.adeptia.indigo.services.transport.ftp.SecuredFtp.connect(SecuredFtp.java:272)
at com.adeptia.indigo.services.transport.ftp.SecuredFtp.download(SecuredFtp.java:145)
at com.adeptia.indigo.services.transport.ftp.FtpSource.createInputStream(FtpSource.java:179)
at com.adeptia.indigo.services.transport.support.AbstractStreamSource.initialize(AbstractStreamSource.java:44)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:483)
at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(Unknown Source)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(Unknown Source)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown Source)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
at com.adeptia.indigo.utils.RemoteMBeanProxy$LocalHandler.invokeOperation(RemoteMBeanProxy.java:441)
at com.adeptia.indigo.utils.RemoteMBeanProxy$Handler.invoke(RemoteMBeanProxy.java:294)
at $Proxy2.initialize(Unknown Source)
at com.adeptia.indigo.jelly.ActivityTag.runSync(ActivityTag.java:313)
at com.adeptia.indigo.jelly.ActivityTag.doTag(ActivityTag.java:250)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:278)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:133)
at com.werken.blissed.jelly.JellyActivity.perform(JellyActivity.java:120)
at com.werken.blissed.ProcessEngine.enterState(ProcessEngine.java:391)
at com.werken.blissed.ProcessEngine.followTransition(ProcessEngine.java:509)
at com.werken.blissed.ProcessEngine.checkTransitions(ProcessEngine.java:458)
at com.werken.blissed.ProcessEngine.startProcess(ProcessEngine.java:366)
at com.werken.blissed.ProcessEngine.spawn(ProcessEngine.java:299)
at com.adeptia.indigo.processflow.BlissedProcessFlow.execute(BlissedProcessFlow.java:159)
at com.adeptia.indigo.transaction.IndigoTransaction.execute(IndigoTransaction.java:423)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:483)
at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(Unknown Source)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(Unknown Source)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown Source)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
at javax.management.remote.rmi.RMIConnectionImpl.doOperation(Unknown Source)
at javax.management.remote.rmi.RMIConnectionImpl.access$100(Unknown Source)
at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(Unknown Source)
at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(Unknown Source)
at javax.management.remote.rmi.RMIConnectionImpl.invoke(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
at sun.rmi.transport.Transport$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.commons.vfs.FileSystemException: Could not connect to SFTP server at "vikas".
at org.apache.commons.vfs.provider.sftp.SftpClientFactory.createConnection
(SftpClientFactory.java:214)
at org.apache.commons.vfs.provider.sftp.SftpFileProvider.doCreateFileSystem(SftpFileProvider.java:90)
... 57 more
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)
... 58 more
com.adeptia.indigo.utils.IndigoException: Could not connect to SFTP server at "sftp://maan:maan@vikas/".
at com.adeptia.indigo.services.transport.ftp.SecuredFtp.connect(SecuredFtp.java:278)
at com.adeptia.indigo.services.transport.ftp.SecuredFtp.download(SecuredFtp.java:145)
at com.adeptia.indigo.services.transport.ftp.FtpSource.createInputStream(FtpSource.java:179)
at com.adeptia.indigo.services.transport.support.AbstractStreamSource.initialize(AbstractStreamSource.java:44)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:483)
at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(Unknown Source)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(Unknown Source)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown Source)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
at com.adeptia.indigo.utils.RemoteMBeanProxy$LocalHandler.invokeOperation(RemoteMBeanProxy.java:441)
at com.adeptia.indigo.utils.RemoteMBeanProxy$Handler.invoke(RemoteMBeanProxy.java:294)
at $Proxy2.initialize(Unknown Source)
at com.adeptia.indigo.jelly.ActivityTag.runSync(ActivityTag.java:313)
at com.adeptia.indigo.jelly.ActivityTag.doTag(ActivityTag.java:250)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:278)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:133)
at com.werken.blissed.jelly.JellyActivity.perform(JellyActivity.java:120)
at com.werken.blissed.ProcessEngine.enterState(ProcessEngine.java:391)
at com.werken.blissed.ProcessEngine.followTransition(ProcessEngine.java:509)
at com.werken.blissed.ProcessEngine.checkTransitions(ProcessEngine.java:458)
at com.werken.blissed.ProcessEngine.startProcess(ProcessEngine.java:366)
at com.werken.blissed.ProcessEngine.spawn(ProcessEngine.java:299)
at com.adeptia.indigo.processflow.BlissedProcessFlow.execute(BlissedProcessFlow.java:159)
at com.adeptia.indigo.transaction.IndigoTransaction.execute(IndigoTransaction.java:423)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:483)
at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(Unknown Source)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(Unknown Source)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown Source)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
at javax.management.remote.rmi.RMIConnectionImpl.doOperation(Unknown Source)
at javax.management.remote.rmi.RMIConnectionImpl.access$100(Unknown Source)
at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(Unknown Source)
at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(Unknown Source)
at javax.management.remote.rmi.RMIConnectionImpl.invoke(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
at sun.rmi.transport.Transport$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Print Exception**************************
2007-07-04 18:26:49,859 ERROR [Flow Thread(192168001166118355380787500016)] flow com.adeptia.indigo.jelly.ActivityTag.runSync(ActivityTag.java:320) - Process_Flow_For_SecureFTP|FTP_Source_Secure_Test|FtpSource|Failed|administrators|192168001166118294134403100005|192168001166118355380753100015|192168001166118294076370300003||admin|Error initializing activity FtpSource:FTP_Source_Secure_Test:192168001166118294076370300003[Could not connect to SFTP server at "sftp://maan:maan@vikas/".]|wshost
com.adeptia.indigo.utils.IndigoException: Could not connect to SFTP server at "sftp://maan:maan@vikas/".
please help me regards this
> 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