Uploaded image for project: 'netconf'
  1. netconf
  2. NETCONF-231

'odl-netconf-topology' feature throws NullPointerException while mounting device[1.1.0-SNAPSHOT]

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • netconf
    • None
    • Operating System: Mac OS
      Platform: Macintosh

    • 6239
    • High

    Description

      Karaf log:
      2016-07-19 17:46:30,159 | INFO | on-dispatcher-53 | AbstractNetconfTopology | 287 - org.opendaylight.netconf.topology - 1.1.0.SNAPSHOT | Connecting RemoteDevice

      {Uri [_value=hcmount]}

      , with config Node{getNodeId=Uri [_value=hcmount], augmentations={interface org.opendaylight.yang.gen.v1.urn.opendaylight.netconf.node.topology.rev150114.NetconfNode=NetconfNode{getBetweenAttemptsTimeoutMillis=10000, getConcurrentRpcLimit=0, getConnectionTimeoutMillis=10000, getCredentials=LoginPassword{getPassword=admin, getUsername=admin, augmentations={}}, getDefaultRequestTimeoutMillis=10000, getHost=Host [_domainName=DomainName [_value=172.23.29.126]], getKeepaliveDelay=0, getMaxConnectionAttempts=10, getPort=PortNumber [_value=7777], getSchemaCacheDirectory=schema, getSleepFactor=1.5, isReconnectOnChangedSchema=false, isSchemaless=false, isTcpOnly=true}}}
      2016-07-19 17:46:30,168 | ERROR | on-dispatcher-53 | DataTreeChangeListenerActor | 214 - org.opendaylight.controller.sal-distributed-datastore - 1.4.0.SNAPSHOT | Error notifying listener org.opendaylight.controller.md.sal.binding.impl.BindingDOMDataTreeChangeListenerAdapter@54d13ad3
      java.lang.NullPointerException
      at org.opendaylight.netconf.topology.AbstractNetconfTopology.createDeviceCommunicator(AbstractNetconfTopology.java:275)[287:org.opendaylight.netconf.topology:1.1.0.SNAPSHOT]
      at org.opendaylight.netconf.topology.AbstractNetconfTopology.setupConnection(AbstractNetconfTopology.java:243)[287:org.opendaylight.netconf.topology:1.1.0.SNAPSHOT]
      at org.opendaylight.netconf.topology.AbstractNetconfTopology.connectNode(AbstractNetconfTopology.java:218)[287:org.opendaylight.netconf.topology:1.1.0.SNAPSHOT]
      at org.opendaylight.netconf.topology.impl.NetconfTopologyImpl.onDataTreeChanged(NetconfTopologyImpl.java:151)[287:org.opendaylight.netconf.topology:1.1.0.SNAPSHOT]
      at org.opendaylight.controller.md.sal.binding.impl.BindingDOMDataTreeChangeListenerAdapter.onDataTreeChanged(BindingDOMDataTreeChangeListenerAdapter.java:41)[185:org.opendaylight.controller.sal-binding-broker-impl:1.4.0.SNAPSHOT]
      at org.opendaylight.controller.cluster.datastore.DataTreeChangeListenerActor.dataChanged(DataTreeChangeListenerActor.java:55)[214:org.opendaylight.controller.sal-distributed-datastore:1.4.0.SNAPSHOT]
      at org.opendaylight.controller.cluster.datastore.DataTreeChangeListenerActor.handleReceive(DataTreeChangeListenerActor.java:37)[214:org.opendaylight.controller.sal-distributed-datastore:1.4.0.SNAPSHOT]
      at org.opendaylight.controller.cluster.common.actor.AbstractUntypedActor.onReceive(AbstractUntypedActor.java:26)[209:org.opendaylight.controller.sal-clustering-commons:1.4.0.SNAPSHOT]
      at akka.actor.UntypedActor$$anonfun$receive$1.applyOrElse(UntypedActor.scala:165)[197:com.typesafe.akka.actor:2.4.7]
      at akka.actor.Actor$class.aroundReceive(Actor.scala:484)[197:com.typesafe.akka.actor:2.4.7]
      at akka.actor.UntypedActor.aroundReceive(UntypedActor.scala:95)[197:com.typesafe.akka.actor:2.4.7]
      at akka.actor.ActorCell.receiveMessage(ActorCell.scala:526)[197:com.typesafe.akka.actor:2.4.7]
      at akka.actor.ActorCell.invoke(ActorCell.scala:495)[197:com.typesafe.akka.actor:2.4.7]
      at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:257)[197:com.typesafe.akka.actor:2.4.7]
      at akka.dispatch.Mailbox.run(Mailbox.scala:224)[197:com.typesafe.akka.actor:2.4.7]
      at akka.dispatch.Mailbox.exec(Mailbox.scala:234)[197:com.typesafe.akka.actor:2.4.7]
      at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)[193:org.scala-lang.scala-library:2.11.8.v20160304-115712-1706a37eb8]
      at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)[193:org.scala-lang.scala-library:2.11.8.v20160304-115712-1706a37eb8]
      at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)[193:org.scala-lang.scala-library:2.11.8.v20160304-115712-1706a37eb8]
      at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)[193:org.scala-lang.scala-library:2.11.8.v20160304-115712-1706a37eb8]

      PUT operation:
      http://172.23.29.120:8181/restconf/config/network-topology:network-topology/network-topology:topology/topology-netconf/node/hcmount

      {
      "node" :
      [

      { "node-id":"hcmount", "netconf-node-topology:host":"172.23.29.126", "netconf-node-topology:port":"7777", "netconf-node-topology:tcp-only":true, "netconf-node-topology:keepalive-delay":0, "netconf-node-topology:username":"admin", "netconf-node-topology:password":"admin", "netconf-node-topology:connection-timeout-millis":10000, "netconf-node-topology:default-request-timeout-millis":10000, "netconf-node-topology:max-connection-attempts":10, "netconf-node-topology:between-attempts-timeout-millis":10000 }

      ]
      }

      After the NPE, there's nothing showing in the operational datastore, nor does the mount point exist.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jmorvay@cisco.com Jakub Morvay
            657187280@qq.com Zhaoxing Li
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: