Uploaded image for project: 'controller'
  1. controller
  2. CONTROLLER-717

Remote Netconf Server Initialization Failed With NullPointerException

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • netconf
    • 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.NullPointerException
      2014-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

      {m10sachi}

      : Session terminated Session closed

      Attachments

        1. Opendaylight.log:26-08-2014
          155 kB
          Sachi Gupta
        2. snapshot.txt
          3 kB
          Sachi Gupta
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mmarsale@cisco.com Maros Marsalek
            sachi.gupta@tcs.com Sachi Gupta
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: