[jcifs] (no subject)
Allen, Michael B (RSCH)
Michael_B_Allen at ml.com
Tue May 7 14:49:07 EST 2002
> -----Original Message-----
> From: nishatbh [SMTP:nishatbh at datainfosys.net]
> Sent: Tuesday, May 07, 2002 1:17 PM
> To: jcifs at samba.org
> Subject: [jcifs] (no subject)
>
> Sir,
> I am getting following error if I try to connect by giving IP address
> of remote computer
> Exception in thread "main" jcifs.smb.SmbException: Connection refused:
> connect
> at jcifs.smb.SmbTransport.send(SmbTransport.java:475)
> at jcifs.smb.SmbTransport.negotiate(SmbTransport.java:663)
> at jcifs.smb.SmbTree.treeConnect(SmbTree.java:106)
> at jcifs.smb.SmbTree.sendTransaction(SmbTree.java:50)
> at jcifs.smb.SmbFile.sendTransaction(SmbFile.java:456)
> at jcifs.smb.SmbFile.listFiles(SmbFile.java:1174)
> at jcifs.smb.SmbFile.listFiles(SmbFile.java:1093)
> at ListFiles.main(ListFiles.java:13)
>
> if I connect to remote computer by its name then following error occur
> Exception in thread "main" jcifs.smb.SmbException: Timeout waiting for
> response
> from server. TOMCAT<20>/202.157.79.30
> at jcifs.smb.SmbTransport.send(SmbTransport.java:483)
> at jcifs.smb.SmbTransport.negotiate(SmbTransport.java:663)
> at jcifs.smb.SmbTree.treeConnect(SmbTree.java:106)
> at jcifs.smb.SmbTree.sendTransaction(SmbTree.java:50)
> at jcifs.smb.SmbFile.sendTransaction(SmbFile.java:456)
> at jcifs.smb.SmbFile.listFiles(SmbFile.java:1174)
> at jcifs.smb.SmbFile.listFiles(SmbFile.java:1093)
> at ListFiles.main(ListFiles.java:13)
> java.lang.NullPointerException
> at jcifs.smb.SmbTransport.run(SmbTransport.java:299)
>
> Please help.
>
I'd like to help but I'm pretty sure the client works as advertised so I think you should
consider this is probably just a networking issue that falls outside the scope of jCIFS.
Try other networking software like smbclient, nmblookup, telnet, ftp, nbtstat, etc.
Confirm that those programs work/do not work first.
Mike
More information about the jcifs
mailing list