[jcifs] Operation timed out: connect:could be due to invalid address with jcifs-1.3.3

jack Chen ccc_007212 at 163.com
Mon Jun 15 16:20:03 GMT 2009


hello:
 Today I downloaded the version of JCifs(1.3.2) and tried to get it to 
work with a small example program 
(In the past, we were using jcifs-1.1.11, and I did not find any 
exception). 

However, I cannot get the version(1.3.2) to work. Hopefully, somebody can 
help me how to figure out what properties I have to set, 
or what I'm doing wrong. 

I'm running the following example Java class, with jcifs-1.3.2.jar in 
the classpath: 
 SmbFile file = new SmbFile("smb://user:123456@192.168.117.201/shar/temp/");
 if (!file.exists() && !file.isFile()) {
            file.mkdirs();
                  }
   
I am able to connect from the command line, so I'm sure the password is
correct 
and the directories do exist. 
I get Exception:
jcifs.util.transport.TransportException
java.net.SocketException: Operation timed out: connect:could be due to
invalid address
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:336)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:201)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:188)
	at java.net.Socket.connect(Socket.java:482)
	at java.net.Socket.connect(Socket.java:432)
	at java.net.Socket.<init>(Socket.java:339)
	at java.net.Socket.<init>(Socket.java:150)
	at jcifs.smb.SmbTransport.negotiate(SmbTransport.java:249)
	at jcifs.smb.SmbTransport.doConnect(SmbTransport.java:306)
	at jcifs.util.transport.Transport.run(Transport.java:240)
	at java.lang.Thread.run(Thread.java:570)


we were using jcifs-1.1.11, and I did not find any exception.

the 192.168.117.201 is AIx OS

-- 
View this message in context: http://www.nabble.com/Operation-timed-out%3A-connect%3Acould-be-due-to-invalid-address-with-jcifs-1.3.3-tp24037820p24037820.html
Sent from the Samba - jcifs mailing list archive at Nabble.com.



More information about the jcifs mailing list