Re: [robocup-rescue-s] Problem in running rescue_47_3

From: Mohammad Mehdi Saboorian (saboorian@gmail.com)
Date: Sat 23 Jul 2005 - 13:21:08 GMT


Dear Mehdi,
When you try to connect to "localhost" in suse,
it will be resolved to ::1: by default,
which is IPv6 equivalent for 127.0.0.1 <http://127.0.0.1>
but java apps, seem to have problem with IPv6 on suse!
 a simple solution is to change Shell Script files to
connect to 127.0.0.1 <http://127.0.0.1> instead of localhost,
for example in file "4morimototrafficsimulator.sh"
this line
java -cp $DIR/../program/ traffic.Main localhost 7000 $*
should be changed to
 java -cp $DIR/../program/ traffic.Main 127.0.0.1 <http://127.0.0.1> 7000 $*
of course for changing viewer and firesimulator scripts
you have to add some parameters (like -h 127.0.0.1 <http://127.0.0.1>)
cause it tries to connect to localhost if not mentioned
by any parameter.
 A better and permanent solution is to force OS to
resolve localhost to 127.0.0.1 <http://127.0.0.1>
It can be achieved by changing a line in Linux host
file (i think it should be placed somewhere like
/etc/networking/hosts or /etc/hosts I'm not sure)
you should change ::1: to 127.0.0.1 <http://127.0.0.1>
 have fun,
Mohammad Mehdi Saboorian
member of SBCe_Saviour
  On 7/23/05, Mahdi Heidari <mahdi.hdi@gmail.com> wrote:
>
>
> Hello all
>
> I am new in rescue.I installed resuce-0_47_3 but when
> I ran it, FireSimulater & Veiwer & TrafficSimulator terminated.
> I will so pleased if somebody could help me, these are log files :
> (My OS is Suse 9.2)
>
> FireSim log :
> ResQ Firesimulator
> 06.08.2005
> loading values from "./config.txt"
> loading values from "default.stp"
> java.net.ConnectException: Connection refused
> at java.net.PlainSocketImpl.socketConnect (Native Method)
> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
> at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
> at java.net.Socket.connect(Socket.java:452)
> at java.net.Socket.connect(Socket.java:402)
> at java.net.Socket.<init>(Socket.java:309)
> at java.net.Socket.<init>(Socket.java:153)
> at io.TCPIO.<init>( TCPIO.java:27)
> at io.RIO.<init>(RIO.java:25)
> at kernel.RealKernel.establishConnection(RealKernel.java:37)
> at simulator.Simulator.run(Simulator.java:78)
> at Main.main(Main.java:31)
>
> ============================================================
> trafficSim :
>
> java.net.ConnectException: Connection refused
> at java.net.PlainSocketImpl.socketConnect(Native Method)
> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
> at java.net.PlainSocketImpl.connectToAddress (PlainSocketImpl.java:171)
> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
> at java.net.Socket.connect(Socket.java:452)
> at java.net.Socket.connect(Socket.java:402)
> at java.net.Socket.<init>( Socket.java:309)
> at java.net.Socket.<init>(Socket.java:153)
> at traffic.TCPIO.<init>(TCPIO.java:20)
> at traffic.Simulator.<init>(Simulator.java:10)
> at traffic.Main.main(Main.java:12)
> ============================================================
> Viewer :
> java.net.ConnectException: Connection refused
> at java.net.PlainSocketImpl.socketConnect(Native Method)
> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
> at java.net.PlainSocketImpl.connectToAddress (PlainSocketImpl.java:171)
> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
> at java.net.Socket.connect(Socket.java:452)
> at java.net.Socket.connect(Socket.java:402)
> at java.net.Socket.<init>( Socket.java:309)
> at java.net.Socket.<init>(Socket.java:153)
> at viewer.TCPIO.<init>(TCPIO.java:19)
> at viewer.Main.main(Main.java:29)
> at viewer.Main.main(Main.java:25)
> ============================================================
> Thank you so much
> Regards
> Mahdi
>
> _______________________________________________
> robocup-rescue-s mailing list
> robocup-rescue-s@mailman.cc.gatech.edu
> https://mailman.cc.gatech.edu/mailman/listinfo/robocup-rescue-s
>
>
>


_______________________________________________
robocup-rescue-s mailing list
robocup-rescue-s@mailman.cc.gatech.edu
https://mailman.cc.gatech.edu/mailman/listinfo/robocup-rescue-s



This archive was generated by hypermail 2.1.3 : Sat 23 Jul 2005 - 13:46:24 GMT