Results 1 to 5 of 5
  1. #1
    Senior Member
    Join Date
    Jan 2011
    Location
    Navi Mumbai
    Posts
    30

    Question Could not listen on port 2459 for socket Lightstreamer HTTP Server

    unable to start the lightstreamer server, even i used 8080,82,443,85
    but no use, can anyone let me know to configure the lightstreamer server, just now started R&D on LightStreamer


    Code:
    Could not listen on port 2549 for socket Lightstreamer HTTP Server
    java.net.BindException: Address already in use: bind
    	at sun.nio.ch.Net.bind(Native Method)
    	at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:126)
    	at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
    	at com.lightstreamer.k.a.n.k(n.java)
    	at com.lightstreamer.k.a.n.<init>(n.java)
    	at com.lightstreamer.k.a.m.a(m.java)
    	at com.lightstreamer.k.c.d(c.java)
    	at com.lightstreamer.k.c.a(c.java)
    	at com.lightstreamer.l.b(l.java)
    	at com.lightstreamer.l.a(l.java)
    	at com.lightstreamer.LS.main(LS.java)
    10-Jan-11 15:55:44,518 |WARN |LightstreamerLogger.init         |main                       |Asynchronous sockets not available; synchronous sockets will be used for server Lightstreamer HTTP Server
    10-Jan-11 15:55:44,518 |ERROR|LightstreamerLogger.init         |main                       |Could not listen on port 2549 for socket Lightstreamer HTTP Server
    java.net.BindException: Address already in use: JVM_Bind
    	at java.net.PlainSocketImpl.socketBind(Native Method)
    	at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365)
    	at java.net.ServerSocket.bind(ServerSocket.java:328)
    	at java.net.ServerSocket.<init>(ServerSocket.java:194)
    	at java.net.ServerSocket.<init>(ServerSocket.java:150)
    	at com.lightstreamer.k.a.o.k(o.java)
    	at com.lightstreamer.k.a.o.<init>(o.java)
    	at com.lightstreamer.k.a.m.a(m.java)
    	at com.lightstreamer.k.c.d(c.java)
    	at com.lightstreamer.k.c.a(c.java)
    	at com.lightstreamer.l.b(l.java)
    	at com.lightstreamer.l.a(l.java)
    	at com.lightstreamer.LS.main(LS.java)
    10-Jan-11 15:55:44,518 |ERROR|LightstreamerLogger.init         |main                       |Error in HTTP server opening
    java.net.BindException: Address already in use: JVM_Bind
    	at java.net.PlainSocketImpl.socketBind(Native Method)
    	at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365)
    	at java.net.ServerSocket.bind(ServerSocket.java:328)
    	at java.net.ServerSocket.<init>(ServerSocket.java:194)
    	at java.net.ServerSocket.<init>(ServerSocket.java:150)
    	at com.lightstreamer.k.a.o.k(o.java)
    	at com.lightstreamer.k.a.o.<init>(o.java)
    	at com.lightstreamer.k.a.m.a(m.java)
    	at com.lightstreamer.k.c.d(c.java)
    	at com.lightstreamer.k.c.a(c.java)
    	at com.lightstreamer.l.b(l.java)
    	at com.lightstreamer.l.a(l.java)
    	at com.lightstreamer.LS.main(LS.java)
    10-Jan-11 15:55:44,518 |FATAL|LightstreamerLogger.init         |main                       |Unable to setup HTTP server
    10-Jan-11 15:55:44,518 |INFO |LightstreamerLogger.init         |main                       |Exiting.....

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    972
    Have you already checked (through netstat or similar) that the configured ports were not bound before launching the Server?

    It could be a system-level limitation.
    For instance, in unix/linux a user other than root cannot open a port lower than 1024 in listening.
    Your case is worse, as you could not open even higher ports.
    Lightstreamer opens the configured ports for listening in a standard way,
    so, it should not suffer from limitations that don't apply also to other programs.

  3. #3
    Senior Member
    Join Date
    Jan 2011
    Location
    Navi Mumbai
    Posts
    30

    port 8080 is enabled

    thanks for your valuable reply, i have check the active connection using netstat
    result pasted below. 8080 port is not using, i am using Winxp, is there any solutions to properly configure the port and run the lightstreamer server in local, if i want to install in another pc then what steps i need to follow to run the tool.

    Active Connections

    Proto Local Address Foreign Address State
    TCP 127.0.0.1:1146 127.0.0.1:1147 ESTABLISHED
    TCP 127.0.0.1:1147 127.0.0.1:1146 ESTABLISHED
    TCP 127.0.0.1:1151 127.0.0.1:1152 ESTABLISHED
    TCP 127.0.0.1:1152 127.0.0.1:1151 ESTABLISHED
    TCP 127.0.0.1:5152 127.0.0.1:2282 CLOSE_WAIT
    TCP 192.168.35.92:1068 192.168.25.25:5061 ESTABLISHED
    TCP 192.168.35.92:1108 192.168.8.23:43429 ESTABLISHED
    TCP 192.168.35.92:1110 192.168.8.23:43429 ESTABLISHED
    TCP 192.168.35.92:1111 192.168.8.23:43429 ESTABLISHED
    TCP 192.168.35.92:1124 192.168.8.23:43429 ESTABLISHED
    TCP 192.168.35.92:1127 192.168.8.22:26135 ESTABLISHED
    TCP 192.168.35.92:1129 192.168.8.23:43429 ESTABLISHED
    TCP 192.168.35.92:1214 192.168.8.23:43472 ESTABLISHED
    TCP 192.168.35.92:1249 192.168.8.23:43472 ESTABLISHED
    TCP 192.168.35.92:2872 74.125.71.139:80 TIME_WAIT

  4. #4
    Senior Member
    Join Date
    Jan 2011
    Location
    Navi Mumbai
    Posts
    30

    Smile working

    Need to disconnect [stop] IIS, cause IIS uses port 80
    now the lightstreamer server is running in my local on port 80

  5. #5
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    972
    [Ooops, I probably missed your previous post; I leave the following comment anyway].


    Just in case, please, make sure you are including listening ports in the "netstat" inquiry (see netstat -?).

    All the steps needed to run Lightstreamer are those shown in GETTING_STARTED.TXT
    Obviously, the availability of a few ports for opening in listening mode is a precondition.
    Is it possible that a firewall in the local machine is configured in order to forbid opening of any port in listening? Note that Lightstreamer does not negotiate its ports with firewalls, so you should make the needed ports available by acting on the firewall configuration manually.

 

 

Similar Threads

  1. How to port from LS server to a webserver
    By UweF in forum Client APIs
    Replies: 1
    Last Post: December 2nd, 2010, 09:25 PM
  2. Replies: 3
    Last Post: September 29th, 2009, 08:54 AM
  3. Replies: 4
    Last Post: February 4th, 2009, 11:45 PM
  4. Replies: 1
    Last Post: February 22nd, 2008, 09:23 AM
  5. Replies: 0
    Last Post: January 10th, 2007, 04:03 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 02:54 PM.