Skip to main content

java.net.NoRouteToHostException: No route to host: connect

3 replies [Last post]
nazzario
Offline
Joined: 2007-07-24

Hello,
I have downloaded the latest daily build.

I'm running the client and server on the same Windows XP pc;
I'have modified in my.run.properties [in lg3d-wonderland] the wonderland.hostname entry; Instead of localhost I set the pc ip address: 127.0.0.1

No firewall is present [windows xp firewall is disabled and no antivirus is istalled].

I started the client and the login "page" is shown; Client start properly and ask me Username and password and server[127.0.0.1]
After i set pwd and I click the login button i have the below exception.

Somebody has any idea about this problem?

Thank u

CLIENT LOG:

D:\lg3d-wonderland\bin>wonderland-client.bat
Buildfile: D:\lg3d-wonderland\bin\..\ant\run.xml

run-client:
[java] Java 3D [dev] 1.5.1-pre7-0707120059-experimental 12 Jul 2007 00:59:02 PDT

[java] Java 3D: Cache AutoCompute Bounds, accelerates getBounds() enabled
[java] CameraManager.changeCameraMode(), current = ATTACHED
[java] fps : 42.11557296767875
[java] fps : 42.033235581622684
[java] fps : 42.198233562316
[java] fps : 42.07436399217221
[java] fps : 42.07436399217221
[java] fps : 42.198233562316
[java] fps : 42.28121927236972
[java] fps : 42.15686274509804
[java] fps : 41.91033138401559
[java] fps : 42.23968565815324
[java] fps : 42.033235581622684
[java] fps : 42.033235581622684
[java] fps : 41.951219512195124
[java] fps : 41.91033138401559
[java] fps : 41.869522882181116
[java] fps : 41.951219512195124
[java] fps : 41.91033138401559
[java] fps : 41.951219512195124
[java] fps : 41.9921875
[java] fps : 41.869522882181116
[java] fps : 41.82879377431907
[java] fps : 41.869522882181116
[java] fps : 41.9921875
[java] fps : 41.82879377431907
[java] fps : 41.9921875
[java] fps : 42.033235581622684
[java] fps : 41.74757281553398
[java] fps : 42.11557296767875
[java] fps : 41.74757281553398
[java] fps : 42.07436399217221
[java] fps : 41.74757281553398
[java] fps : 42.07436399217221
[java] fps : 41.951219512195124
[java] fps : 41.869522882181116
[java] fps : 42.07436399217221
[java] fps : 42.07436399217221
[java] fps : 42.11557296767875
[java] fps : 41.74757281553398
[java] fps : 41.74757281553398
[java] fps : 41.91033138401559
[java] fps : 41.869522882181116
[java] fps : 41.82879377431907
[java] fps : 41.74757281553398
[java] fps : 41.951219512195124
[java] fps : 41.91033138401559
[java] fps : 41.9921875
[java] fps : 41.82879377431907
[java] fps : 41.9921875
[java] fps : 41.78814382896016
[java] fps : 41.91033138401559
[java] fps : 41.91033138401559
[java] fps : 41.951219512195124
[java] fps : 41.7070805043647
[java] fps : 41.951219512195124
[java] fps : 41.951219512195124
[java] fps : 41.869522882181116
[java] fps : 42.033235581622684
[java] fps : 41.82879377431907
[java] fps : 41.78814382896016
[java] fps : 41.91033138401559
[java] fps : 42.07436399217221
[java] fps : 41.91033138401559
[java] fps : 41.78814382896016
[java] fps : 41.869522882181116
[java] fps : 41.78814382896016
[java] fps : 41.9921875
[java] fps : 41.78814382896016
[java] fps : 41.9921875
[java] fps : 41.91033138401559
[java] fps : 41.9921875
[java] fps : 41.78814382896016
[java] fps : 41.91033138401559
[java] fps : 41.91033138401559
[java] fps : 41.74757281553398
[java] fps : 41.9921875
[java] fps : 41.82879377431907
[java] fps : 41.91033138401559
[java] fps : 41.91033138401559
[java] fps : 41.869522882181116
[java] fps : 41.869522882181116
[java] fps : 41.951219512195124
[java] fps : 41.91033138401559
[java] fps : 41.78814382896016
[java] fps : 42.033235581622684
[java] fps : 41.82879377431907
[java] fps : 42.033235581622684
[java] fps : 41.78814382896016
[java] fps : 41.951219512195124
[java] fps : 41.869522882181116
[java] fps : 41.78814382896016
[java] fps : 41.9921875
[java] fps : 41.91033138401559
[java] fps : 41.82879377431907
[java] fps : 42.11557296767875
[java] fps : 41.869522882181116
[java] fps : 41.7070805043647
[java] fps : 41.869522882181116
[java] fps : 42.033235581622684
[java] fps : 41.7070805043647
[java] fps : 41.9921875
[java] fps : 41.91033138401559
[java] fps : 41.82879377431907
[java] fps : 41.869522882181116
[java] fps : 41.869522882181116
[java] fps : 41.869522882181116
[java] fps : 41.91033138401559
[java] fps : 41.951219512195124
[java] fps : 41.74757281553398
[java] fps : 42.11557296767875
[java] fps : 41.74757281553398
[java] fps : 41.91033138401559
[java] fps : 41.91033138401559
[java] fps : 41.951219512195124
[java] fps : 41.951219512195124
[java] fps : 41.91033138401559
[java] fps : 41.91033138401559
[java] fps : 41.91033138401559
[java] fps : 41.951219512195124
[java] fps : 41.869522882181116
[java] fps : 37.39130434782609
[java] java.net.NoRouteToHostException: No route to host: connect
[java] at java.net.PlainSocketImpl.socketConnect(Native Method)
[java] at java.net.PlainSocketImpl.doConnect(Unknown Source)
[java] at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
[java] at java.net.PlainSocketImpl.connect(Unknown Source)
[java] at java.net.Socket.connect(Unknown Source)
[java] at java.net.Socket.connect(Unknown Source)
[java] at sun.net.NetworkClient.doConnect(Unknown Source)
[java] at sun.net.www.http.HttpClient.openServer(Unknown Source)
[java] at sun.net.www.http.HttpClient.openServer(Unknown Source)
[java] at sun.net.www.http.HttpClient.(Unknown Source)
[java] at sun.net.www.http.HttpClient.New(Unknown Source)
[java] at sun.net.www.http.HttpClient.New(Unknown Source)
[java] at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
[java] at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
[java] at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
[java] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
[java] at org.jdesktop.lg3d.wonderland.scenemanager.AssetManager$FileLoader.loadAsset(AssetManager.java:1094)
[java] at org.jdesktop.lg3d.wonderland.scenemanager.AssetManager.loadFile(AssetManager.java:513)
[java] at org.jdesktop.lg3d.wonderland.scenemanager.avatar.AvatarConfigurator$AvatarConfig.loadAvatar(AvatarConfigurator.java:253)
[java] at org.jdesktop.lg3d.wonderland.scenemanager.avatar.AvatarConfigurator$AvatarConfig.(AvatarConfigurator.java:239)
[java] at org.jdesktop.lg3d.wonderland.scenemanager.avatar.AvatarConfigurator.(AvatarConfigurator.java:127)
[java] at org.jdesktop.lg3d.wonderland.scenemanager.avatar.AvatarConfigurator.getDefault(AvatarConfigurator.java:65)
[java] at org.jdesktop.lg3d.wonderland.scenemanager.avatar.AvatarConfigurator.getDefaultAvatarInfo(AvatarConfigurator.java:81)
[java] at org.jdesktop.lg3d.wonderland.darkstar.client.ChannelController$WonderlandClientListener.loggedIn(ChannelController.java:318)
[java] at com.sun.sgs.client.simple.SimpleClient$SimpleClientConnectionListener.handleApplicationMessage(SimpleClient.java:379)
[java] at com.sun.sgs.client.simple.SimpleClient$SimpleClientConnectionListener.receivedMessage(SimpleClient.java:344)
[java] at com.sun.sgs.impl.client.simple.SimpleClientConnection.bytesReceived(SimpleClientConnection.java:131)
[java] at com.sun.sgs.impl.io.SocketConnection.filteredMessageReceived(SocketConnection.java:108)
[java] at com.sun.sgs.impl.io.CompleteMessageFilter.processReceiveBuffer(CompleteMessageFilter.java:108)
[java] at com.sun.sgs.impl.io.CompleteMessageFilter.filterReceive(CompleteMessageFilter.java:75)
[java] at com.sun.sgs.impl.io.SocketConnectionListener.messageReceived(SocketConnectionListener.java:100)
[java] at org.apache.mina.common.support.AbstractIoFilterChain$TailFilter.messageReceived(Unknown Source)
[java] at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(Unknown Source)
[java] at org.apache.mina.common.support.AbstractIoFilterChain.access$5(Unknown Source)
[java] at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(Unknown Source)
[java] at org.apache.mina.filter.executor.ExecutorFilter.processEvent(Unknown Source)
[java] at org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.run(Unknown Source)
[java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
[java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
[java] at java.lang.Thread.run(Unknown Source)
[java] java.lang.NullPointerException
[java] at org.jdesktop.lg3d.wonderland.scenemanager.avatar.AvatarConfigurator$AvatarConfig.loadAvatar(AvatarConfigurator.java:264)
[java] at org.jdesktop.lg3d.wonderland.scenemanager.avatar.AvatarConfigurator$AvatarConfig.(AvatarConfigurator.java:239)
[java] at org.jdesktop.lg3d.wonderland.scenemanager.avatar.AvatarConfigurator.(AvatarConfigurator.java:127)
[java] at org.jdesktop.lg3d.wonderland.scenemanager.avatar.AvatarConfigurator.getDefault(AvatarConfigurator.java:65)
[java] at org.jdesktop.lg3d.wonderland.scenemanager.avatar.AvatarConfigurator.getDefaultAvatarInfo(AvatarConfigurator.java:81)
[java] at org.jdesktop.lg3d.wonderland.darkstar.client.ChannelController$WonderlandClientListener.loggedIn(ChannelController.java:318)
[java] at com.sun.sgs.client.simple.SimpleClient$SimpleClientConnectionListener.handleApplicationMessage(SimpleClient.java:379)
[java] at com.sun.sgs.client.simple.SimpleClient$SimpleClientConnectionListener.receivedMessage(SimpleClient.java:344)
[java] at com.sun.sgs.impl.client.simple.SimpleClientConnection.bytesReceived(SimpleClientConnection.java:131)
[java] at com.sun.sgs.impl.io.SocketConnection.filteredMessageReceived(SocketConnection.java:108)
[java] at com.sun.sgs.impl.io.CompleteMessageFilter.processReceiveBuffer(CompleteMessageFilter.java:108)
[java] at com.sun.sgs.impl.io.CompleteMessageFilter.filterReceive(CompleteMessageFilter.java:75)
[java] at com.sun.sgs.impl.io.SocketConnectionListener.messageReceived(SocketConnectionListener.java:100)
[java] at org.apache.mina.common.support.AbstractIoFilterChain$TailFilter.messageReceived(Unknown Source)
[java] at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(Unknown Source)
[java] at org.apache.mina.common.support.AbstractIoFilterChain.access$5(Unknown Source)
[java] at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(Unknown Source)
[java] at org.apache.mina.filter.executor.ExecutorFilter.processEvent(Unknown Source)
[java] at org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.run(Unknown Source)
[java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
[java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
[java] at java.lang.Thread.run(Unknown Source)
[java] java.net.NoRouteToHostException: No route to host: connect
[java] at java.net.PlainSocketImpl.socketConnect(Native Method)
[java] at java.net.PlainSocketImpl.doConnect(Unknown Source)
[java] at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
[java] at java.net.PlainSocketImpl.connect(Unknown Source)
[java] at java.net.Socket.connect(Unknown Source)
[java] at java.net.Socket.connect(Unknown Source)
[java] at sun.net.NetworkClient.doConnect(Unknown Source)
[java] at sun.net.www.http.HttpClient.openServer(Unknown Source)
[java] at sun.net.www.http.HttpClient.openServer(Unknown Source)
[java] at sun.net.www.http.HttpClient.(Unknown Source)
[java] at sun.net.www.http.HttpClient.New(Unknown Source)
[java] at sun.net.www.http.HttpClient.New(Unknown Source)
[java] at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
[java] at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
[java] at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
[java] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
[java] at org.jdesktop.lg3d.wonderland.scenemanager.AssetManager$FileLoader.loadAsset(AssetManager.java:1094)
[java] at org.jdesktop.lg3d.wonderland.scenemanager.AssetManager.loadFile(AssetManager.java:513)
[java] at org.jdesktop.lg3d.wonderland.scenemanager.avatar.AvatarConfigurator$AvatarConfig.loadAvatar(AvatarConfigurator.java:253)
[java] at org.jdesktop.lg3d.wonderland.scenemanager.avatar.AvatarConfigurator$AvatarConfig.(AvatarConfigurator.java:239)
[java] at org.jdesktop.lg3d.wonderland.scenemanager.avatar.AvatarConfigurator.(AvatarConfigurator.java:127)
[java] at org.jdesktop.lg3d.wonderland.scenemanager.avatar.AvatarConfigurator.getDefault(AvatarConfigurator.java:65)
[java] at org.jdesktop.lg3d.wonderland.scenemanager.avatar.AvatarConfigurator.getDefaultAvatarInfo(AvatarConfigurator.java:81)
[java] at org.jdesktop.lg3d.wonderland.darkstar.client.ChannelController$WonderlandClientListener.loggedIn(ChannelController.java:318)
[java] at com.sun.sgs.client.simple.SimpleClient$SimpleClientConnectionListener.handleApplicationMessage(SimpleClient.java:379)
[java] at com.sun.sgs.client.simple.SimpleClient$SimpleClientConnectionListener.receivedMessage(SimpleClient.java:344)
[java] at com.sun.sgs.impl.client.simple.SimpleClientConnection.bytesReceived(SimpleClientConnection.java:131)
[java] at com.sun.sgs.impl.io.SocketConnection.filteredMessageReceived(SocketConnection.java:108)
[java] at com.sun.sgs.impl.io.CompleteMessageFilter.processReceiveBuffer(CompleteMessageFilter.java:108)
[java] at com.sun.sgs.impl.io.CompleteMessageFilter.filterReceive(CompleteMessageFilter.java:75)
[java] at com.sun.sgs.impl.io.SocketConnectionListener.messageReceived(SocketConnectionListener.java:100)
[java] at org.apache.mina.common.support.AbstractIoFilterChain$TailFilter.messageReceived(Unknown Source)
[java] at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(Unknown Source)
[java] at org.apache.mina.common.support.AbstractIoFilterChain.access$5(Unknown Source)
[java] at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(Unknown Source)
[java] at org.apache.mina.filter.executor.ExecutorFilter.processEvent(Unknown Source)
[java] at org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.run(Unknown Source)
[java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
[java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
[java] at java.lang.Thread.run(Unknown Source)
[java] java.lang.NullPointerException
[java] at org.jdesktop.lg3d.wonderland.scenemanager.avatar.AvatarConfigurator$AvatarConfig.loadAvatar(AvatarConfigurator.java:264)
[java] at org.jdesktop.lg3d.wonderland.scenemanager.avatar.AvatarConfigurator$AvatarConfig.(AvatarConfigurator.java:239)
[java] at org.jdesktop.lg3d.wonderland.scenemanager.avatar.AvatarConfigurator.(AvatarConfigurator.java:127)
[java] at org.jdesktop.lg3d.wonderland.scenemanager.avatar.AvatarConfigurator.getDefault(AvatarConfigurator.java:65)
[java] at org.jdesktop.lg3d.wonderland.scenemanager.avatar.AvatarConfigurator.getDefaultAvatarInfo(AvatarConfigurator.java:81)
[java] at org.jdesktop.lg3d.wonderland.darkstar.client.ChannelController$WonderlandClientListener.loggedIn(ChannelController.java:318)
[java] at com.sun.sgs.client.simple.SimpleClient$SimpleClientConnectionListener.handleApplicationMessage(SimpleClient.java:379)
[java] at com.sun.sgs.client.simple.SimpleClient$SimpleClientConnectionListener.receivedMessage(SimpleClient.java:344)
[java] at com.sun.sgs.impl.client.simple.SimpleClientConnection.bytesReceived(SimpleClientConnection.java:131)
[java] at com.sun.sgs.impl.io.SocketConnection.filteredMessageReceived(SocketConnection.java:108)
[java] at com.sun.sgs.impl.io.CompleteMessageFilter.processReceiveBuffer(CompleteMessageFilter.java:108)
[java] at com.sun.sgs.impl.io.CompleteMessageFilter.filterReceive(CompleteMessageFilter.java:75)
[java] at com.sun.sgs.impl.io.SocketConnectionListener.messageReceived(SocketConnectionListener.java:100)
[java] at org.apache.mina.common.support.AbstractIoFilterChain$TailFilter.messageReceived(Unknown Source)
[java] at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(Unknown Source)
[java] at org.apache.mina.common.support.AbstractIoFilterChain.access$5(Unknown Source)
[java] at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(Unknown Source)
[java] at org.apache.mina.filter.executor.ExecutorFilter.processEvent(Unknown Source)
[java] at org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.run(Unknown Source)
[java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
[java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
[java] at java.lang.Thread.run(Unknown Source)
[java] ChannelController receivedMessage
[java] ClientListener Received Msg 137
[java] Checking protocol versions
[java] Server version 1.3_0
[java] Local version 1.3_0
[java] fps : 36.94158075601375
[java] fps : 41.869522882181116
[java] fps : 41.869522882181116
[java] fps : 42.32283464566929
[java] fps : 42.198233562316
[java] fps : 41.9921875
Terminare il processo batch (S/N)?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Jonathan Kaplan

I think your issue is with downloading the art resources from our art
server. The default art is downloaded from the web based at the
following URL:
http://192.18.37.42/compiled_models
It looks like Java is having trouble connecting to this URL. Can you
connect to it from a browser?

In any case, you can download the art locally to solve this problem:
http://forums.java.net/jive/message.jspa?messageID=227936#227936

nazzario
Offline
Joined: 2007-07-24

I've downloaded all the files and updated my.run.properties file.

I still have the same problem. I read the issue that u highlited and seems a little bit different; I'm not able to login, seems the client is not able to communicate to the server;

While I'm running the client and the server I did a netstat and the result is below..

C:\Documents and Settings\Administrator>netstat -a

Connessioni attive

Proto Indirizzo locale Indirizzo esterno Stato
TCP SYSW18945B:epmap 0.0.0.0:0 LISTENING
TCP SYSW18945B:microsoft-ds 0.0.0.0:0 LISTENING
TCP SYSW18945B:1027 0.0.0.0:0 LISTENING
TCP SYSW18945B:1139 0.0.0.0:0 LISTENING
TCP SYSW18945B:3389 0.0.0.0:0 LISTENING
TCP SYSW18945B:9495 0.0.0.0:0 LISTENING
TCP SYSW18945B:1516 localhost:1517 ESTABLISHED
TCP SYSW18945B:1517 localhost:1516 ESTABLISHED
UDP SYSW18945B:microsoft-ds *:*
UDP SYSW18945B:isakmp *:*
UDP SYSW18945B:4500 *:*
UDP SYSW18945B:ntp *:*
UDP SYSW18945B:1900 *:*

Jonathan Kaplan

It does look like the server is listening properly (it listens on port
1139 by default). From the exception you sent, I'm pretty sure the
artwork is the culprit. When this happens, the client's login dialog
doesn't go away, but the server should print a message about the client
connecting.

I just noticed you are running from the nightly build and not a source
tree. This isn't as well tested, but I put some changes into the build
for yesterday (2007-08-10) that may help. In my.run.properties, set :

wonderland.useLocalArt=true
wonderland.art.dir=/path/to/lg3d-wonderland-art directory

If all goes well you should see a message like:

Aug 10, 2007 6:16:48 PM
org.jdesktop.lg3d.wonderland.scenemanager.AssetManager
WARNING: baseURL override
file:/Users/jkaplan/proj/wl-cvs/lg3d-wonderland-art/compiled_models

This will let you know that it is downloading art locally. It will also
print the files it is trying to download if there is an error.

wonderland@javadesktop.org wrote:
> I've downloaded all the files and updated my.run.properties file.
>
> I still have the same problem. I read the issue that u highlited and seems a little bit different; I'm not able to login, seems the client is not able to communicate to the server;
>
> While I'm running the client and the server I did a netstat and the result is below..
>
> C:\Documents and Settings\Administrator>netstat -a
>
> Connessioni attive
>
> Proto Indirizzo locale Indirizzo esterno Stato
> TCP SYSW18945B:epmap 0.0.0.0:0 LISTENING
> TCP SYSW18945B:microsoft-ds 0.0.0.0:0 LISTENING
> TCP SYSW18945B:1027 0.0.0.0:0 LISTENING
> TCP SYSW18945B:1139 0.0.0.0:0 LISTENING
> TCP SYSW18945B:3389 0.0.0.0:0 LISTENING
> TCP SYSW18945B:9495 0.0.0.0:0 LISTENING
> TCP SYSW18945B:1516 localhost:1517 ESTABLISHED
> TCP SYSW18945B:1517 localhost:1516 ESTABLISHED
> UDP SYSW18945B:microsoft-ds *:*
> UDP SYSW18945B:isakmp *:*
> UDP SYSW18945B:4500 *:*
> UDP SYSW18945B:ntp *:*
> UDP SYSW18945B:1900 *:*
> [Message sent by forum member 'nazzario' (nazzario)]
>
> http://forums.java.net/jive/thread.jspa?messageID=230417
>