Details
-
Bug
-
Status: Resolved
-
Resolution: Done
-
None
-
None
-
None
-
Operating System: Linux
Platform: PC
-
1601
-
Highest
Description
Remote Netconf Server Connection With new cloned Opendaylight controller(Cloned on Aug 21, 2013) failed with java null pointer exception.
Steps followed to replicate the issue:
1. Clone new Opnedaylight controller
2. Created the xml file and added the file in configuration/initial folder of the distribution that we are running
3. Added the remote device configuration yang files in cache/schema directory
4. Run the controller
Running the controller failed to initialize sal and throws java null pointer exception as below
2014-08-22 10:59:21.743 IST [remote-connector-processing-executor-2] WARN o.o.c.s.c.netconf.NetconfDevice - RemoteDevice
{m10sachi}: Unexpected error resolving device sources: java.lang.NullPointerException2014-08-22 10:59:21.770 IST [remote-connector-processing-executor-2] ERROR o.o.c.s.c.netconf.NetconfDevice - RemoteDevice{m10sachi}
: Initialization in sal failed, disconnecting from device
java.lang.NullPointerException: null
at org.opendaylight.controller.sal.connect.netconf.NetconfStateSchemas.create(NetconfStateSchemas.java:128) ~[na:na]
at org.opendaylight.controller.sal.connect.netconf.NetconfStateSchemas.create(NetconfStateSchemas.java:118) ~[na:na]
at org.opendaylight.controller.sal.connect.netconf.NetconfStateSchemas.access$000(NetconfStateSchemas.java:35) ~[na:na]
at org.opendaylight.controller.sal.connect.netconf.NetconfStateSchemas$NetconfStateSchemasResolverImpl.resolve(NetconfStateSchemas.java:53) ~[na:na]
at org.opendaylight.controller.sal.connect.netconf.NetconfDevice$DeviceSourcesResolver.call(NetconfDevice.java:222) ~[na:na]
at org.opendaylight.controller.sal.connect.netconf.NetconfDevice$DeviceSourcesResolver.call(NetconfDevice.java:202) ~[na:na]
at java.util.concurrent.FutureTask.run(FutureTask.java:262) ~[na:1.7.0_55]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_55]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_55]
at java.lang.Thread.run(Thread.java:744) [na:1.7.0_55]
2014-08-22 10:59:21.771 IST [remote-connector-processing-executor-2] WARN o.o.c.s.c.n.l.NetconfDeviceCommunicator - RemoteDevice
: Session terminated Session closed