[jcifs] re: jcifs.smb.SmbException: A duplicate name exists on the network

william.c.robertson at chase.com william.c.robertson at chase.com
Wed Jan 23 17:34:35 GMT 2008

This is still cropping up after restarting the container (and thus the 
JVM).  Is there anything in the jcifs API that might clear any state that 
could be lingering?

Any advice on how to approach debugging this problem?

Bill Robertson

william.c.robertson at chase.com 
Sent by: jcifs-bounces+william.c.robertson=chase.com at lists.samba.org
01/14/2008 01:21 PM

jcifs at lists.samba.org

[jcifs] jcifs.smb.SmbException: A duplicate name exists on the  network

We are running jcifs 1.2.17 on Linux in jdk 1.6.3 under glassfish.  It is 
a simple web application, and the jcifs jar is simply part of the war 
distribution in the lib directory. 

We are seeing this error,"jcifs.smb.SmbException: A duplicate name exists 
on the network."  although not all of the time.  It seems that once we get 
it for a given remote location that we want to talk to, we will continue 
to see it until we restart the container. 

jcifs.smb.SmbException: A duplicate name exists on the network. 
        at jcifs.smb.SmbTransport.checkStatus(SmbTransport.java:514) 
        at jcifs.smb.SmbTransport.send(SmbTransport.java:614) 
        at jcifs.smb.SmbSession.sessionSetup(SmbSession.java:277) 
        at jcifs.smb.SmbSession.send(SmbSession.java:233) 
        at jcifs.smb.SmbTree.treeConnect(SmbTree.java:154) 
        at jcifs.smb.SmbFile.doConnect(SmbFile.java:816) 
        at jcifs.smb.SmbFile.connect(SmbFile.java:854) 
        at jcifs.smb.SmbFile.connect0(SmbFile.java:793) 
        at jcifs.smb.SmbFile.send(SmbFile.java:664) 
        at jcifs.smb.SmbFile.doFindFirstNext(SmbFile.java:1938) 
        at jcifs.smb.SmbFile.doEnum(SmbFile.java:1654) 
        at jcifs.smb.SmbFile.listFiles(SmbFile.java:1631) 
        at jcifs.smb.SmbFile.listFiles(SmbFile.java:1597) 



        at com.cocopufs.log.prototype.Main.run(Main.java:135) 

        at java.lang.Thread.run(Thread.java:619) 

When we construct our SMBFile objects the URL we give them looks like 
this: "smb://USER:PASSWORD@IP_ADDR/c$/PATH/" 

Is some sort of state kept within jcifs that could be causing problems? Is 
there a property setting for this maybe?  (We run once per day under ideal 

Otherwise, if we see this again, what logging (and how?) should I enable 
to help track the problem down? 

Bill Robertson

This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law.  If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED.  Although this transmission and
any attachments are believed to be free of any virus or other
defect that might affect any computer system into which it is
received and opened, it is the responsibility of the recipient to
ensure that it is virus free and no responsibility is accepted by
JPMorgan Chase & Co., its subsidiaries and affiliates, as
applicable, for any loss or damage arising in any way from its use.
 If you received this transmission in error, please immediately
contact the sender and destroy the material in its entirety,
whether in electronic or hard copy format. Thank you.
-------------- next part --------------
HTML attachment scrubbed and removed

More information about the jcifs mailing list