Error notifying listener netapp.impl.NotifProvider java.lang.NullPointerException: Unknown rpc create-subscription

asked 2017-08-30 20:06:29 -0800

rajeshacme gravatar image

updated 2017-08-30 20:13:38 -0800

I am using netconf-testtool and sending a notification.xml file to generate notification using the following command; java -jar xxx-exectuable.jar --notification-file notification.xml. I am using Boron-SR2.I followed ncmount(https://github.com/opendaylight/coret... )to write the code for NotifProvider.java.

The lines in which the error is thrown is : final Future<rpcresult<void>> subscription= rpcService.createSubscription(createSubscriptionInputBuilder.build()); the import statements used for creatingSubscription is: import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.netconf.notification.1.0.rev080714.CreateSubscriptionInputBuilder; import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.netconf.notification.1.0.rev080714.NotificationsService; import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.netconf.notification.1.0.rev080714.StreamNameType;

I see the follwing error and warning in the karaf log:

| ERROR | on-dispatcher-37 | DataChangeListener | 195 - org.opendaylight.controller.sal-distributed-datastore - 1.4.2.Boron-SR2 | Error notifying listener netapp.impl.NotifProvider java.lang.NullPointerException: Unknown rpc (urn:ietf:params:xml:ns:netconf:notification:1.0?revision=2008-07-14)create-subscription, available rpcs: [(urn:ietf:params:xml:ns:netconf:base:1.0?revision=2011-06-01)cancel-commit, (urn:ietf:params:xml:ns:netconf:base:1.0?revision=2011-06-01)validate, (urn:ietf:params:xml:ns:netconf:base:1.0?revision=2011-06-01)commit, (urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring?revision=2010-10-04)get-schema, (urn:ietf:params:xml:ns:netconf:base:1.0?revision=2011-06-01)kill-session, (urn:ietf:params:xml:ns:netconf:base:1.0?revision=2011-06-01)edit-config, (urn:ietf:params:xml:ns:netconf:base:1.0?revision=2011-06-01)get-config, (urn:ietf:params:xml:ns:netconf:base:1.0?revision=2011-06-01)get,...]

(and)

2017-08-30 15:14:24,082 | WARN | a]-nio2-thread-5 | AsyncSshHandler | 208 - org.opendaylight.netconf.netty-util - 1.1.2.Boron-SR2 | Unable to setup SSH connection on channel: [id: 0x4b989978] java.net.ConnectException: Connection refused at sun.nio.ch.UnixAsynchronousSocketChannelImpl.checkConnect(Native Method)[:1.8.0144] at sun.nio.ch.UnixAsynchronousSocketChannelImpl.finishConnect(UnixAsynchronousSocketChannelImpl.java:252)[:1.8.0144] at sun.nio.ch.UnixAsynchronousSocketChannelImpl.finish(UnixAsynchronousSocketChannelImpl.java:198)[:1.8.0144] at sun.nio.ch.UnixAsynchronousSocketChannelImpl.onEvent(UnixAsynchronousSocketChannelImpl.java:213)[:1.8.0144] at sun.nio.ch.EPollPort$EventHandlerTask.run(EPollPort.java:293)[:1.8.0144] at java.lang.Thread.run(Thread.java:748)[:1.8.0144]

Is there a way to solve this ? if so please help me out.

edit retag flag offensive close merge delete

Comments

What is the content of your blueprint, or what is the code related to RPC registration? In my experience, this process is finicky and any error in this process can result in an "No Rpc Implementation" error. For the connection error, have you tried rebooting? Sometimes, the controller keeps running.

VincentJahjah ( 2017-08-31 06:25:29 -0800 )edit

As far the connection error, i have rebooted the system many times, but that still persist.

rajeshacme ( 2017-09-01 04:16:55 -0800 )edit