|
View:
New views
8 Messages
—
Rating Filter:
Alert me
|
|
|
The system cannot find the path specifiedHi,
I'm using the following code to retrieve a document from a DFS: ******************** public static void main(String[] args) { try { jcifs.Config.setProperty( "jcifs.netbios.wins", "10.1.253.2" ); NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication("UCB-CORP", "E118616", "password"); SmbFile fileToGet = new SmbFile("smb://ntbrafscl011.dir.ucb-group.com/dfs/Sites/Braine/GTSO/GECTD/DSPE/Department organization/Archives/Time sheet/TS SVL SVT JLH - 060504.xls", auth); SmbFileInputStream in = new SmbFileInputStream(fileToGet); byte[] b = new byte[8192]; int n; while(( n = in.read( b )) > 0 ) { System.out.write( b, 0, n ); } } catch (Exception e) { e.printStackTrace(); } } ******************** If I use jcifs-1.2.18.jar, it works fine. If I use jcifs-1.2.21.jar, it does not work and the error is: ******************** 1: new Socket: java.net.DatagramSocket@54172f 2: new Socket: Socket[addr=/10.1.253.2,port=445,localport=3262] 3: new Socket: Socket[addr=/10.1.12.155,port=445,localport=3263] jcifs.smb.SmbException: The system cannot find the path specified. at jcifs.smb.SmbTransport.checkStatus(SmbTransport.java:542) at jcifs.smb.SmbTransport.send(SmbTransport.java:642) at jcifs.smb.SmbSession.send(SmbSession.java:239) at jcifs.smb.SmbTree.send(SmbTree.java:109) at jcifs.smb.SmbFile.send(SmbFile.java:718) at jcifs.smb.SmbFile.open0(SmbFile.java:923) at jcifs.smb.SmbFile.open(SmbFile.java:940) at jcifs.smb.SmbFileInputStream.<init>(SmbFileInputStream.java:70) at jcifs.smb.SmbFileInputStream.<init>(SmbFileInputStream.java:62) at com.ucb.ntlm.main(ntlm.java:20) ******************** What could be the reason? Thanks a lot, Benoit Benoit Coppens • Senior Consultant UCB <http://www.ucb-group.com/> - IT Global Medical Information Chemin du Foriest - 1420 Braine-l'Alleud - Belgium • ( +32 2 386 25 71 • 7 +32 2 386 32 44 • * benoit.coppens@... All4IT <http://www.all4it.com/> Drève Richelle 161 - 1410 Waterloo - Belgium • ( +32 2 609 51 20 • 7 +32 2 609 51 38 • * bcoppens@... P Please consider your environmental responsibility before printing this email! -------------------------------------------------------- Legal Notice: This electronic mail and its attachments are intended solely for the person(s) to whom they are addressed and contain information which is confidential or otherwise protected from disclosure, except for the purpose for which they are intended. Dissemination, distribution, or reproduction by anyone other than the intended recipients is prohibited and may be illegal. If you are not an intended recipient, please immediately inform the sender and return the electronic mail and its attachments and destroy any copies which may be in your possession. UCB screens electronic mails for viruses but does not warrant that this electronic mail is free of any viruses. UCB accepts no liability for any damage caused by any virus transmitted by this electronic mail. (Ref: #*UG1107) -------------------------------------------------------- |
|
|
Re: The system cannot find the path specifiedOn 6/20/08, Coppens Benoît (All4IT) <Benoit.Coppens@...> wrote:
> Hi, > > I'm using the following code to retrieve a document from a DFS: > > ******************** > public static void main(String[] args) { > > try { > > jcifs.Config.setProperty( "jcifs.netbios.wins", "10.1.253.2" ); > NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication("UCB-CORP", "E118616", "password"); > SmbFile fileToGet = new SmbFile("smb://ntbrafscl011.dir.ucb-group.com/dfs/Sites/Braine/GTSO/GECTD/DSPE/Department organization/Archives/Time sheet/TS SVL SVT JLH - 060504.xls", auth); > SmbFileInputStream in = new SmbFileInputStream(fileToGet); > byte[] b = new byte[8192]; > int n; > while(( n = in.read( b )) > 0 ) { > System.out.write( b, 0, n ); > } > > } > catch (Exception e) { > e.printStackTrace(); > } > > } > ******************** > > If I use jcifs-1.2.18.jar, it works fine. > If I use jcifs-1.2.21.jar, it does not work and the error is: > > ******************** > 1: new Socket: java.net.DatagramSocket@54172f > 2: new Socket: Socket[addr=/10.1.253.2,port=445,localport=3262] > 3: new Socket: Socket[addr=/10.1.12.155,port=445,localport=3263] > jcifs.smb.SmbException: The system cannot find the path specified. > at jcifs.smb.SmbTransport.checkStatus(SmbTransport.java:542) > at jcifs.smb.SmbTransport.send(SmbTransport.java:642) > at jcifs.smb.SmbSession.send(SmbSession.java:239) > at jcifs.smb.SmbTree.send(SmbTree.java:109) > at jcifs.smb.SmbFile.send(SmbFile.java:718) > at jcifs.smb.SmbFile.open0(SmbFile.java:923) > at jcifs.smb.SmbFile.open(SmbFile.java:940) > at jcifs.smb.SmbFileInputStream.<init>(SmbFileInputStream.java:70) > at jcifs.smb.SmbFileInputStream.<init>(SmbFileInputStream.java:62) > at com.ucb.ntlm.main(ntlm.java:20) > ******************** > > What could be the reason? The DFS code was changed significantly recently. Previously we didn't fully understand how referrals were used to discover DFS topology at the roots. We just iterated overall all IPs for the supplied server name until we found what we were looking for. It was crude but it worked. That code is now superseded by proper DFS referral code that looks up and caches the list of trusted domains and then looks up and caches which server is hosting the target share and so on. So that could be a factor in your issue. To determine what the problem is you first need to determine if you're using domain-based or stand-alone DFS. If you are using domain-based DFS then is the following really a domain name or is it a full hostname? ntbrafscl011.dir.ucb-group.com Perhaps you want to use smb://dir.ucb-group.com/dfs... or smb://ucb-group.com/dfs... etc? Try going to a Windows client and do Start > Run and put in the corresponding UNC path \\ntbrafscl011.dir.ucb-group.com\dfs\Sites\Br... Does it work? If it does but the corresponding smb:// path does not, then that is an incompatibility with JCIFS that we should probably fix. If you determine that you are using stand-alone DFS (doubt it if the share name is really 'dfs') then it's just a bug in JCIFS and I'll have to convince you to send me captures. Mike -- Michael B Allen PHP Active Directory SPNEGO SSO http://www.ioplex.com/ |
|
|
RE: The system cannot find the path specifiedHi Mike,
The answer I got from our server team is: ntbrafscl011.dir.ucb-group.com is the the host name of the stand alone DFS If I enter "\\ntbrafscl011.dir.ucb-group.com\dfs\Sites\Braine\GTSO\GECTD\DSPE\Department organization\Archives\Time sheet\TS SVL SVT JLH - 060504.xls" in the Start > Run dialog, the file is opened in Excel It works also with \\ntbrafscl011\dfs\Sites\... But it does not work with \\dir.ucb-group.com\dfs\Sites\... or \\ucb-group.com\dfs\Sites\... Let me know if you need more info. Thanks a lot, Benoit -------------------------------------------------------- Legal Notice: This electronic mail and its attachments are intended solely for the person(s) to whom they are addressed and contain information which is confidential or otherwise protected from disclosure, except for the purpose for which they are intended. Dissemination, distribution, or reproduction by anyone other than the intended recipients is prohibited and may be illegal. If you are not an intended recipient, please immediately inform the sender and return the electronic mail and its attachments and destroy any copies which may be in your possession. UCB screens electronic mails for viruses but does not warrant that this electronic mail is free of any viruses. UCB accepts no liability for any damage caused by any virus transmitted by this electronic mail. (Ref: #*UG1107) -------------------------------------------------------- |
|
|
Re: The system cannot find the path specifiedOn 6/23/08, Coppens Benoît (All4IT) <Benoit.Coppens@...> wrote:
> Hi Mike, > > The answer I got from our server team is: > > ntbrafscl011.dir.ucb-group.com is the the host name of the stand alone DFS > > If I enter "\\ntbrafscl011.dir.ucb-group.com\dfs\Sites\Braine\GTSO\GECTD\DSPE\Department organization\Archives\Time sheet\TS SVL SVT JLH - 060504.xls" in the Start > Run dialog, the file is opened in Excel > > It works also with \\ntbrafscl011\dfs\Sites\... > But it does not work with \\dir.ucb-group.com\dfs\Sites\... or \\ucb-group.com\dfs\Sites\... Hi Benoit, That is very possibly a bug in JCIFS then. It sounds like stand-alond DFS is broken. I'll have to play with it and make sure it's working properly. But I'm a little backed up right now. It might take me a while. What is the server? Windows 2003, Samba, ...? Mike -- Michael B Allen PHP Active Directory SPNEGO SSO http://www.ioplex.com/ |
|
|
RE: The system cannot find the path specifiedHi Mike,
This is Windows 2003. Benoit -------------------------------------------------------- Legal Notice: This electronic mail and its attachments are intended solely for the person(s) to whom they are addressed and contain information which is confidential or otherwise protected from disclosure, except for the purpose for which they are intended. Dissemination, distribution, or reproduction by anyone other than the intended recipients is prohibited and may be illegal. If you are not an intended recipient, please immediately inform the sender and return the electronic mail and its attachments and destroy any copies which may be in your possession. UCB screens electronic mails for viruses but does not warrant that this electronic mail is free of any viruses. UCB accepts no liability for any damage caused by any virus transmitted by this electronic mail. (Ref: #*UG1107) -------------------------------------------------------- |
|
|
Re: The system cannot find the path specifiedDear Mike,
I tested with version 1.2.23 but it does not fix my issue. Stack trace is: jcifs.smb.SmbException: The system cannot find the path specified. at jcifs.smb.SmbTransport.checkStatus(SmbTransport.java:527) at jcifs.smb.SmbTransport.send(SmbTransport.java:629) at jcifs.smb.SmbSession.send(SmbSession.java:240) at jcifs.smb.SmbTree.send(SmbTree.java:109) at jcifs.smb.SmbFile.send(SmbFile.java:718) at jcifs.smb.SmbFile.open0(SmbFile.java:923) at jcifs.smb.SmbFile.open(SmbFile.java:940) at jcifs.smb.SmbFileInputStream.<init>(SmbFileInputStream.java:73) at jcifs.smb.SmbFileInputStream.<init>(SmbFileInputStream.java:65) at com.ucb.ntlm.main(ntlm.java:20) Rgds, Benoit |
|
|
Re: Re: The system cannot find the path specifiedOn Tue, Jul 22, 2008 at 5:12 AM, Coppens Benoît
<benoit.coppens@...> wrote: > Dear Mike, > > I tested with version 1.2.23 but it does not fix my issue. > Stack trace is: > > jcifs.smb.SmbException: The system cannot find the path specified. > at jcifs.smb.SmbTransport.checkStatus(SmbTransport.java:527) > at jcifs.smb.SmbTransport.send(SmbTransport.java:629) > at jcifs.smb.SmbSession.send(SmbSession.java:240) > at jcifs.smb.SmbTree.send(SmbTree.java:109) > at jcifs.smb.SmbFile.send(SmbFile.java:718) > at jcifs.smb.SmbFile.open0(SmbFile.java:923) > at jcifs.smb.SmbFile.open(SmbFile.java:940) > at jcifs.smb.SmbFileInputStream.<init>(SmbFileInputStream.java:73) > at jcifs.smb.SmbFileInputStream.<init>(SmbFileInputStream.java:65) > at com.ucb.ntlm.main(ntlm.java:20) > > Rgds, > Benoit Hi Benoit, Can you get a capture [1] of JCIFS failing and another of Windows succeeding? That's the best way to see what's going on. Mike [1] http://jcifs.samba.org/capture.html -- Michael B Allen PHP Active Directory SPNEGO SSO http://www.ioplex.com/ |
|
|
Re: The system cannot find the path specifiedDear all,
I confirm that 1.2.24 fixes the issue! Thanks, Benoit |
| Free Forum Powered by Nabble | Forum Help |