commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Israel Malachi <isra...@ellipsis.co.il>
Subject Fwd: [VFS] VFS sandbox?
Date Wed, 10 Dec 2014 07:37:06 GMT
Hi all

I will try to switch line 227 On SmbFileObject

if (e.getErrorCode() == SmbException.ERRbadfile)

with

if (e.getNtStatus() == SmbException.NT_STATUS_NO_SUCH_FILE)

on my machine and I'll see how it will go...

---------- Forwarded message ----------
From: Israel Malachi <israelm@ellipsis.co.il>
Date: Thu, Dec 4, 2014 at 9:41 AM
Subject: Fwd: [VFS] VFS sandbox?
To: Commons Developers List <dev@commons.apache.org>


Hi all

I was trying to follow Gary's advice (and thank you again, Gary) but I ran
into two issues when trying to build the classes

On SmbFileObject

line 46: extends AbstractFileObject<SmbFileSystem>

AbstractFileObject is not generic, and can't be parameterized, should I
erase <SmbFileSystem> ?

line 227: if (e.getErrorCode() == SmbException.ERRbadfile)

getErrorCode() and ERRbadfile are not defined in SmbException, what to do?



---------- Forwarded message ----------
From: Gary Gregory <garydgregory@gmail.com>
Date: Mon, Dec 1, 2014 at 2:52 PM
Subject: Re: [VFS] VFS sandbox?
To: Commons Developers List <dev@commons.apache.org>


Israel,


The sandbox is not released as a jar for licensing reasons IIRC. You have
to check it out of SVN and build it yourself.

Gary

On Mon, Dec 1, 2014 at 2:53 AM, Israel Malachi <israelm@ellipsis.co.il>
wrote:

> Hello all!
> I'm writing a program that uses the VFS (2.0) so I could manage SFTP and
> samba connections.
> When I try to reach smb server I get FileSystemException - Badly formed
uri
> I understand that I have to import the sandbox jar, but do I get it from?
>



--
E-Mail: garydgregory@gmail.com | ggregory@apache.org
Java Persistence with Hibernate, Second Edition
<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message