OpenDayLight "Error executing command: java.lang.NullPointerException"问题解决
参考: Fedora 21 mostly working but NullPointerException at Karaf shell
在使用ODL的时候,安装功能组件时出现:
Error executing command: java.lang.NullPointerException
查看本机java配置,是1.8.0版本的:
java version "1.8.0_72"
Java(TM) SE Runtime Environment (build 1.8.0_72-b15)
Java HotSpot(TM) 64-Bit Server VM (build 25.72-b15, mixed mode)
主要是因为java8与karaf兼容性不完善,因此将java与javac换回java7即可。
使用update-alternatives --config java
命令将java换回java7版本即可解决。
2017.1.14
To improve is to change, to be perfect is to change often.