Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Jan 2012
    Location
    SalÚ
    Posts
    5

    Lightstreamer startup problem on Windows 7 (RMI exception)

    Good morning,
    I downloaded and installed (following QuickStart procedure) LightStreamer 5.1.1 moderato on a Windows 7 32bit machine.
    I don't have any customization.
    I've verified Java Home Path in the configuration path and I have other Java programs runnig correctly on the machine.
    When I try to startup the server using "Start_LS_as_Application.bat" I get this error in the log file:

    Code:
    18-gen-13 09:38:48,240|INFO |LightstreamerLogger.init         |main                       |Lightstreamer Server 5.1.1 build 1623
    18-gen-13 09:38:48,352|INFO |LightstreamerLogger.init         |main                       |Lightstreamer Server starting in Moderato edition.
    18-gen-13 09:38:48,352|INFO |LightstreamerLogger.external     |Thread-1                   |Instance ID to be generated ... 
    18-gen-13 09:38:48,372|INFO |LightstreamerLogger.external     |Thread-1                   |Instance ID: HV2osU8mcbKeawVxNgv4
    18-gen-13 09:38:48,562|WARN |LightstreamerLogger.init         |main                       |Only minimal JMX management support is available with the current license.
    18-gen-13 09:38:49,089|INFO |LightstreamerLogger.init         |main                       |Started RMI server for JMX on port 8888.
    18-gen-13 09:38:49,584|WARN |LightstreamerLogger.init         |main                       |Stopping service not available:
    com.lightstreamer.n.ob: java.io.IOException: Cannot bind to URL [rmi://localhost:8888/lsjmx]: javax.naming.NoPermissionException [Root exception is java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: 
    	java.rmi.AccessException: Registry.Registry.bind disallowed; origin /127.0.0.1 is non-local host]
    	at com.lightstreamer.n.j.a(j.java) ~[lightstreamer.jar:na]
    	at com.lightstreamer.n.qb.a(qb.java) ~[lightstreamer.jar:na]
    	at com.lightstreamer.n.gb.a(gb.java) [lightstreamer.jar:na]
    	at com.lightstreamer.h.j.a(j.java) [lightstreamer.jar:na]
    	at com.lightstreamer.h.j.i(j.java) [lightstreamer.jar:na]
    	at com.lightstreamer.o.a(o.java) [lightstreamer.jar:na]
    	at com.lightstreamer.o.b(o.java) [lightstreamer.jar:na]
    	at com.lightstreamer.LS.main(LS.java) [lightstreamer.jar:na]
    Caused by: java.io.IOException: Cannot bind to URL [rmi://localhost:8888/lsjmx]: javax.naming.NoPermissionException [Root exception is java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: 
    	java.rmi.AccessException: Registry.Registry.bind disallowed; origin /127.0.0.1 is non-local host]
    	at javax.management.remote.rmi.RMIConnectorServer.newIOException(RMIConnectorServer.java:827) ~[na:1.7.0]
    	at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:432) ~[na:1.7.0]
    	... 8 common frames omitted
    Caused by: javax.naming.NoPermissionException: null
    	at com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:143) ~[na:1.7.0]
    	at com.sun.jndi.toolkit.url.GenericURLContext.bind(GenericURLContext.java:226) ~[na:1.7.0]
    	at javax.naming.InitialContext.bind(InitialContext.java:419) ~[na:1.7.0]
    	at javax.management.remote.rmi.RMIConnectorServer.bind(RMIConnectorServer.java:644) ~[na:1.7.0]
    	at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:427) ~[na:1.7.0]
    	... 8 common frames omitted
    Caused by: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: 
    	java.rmi.AccessException: Registry.Registry.bind disallowed; origin /127.0.0.1 is non-local host
    	at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:413) ~[na:1.7.0]
    	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:267) ~[na:1.7.0]
    	at sun.rmi.transport.Transport$1.run(Transport.java:177) ~[na:1.7.0]
    	at sun.rmi.transport.Transport$1.run(Transport.java:174) ~[na:1.7.0]
    	at java.security.AccessController.doPrivileged(Native Method) ~[na:1.7.0]
    	at sun.rmi.transport.Transport.serviceCall(Transport.java:173) ~[na:1.7.0]
    	at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553) ~[na:1.7.0]
    	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808) ~[na:1.7.0]
    	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667) ~[na:1.7.0]
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) ~[na:1.7.0]
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) ~[na:1.7.0]
    	at java.lang.Thread.run(Thread.java:722) ~[na:1.7.0]
    	at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:273) ~[na:1.7.0]
    	at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:251) ~[na:1.7.0]
    	at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:377) ~[na:1.7.0]
    	at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source) ~[na:1.7.0]
    	at com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:137) ~[na:1.7.0]
    	... 12 common frames omitted
    java.rmi.AccessException: Registry.Registry.bind disallowed; origin /127.0.0.1 is non-local host
    	at sun.rmi.registry.RegistryImpl.checkAccess(RegistryImpl.java:247) ~[na:1.7.0]
    	at sun.rmi.registry.RegistryImpl.bind(RegistryImpl.java:139) ~[na:1.7.0]
    	at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source) ~[na:1.7.0]
    	at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:403) ~[na:1.7.0]
    	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:267) ~[na:1.7.0]
    	at sun.rmi.transport.Transport$1.run(Transport.java:177) ~[na:1.7.0]
    	at sun.rmi.transport.Transport$1.run(Transport.java:174) ~[na:1.7.0]
    	at java.security.AccessController.doPrivileged(Native Method) ~[na:1.7.0]
    	at sun.rmi.transport.Transport.serviceCall(Transport.java:173) ~[na:1.7.0]
    	at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553) ~[na:1.7.0]
    	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808) ~[na:1.7.0]
    	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667) ~[na:1.7.0]
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) ~[na:1.7.0]
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) ~[na:1.7.0]
    	at java.lang.Thread.run(Thread.java:722) ~[na:1.7.0]
    18-gen-13 09:38:49,595|INFO |LightstreamerLogger.init         |main                       |SERVER pool size set by default at 10.
    18-gen-13 09:38:49,687|INFO |LightstreamerLogger.init         |Init for DEMO              |Loading Metadata Adapter DEMO
    18-gen-13 09:38:49,688|INFO |LightstreamerLogger.init         |Init for DEMO.MONITOR      |Loading Data Adapter DEMO.MONITOR
    18-gen-13 09:38:49,689|INFO |LightstreamerLogger.init         | for DEMO.PORTFOLIO_ADAPTER|Loading Data Adapter DEMO.PORTFOLIO_ADAPTER
    18-gen-13 09:38:49,688|INFO |LightstreamerLogger.init         |Init for DEMO.CHAT_ROOM    |Loading Data Adapter DEMO.CHAT_ROOM
    18-gen-13 09:38:49,688|INFO |LightstreamerLogger.init         |Init for DEMO.QUOTE_ADAPTER|Loading Data Adapter DEMO.QUOTE_ADAPTER
    18-gen-13 09:38:49,689|INFO |LightstreamerLogger.init         |t for DEMO.SIMPLE_MESSENGER|Loading Data Adapter DEMO.SIMPLE_MESSENGER
    18-gen-13 09:38:49,752|INFO |LightstreamerLogger.init         |Init for DEMO.MONITOR      |Finished loading Data Adapter DEMO.MONITOR
    18-gen-13 09:38:49,866|INFO |LightstreamerLogger.init         |Init for DEMO.CHAT_ROOM    |Finished loading Data Adapter DEMO.CHAT_ROOM
    18-gen-13 09:38:49,868|INFO |LightstreamerLogger.init         |t for DEMO.SIMPLE_MESSENGER|Finished loading Data Adapter DEMO.SIMPLE_MESSENGER
    18-gen-13 09:38:49,870|INFO |LightstreamerLogger.init         | for DEMO.PORTFOLIO_ADAPTER|Finished loading Data Adapter DEMO.PORTFOLIO_ADAPTER
    18-gen-13 09:38:49,872|INFO |LightstreamerLogger.init         |Init for DEMO              |Finished loading Metadata Adapter DEMO
    18-gen-13 09:38:49,889|INFO |LightstreamerLogger.init         |Init for DEMO.QUOTE_ADAPTER|Finished loading Data Adapter DEMO.QUOTE_ADAPTER
    18-gen-13 09:38:49,903|INFO |LightstreamerLogger.init         |main                       |Selector pool size set by default at 4.
    18-gen-13 09:38:49,903|INFO |LightstreamerLogger.init         |main                       |Selector maximum load set by default at 1000.
    18-gen-13 09:38:49,953|ERROR|LightstreamerLogger.init         |main                       |Error in setting up NIO Infrastructure: java.io.IOException: Unable to establish loopback connection
    18-gen-13 09:38:49,954|ERROR|LightstreamerLogger.init         |main                       |Error in push engine initialization: Error in setting up NIO Infrastructure.
    18-gen-13 09:38:49,955|FATAL|LightstreamerLogger.init         |main                       |Push engine initialization error.
    Can you please help me?

    Thank you very much
    best regards,
    Enrico


    EDIT:
    JVM version: JDK 1.7.0_09-b05
    Last edited by enrico; January 18th, 2013 at 08:53 AM. Reason: Java version

  2. #2
    Member
    Join Date
    Jan 2012
    Location
    SalÚ
    Posts
    5
    I tried changind jdk version and using 1.6.0_30 the server starts correctly.

  3. #3
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    537
    Hi Enrico,

    It seems that Java (version 1.7.0_09-b05) does not have permission to open TCP ports (the server stopped at the first bind operation on a TCP port).
    Please check if the runtime JDK 1.7 has all the necessary permissions and if the two versions of the JDK are installed the same way.

 

 

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 12:20 PM.