commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bhaskar Annamalai" <Bhaskar_Annama...@Trimble.com>
Subject [VFS] sftp upload fails with permission denied error while setting the last updated timestamp
Date Tue, 17 Nov 2009 05:00:16 GMT
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


Mime
View raw message