Ask is moving to Stack Overflow and Serverfault.com! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode

0

Installation Problem with OpenDaylight on Ubuntu

asked 2016-07-30 22:00:34 -0800

Kural gravatar image

Hi,

I am getting the below error message when i try to run ./bin/karaf to install OpenDayLight on my Ubuntu 16.04.1 running as a VM on my MAC Laptop.

./bin/karaf: 242: [: Illegal number: Error: Config file not found: /usr/lib/jvm/java-9-openjdk-amd64/conf/management/management.properties

I installed Java JRE, JDK 9. Pls let me know what am i doing wrong?

Thanks Kural

edit retag flag offensive close merge delete

Comments

By the way, i am trying to install OpenDayLight Beryllium-SR2 release.

Kural ( 2016-07-30 22:09:56 -0800 )edit

Can you try to run using JAVA 8.

subhash ( 2016-08-01 00:03:12 -0800 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2016-08-01 17:06:26 -0800

Kural gravatar image

Hi Subhash,

thanks for your answer. I tried running with Java 8 and i was able to get to opendaylight-user@root> prompt but immediately after i see a "Exception in thread "JMX Connector Thread" error and a bunch of error messages. i am still able to get to the prompt and issue commands such as feature:list. not sure whats actually broken but here are the messages that popped up right after installing:

opendaylight-user@root>Exception in thread "JMX Connector Thread [service:jmx:rmi://0.0.0.0:44444/jndi/rmi://0.0.0.0:1099/karaf-root]" java.lang.RuntimeException: Could not start JMX connector server at org.apache.karaf.management.ConnectorServerFactory$1.run(ConnectorServerFactory.java:258) Caused by: java.io.IOException: Cannot bind to URL [rmi://0.0.0.0:1099/karaf-root]: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: Exception creating connection to: 0.0.0.0; nested exception is: java.net.NoRouteToHostException: No route to host] at javax.management.remote.rmi.RMIConnectorServer.newIOException(RMIConnectorServer.java:827) at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:432) at org.apache.karaf.management.ConnectorServerFactory$1.run(ConnectorServerFactory.java:245) Caused by: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: Exception creating connection to: 0.0.0.0; nested exception is: java.net.NoRouteToHostException: No route to host] at com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:147) at com.sun.jndi.toolkit.url.GenericURLContext.bind(GenericURLContext.java:228) at javax.naming.InitialContext.bind(InitialContext.java:425) at javax.management.remote.rmi.RMIConnectorServer.bind(RMIConnectorServer.java:644) at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:427) ... 1 more Caused by: java.rmi.ConnectIOException: Exception creating connection to: 0.0.0.0; nested exception is: java.net.NoRouteToHostException: No route to host at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:631) at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:216) at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202) at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:342) at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source) at com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:141) ... 5 more Caused by: java.net.NoRouteToHostException: No route to host at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:204) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:589) at java.net.Socket.connect(Socket.java:538) at java.net.Socket.<init>(Socket.java:434) at java.net.Socket.<init>(Socket.java:211) at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:40) at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:148) at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:613) ... 10 more

Thanks Kural

edit flag offensive delete publish link more
0

answered 2016-08-01 23:22:35 -0800

sandaruny gravatar image

Its seems like you haven't set the $JAVA_HOME correctly. Please install Java 8 for latest releases.

Open /etc/environment in any text editor gedit or vi and add the following to set java home; Note that the java home can be different in your setup

JAVA_HOME="/usr/lib/jvm/java-8-oracle/"

Use source to load the variables, by running this command:

source /etc/environment

If the the home is set it should showed from echo

echo $JAVA_HOME

Or when you are running Karaf, specify JAVA_HOME there,

sudo JAVA_HOME=/usr/lib/jvm/java-8-oracle/ ./karaf

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2016-07-30 22:00:34 -0800

Seen: 688 times

Last updated: Aug 01 '16