mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henrik Karlsson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SSHD-257) UnsupportedOperationException from ScpClient.upload on Windows 7
Date Tue, 15 Oct 2013 14:26:43 GMT

    [ https://issues.apache.org/jira/browse/SSHD-257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13795231#comment-13795231
] 

Henrik Karlsson commented on SSHD-257:
--------------------------------------

I'm gettning the same exception using java 1.7.40, but I change to java 1.6.45 I get no exception...
So it sames to be related to java 7.

> UnsupportedOperationException from ScpClient.upload on Windows 7
> ----------------------------------------------------------------
>
>                 Key: SSHD-257
>                 URL: https://issues.apache.org/jira/browse/SSHD-257
>             Project: MINA SSHD
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>         Environment: Windows 7 SP1 with Java 1.7.21
>            Reporter: Jeff Horrigan
>
> NativeSshFileNio.getAttributes uses Files.readAttributes and references unix:size which
apparently doesn't exist on windows making the scp client unusable on windows. 
> Exception in thread "main" java.lang.UnsupportedOperationException: View 'unix' not available
> 	at sun.nio.fs.AbstractFileSystemProvider.readAttributes(AbstractFileSystemProvider.java:91)
> 	at java.nio.file.Files.readAttributes(Files.java:1902)
> 	at org.apache.sshd.common.file.nativefs.NativeSshFileNio.getAttributes(NativeSshFileNio.java:58)
> 	at org.apache.sshd.common.scp.ScpHelper.sendFile(ScpHelper.java:324)
> 	at org.apache.sshd.common.scp.ScpHelper.send(ScpHelper.java:305)
> 	at org.apache.sshd.client.scp.DefaultScpClient.upload(DefaultScpClient.java:156)
> 	at org.apache.sshd.client.scp.DefaultScpClient.upload(DefaultScpClient.java:115)



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message