PDA

View Full Version : starting ES under linux



piffa
11-03-2004, 09:07 PM
hello Michael,

I installed ES 3.6.2 on Linux (red hat 9.0) with java 1.4.2_04, but when I run it (StartElectroServer) ES give me this exception:



Starting Chat Server
Thread pool configured: min=1, max=10, keepalive=60000
2004/11/03 20:23:34.795 SEVERE [10] (ChatProtocol.startServer): Cannot listen on address: /xxx.yyy.zzz.ttt:9875
java.net.SocketException: Cannot assign requested address
sun.nio.ch.Net.bind(Native Method)
sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
org.ronsoft.protoplex.nioimpl.server.NioServer.lis ten(NioServer.java:308)
com.electrotank.electroserver.ChatProtocol.startSe rver(ChatProtocol.java:322)
com.electrotank.electroserver.ElectroServer.startC hatServer(ElectroServer.java:193)
com.electrotank.electroserver.ElectroServer.main(E lectroServer.java:314)
sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
java.lang.reflect.Method.invoke(Unknown Source)
com.install4j.runtime.LauncherEngine.launch(Unknow n Source)
com.install4j.runtime.Launcher.main(Unknown Source)
2004/11/03 20:23:34.911 SEVERE [10] (ChatProtocol.startServer): Unable to listen on any of the addresses, is the server already running?
Could not start server thread, exiting


it seems like the server is already running, but it isn't ot at least it doesn't appear in the process list (I tried both ps and top).

any ideas?

daveganley
11-04-2004, 03:43 AM
Have you checked the ip address is of the server and not locolhost, also try changing the port number to say 10000 - just remember to change it on the flash side to match.

webgeek
11-04-2004, 05:03 AM
I agree with Dave. This error occurs when you have an IP address/port number combination that is in use or doesn't belong to the machine. A simple test to start with is get the server running using 127.0.0.1. Once thats working, then try and change the IP to something else.

piffa
11-04-2004, 07:24 PM
hi Michael :)

tnx for yr contributes now it works! :blush:

webgeek
11-05-2004, 06:39 AM
Glad to help :)