timeout issue

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

timeout issue

Parker, Matt-2
jcifs 1.2.7
HP-UX 11.0
java 1.4.2
 
I have implemented a simple test jcifs copy program to copy a file from a windows share drive to a UNIX server.
 
The copy works fine for a normal domain user account that has access to the share.  Every time I run it the copy works.
 
The copy is successful 1 out of 10 or 20 times for a the user account set up specifically to access the share.  The user is set up such that it can only connect to the network share from the UNIX server.  
 
I have included the jcifs.netbios.hostname=<hostname.domain.com> setting it to hostname of the UNIX server.
 
I have also played with many other settings, but have been unable to get the copy to work more consistently.
 
jcifs.netbios.retryTimeout=20000
jcifs.netbios.soTimeout=30000
jcifs.util.loglevel = 3
jcifs.resolveOrder=DNS
jcifs.netbios.retryCount=5

I get the following error - even when loglevel is set to 3 the error comes back right away with only the java properties being displayed
 
Exception in thread "main" jcifs.smb.SmbException:
jcifs.util.transport.TransportException
java.net.SocketException: Connection reset
        at java.net.SocketInputStream.read(SocketInputStream.java:173)
        at jcifs.util.transport.Transport.readn(Transport.java:29)
        at jcifs.smb.SmbTransport.ssn139(SmbTransport.java:189)
        at jcifs.smb.SmbTransport.negotiate(SmbTransport.java:236)
        at jcifs.smb.SmbTransport.doConnect(SmbTransport.java:298)
        at jcifs.util.transport.Transport.run(Transport.java:217)
        at java.lang.Thread.run(Thread.java:534)
        at jcifs.util.transport.Transport.run(Transport.java:233)
        at java.lang.Thread.run(Thread.java:534)
        at jcifs.smb.SmbTransport.connect(SmbTransport.java:288)
        at jcifs.smb.SmbTree.treeConnect(SmbTree.java:129)
        at jcifs.smb.SmbFile.connect(SmbFile.java:792)
        at jcifs.smb.SmbFile.connect0(SmbFile.java:762)
        at jcifs.smb.SmbFile.open0(SmbFile.java:817)
        at jcifs.smb.SmbFile.open(SmbFile.java:846)
        at jcifs.smb.SmbFileInputStream.<init>(SmbFileInputStream.java:69)
        at jcifs.smb.SmbFileInputStream.<init>(SmbFileInputStream.java:62)
        at Get.main(Get.java:10)

 
Any ideas?
 
 
Thanks,
Matt
 


This email may contain material that is confidential, privileged and/or attorney work product for the sole use of the intended recipient. Any review, reliance or distribution by others or forwarding without express permission is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
Reply | Threaded
Open this post in threaded view
|

Re: timeout issue

Michael B Allen-4
On Thu, 19 Jan 2006 10:36:47 -0500
"Parker, Matt" <[hidden email]> wrote:

> The user is set up such that it can only connect to the network share from the UNIX server.  
>  
> I have included the jcifs.netbios.hostname=<hostname.domain.com> setting it to hostname of the UNIX server.

This should work. Just make sure the text entered exactly matches the
NetBIOS hostname. NetBIOS hostnames are limited to 15 characters and
usually if they are derived from a DNS FQDN only the first label is used
(e.g. nano.foo.net -> nano).

Mike
Reply | Threaded
Open this post in threaded view
|

RE: timeout issue

Parker, Matt-2
In reply to this post by Parker, Matt-2
Ok - I checked the hostname and it is correct.
The copy is successful sporadically when I attempts to copy a single
file using, running the program repeatedly from the command line.

Matt


-----Original Message-----
From: Michael B Allen [mailto:[hidden email]]
Sent: Thursday, January 19, 2006 13:35
To: Parker, Matt
Cc: [hidden email]
Subject: Re: [jcifs] timeout issue

On Thu, 19 Jan 2006 10:36:47 -0500
"Parker, Matt" <[hidden email]> wrote:

> The user is set up such that it can only connect to the network share
from the UNIX server.  
>  
> I have included the jcifs.netbios.hostname=<hostname.domain.com>
setting it to hostname of the UNIX server.

This should work. Just make sure the text entered exactly matches the
NetBIOS hostname. NetBIOS hostnames are limited to 15 characters and
usually if they are derived from a DNS FQDN only the first label is used
(e.g. nano.foo.net -> nano).

Mike



This email may contain material that is confidential, privileged and/or attorney work product for the sole use of the intended recipient. Any review, reliance or distribution by others or forwarding without express permission is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.