[jcifs] NoRouteToHostException?

haendehochdasisein at mailueberfall.de haendehochdasisein at mailueberfall.de
Mon Oct 3 17:17:32 GMT 2005


Hi,

I try to connect to a samba server with JCIFS but fail with an
NoRouteToHostException.

This is the simple code I use:

try {
  SmbFile smb = new SmbFile("smb://10.149.47.2");
  SmbFile[] list = smb.listFiles(); // NoRouteToHostException
}

I tried to connect to the server with another samba client which worked
without any problems. I also looked at the FAQ and didn't come up with a
working solution.

Below are the ifconfig messages and the stack trace, if anything of that can
be of assistance.

I appreciate your help.

Regards,
Malte

-----

eth0      Protokoll:Ethernet  Hardware Adresse 00:11:11:31:FA:DE
          inet Adresse:10.149.39.48  Bcast:10.149.39.255 
Maske:255.255.255.0
          inet6 Adresse: fe80::211:11ff:fe31:fade/64
Gültigkeitsbereich:Verbindung
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:705000 errors:0 dropped:0 overruns:0 frame:0
          TX packets:457277 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:1000
          RX bytes:453053744 (432.0 MiB)  TX bytes:227920574 (217.3 MiB)
          Interrupt:16

lo        Protokoll:Lokale Schleife
          inet Adresse:127.0.0.1  Maske:255.0.0.0
          inet6 Adresse: ::1/128 Gültigkeitsbereich:Maschine
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:174686 errors:0 dropped:0 overruns:0 frame:0
          TX packets:174686 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:0
          RX bytes:14965728 (14.2 MiB)  TX bytes:14965728 (14.2 MiB)

-----

jcifs.smb.SmbException: 
jcifs.util.transport.TransportException
java.net.NoRouteToHostException: No route to host
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364)
	at java.net.Socket.connect(Socket.java:507)
	at java.net.Socket.connect(Socket.java:457)
	at java.net.Socket.<init>(Socket.java:365)
	at java.net.Socket.<init>(Socket.java:178)
	at jcifs.smb.SmbTransport.negotiate(SmbTransport.java:240)
	at jcifs.smb.SmbTransport.doConnect(SmbTransport.java:282)
	at jcifs.util.transport.Transport.run(Transport.java:214)
	at java.lang.Thread.run(Thread.java:595)

	at jcifs.util.transport.Transport.run(Transport.java:230)
	at java.lang.Thread.run(Thread.java:595)

	at jcifs.smb.SmbTransport.connect(SmbTransport.java:272)
	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.send(SmbFile.java:660)
	at jcifs.smb.SmbFile.doNetEnum(SmbFile.java:1624)
	at jcifs.smb.SmbFile.listFiles(SmbFile.java:1573)
	at jcifs.smb.SmbFile.listFiles(SmbFile.java:1483)

-- 
Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko!
Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner


More information about the jcifs mailing list