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

Error executing command: java.lang.NullPointerException in karaf

asked 2014-12-29 01:01:35 -0800

rkhegde gravatar image

Hi all, I am using Fedora Linux distribution(3.17.4-301.fc21.x8664). I have installed java-1.8.0 openjdk and openjdk-dev. I have downloaded "distribution-karaf-0.2.1-Helium-SR1" and unzipped the same. Before running karaf i have set the JAVAHOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.25-5.b18.fc21.x86_64/.

I have done this based on the following command output.

[root@DayLight distribution-karaf-0.2.1-Helium-SR1]# update-alternatives --config java

There is 1 program that provides 'java'.

Selection Command

*+ 1 /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.25-5.b18.fc21.x86_64/jre/bin/java

Now when i run ./bin/karaf command i get the following output

[root@DayLight distribution-karaf-0.2.1-Helium-SR1]# ./bin/karaf OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0

________                       ________                .__  .__       .__     __
\_____  \ ______   ____   ____ \______ \ _____  ___.__.|  | |__| ____ |  |___/  |_
 /   |   \\____ \_/ __ \ /    \ |    |  \\__  \<   |  ||  | |  |/ ___\|  |  \   __\
/    |    \  |_> >  ___/|   |  \|    `   \/ __ \\___  ||  |_|  / /_/  >   Y  \  |
\_______  /   __/ \___  >___|  /_______  (____  / ____||____/__\___  /|___|  /__|
        \/|__|        \/     \/        \/     \/\/            /_____/      \/

Hit '<tab>' for a list of available commands and '[cmd] --help' for help on a specific command. Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown OpenDaylight.</ctrl-d></tab>

opendaylight-user@root>ls

Error executing command: java.lang.NullPointerException

Once i get the karaf shell i get the following message for every command that i execute.

Please let me know how to proceed further. Am i missing something here?

Thanks and Regards --raghu

edit retag flag offensive close merge delete

3 answers

Sort by ┬╗ oldest newest most voted
1

answered 2014-12-29 03:40:39 -0800

Moderators

OpenDaylight Helium doesn't support Java 8, recommend downgrading to java 7

edit flag offensive delete publish link more
0

answered 2015-08-11 08:00:38 -0800

I have the same trouble, but with Java 7

edit flag offensive delete publish link more

Comments

Are you sure ? The message states that permsize was removed in java 8.0...

grmontpetit ( 2015-08-11 10:52:52 -0800 )edit

Yes, is my trobule with Java 7 /usr/lib/jvm/java-7-oracle/jre/bin/java 2 modo automático

pedro.depadua ( 2015-08-11 13:29:09 -0800 )edit

opendaylight-user@root>GossipRouter started at Tue Aug 11 14:07:19 CDT 2015 Listening on port 12001 bound on address 0.0.0.0/0.0.0.0 Backlog is 1000, linger timeout is 2000, and read timeout is 0 MAC address (sid) IP address SNMP community CLI username CLI password In main loop, we have serious trouble: java.lang.NullPointerException java.lang.NullPointerException at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:255)

pedro.depadua ( 2015-08-11 13:37:06 -0800 )edit
0

answered 2015-08-11 10:53:57 -0800

updated 2015-08-11 10:54:10 -0800

I had problems in the past with the OpenJDK. I had to use the real Oracle JDK for linux X64: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

edit flag offensive delete publish link more

Comments

I used the Oracle JDK from the beginning for that reason

pedro.depadua ( 2015-08-12 07:21:33 -0800 )edit
Login/Signup to Answer

Stats

Asked: 2014-12-29 01:01:35 -0800

Seen: 1,955 times

Last updated: Aug 11 '15