commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ralph Goers <ralph.go...@dslextreme.com>
Subject Re: [VFS] sftp upload fails with permission denied error while setting the last updated timestamp
Date Wed, 18 Nov 2009 06:13:59 GMT
I know this isn't going to be much help. I don't use the SFTP provider so I don't really have
a lot of advice to give. I was hoping some of the other folks who do use it - and I know there
are some - would have jumped in.  Have you checked the logs on the server?

Ralph

On Nov 16, 2009, at 9:00 PM, Bhaskar Annamalai wrote:

> Hi,
>  I tried to use VFS for uploading a file to a sftp url. The file gets
> uploaded to the location which is specified in the url. But it gets a
> permission denied error while setting the last updated time of the file.
> Below is the stack trace of the error.
> 
> 
> org.apache.commons.vfs.FileSystemException: Could not set the last
> modified timestamp of <sftp url>.
>        at
> org.apache.commons.vfs.provider.DefaultFileContent.setLastModifiedTime(D
> efaultFileContent
> .java:196)
>        at
> org.apache.commons.vfs.provider.AbstractFileObject.moveTo(AbstractFileOb
> ject.java:1001)
>        at
> org.apache.synapse.transport.vfs.VFSTransportListener.moveOrDeleteAfterP
> rocessing(VFSTran
> sportListener.java:331)
>        at
> org.apache.synapse.transport.vfs.VFSTransportListener.scanFileOrDirector
> y(VFSTransportLis
> tener.java:262)
>        at
> org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTransportL
> istener.java:154)
> 
>        at
> org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTransportL
> istener.java:117)
> 
>        at
> org.apache.axis2.transport.base.AbstractPollingTransportListener$1$1.run
> (AbstractPollingT
> ransportListener.java:99)
>        at
> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWor
> kerPool.java:58)
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecuto
> r.java:886)
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.ja
> va:908)
>        at java.lang.Thread.run(Thread.java:619)
> Caused by: 3: Permission denied
>        at
> com.jcraft.jsch.ChannelSftp.throwStatusError(ChannelSftp.java:2289)
>        at com.jcraft.jsch.ChannelSftp._setStat(ChannelSftp.java:1871)
>        at com.jcraft.jsch.ChannelSftp.setStat(ChannelSftp.java:1845)
>        at
> org.apache.commons.vfs.provider.sftp.SftpFileObject.doSetLastModifiedTim
> e(SftpFileObject.
> java:237)
>        at
> org.apache.commons.vfs.provider.AbstractFileObject.doSetLastModTime(Abst
> ractFileObject.ja
> va:262)
>        at
> org.apache.commons.vfs.provider.DefaultFileContent.setLastModifiedTime(D
> efaultFileContent
> .java:189)
>        ... 10 more
> 
> Please suggest.
> 
> Thanks,
> Bhaskar
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message