[CONTROLLER-560] IllegalStateException while while sending RPC to netconf device Created: 19/Jun/14  Updated: 25/Jul/23  Resolved: 14/Jul/14

Status: Resolved
Project: controller
Component/s: netconf
Affects Version/s: None
Fix Version/s: None

Type: Improvement
Reporter: Robert Gallas Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Windows
Platform: PC



 Description   

I try to send RPC to subscribe for notification from netconf device.

While invoking YANGTOOLS generated RPC IllegalStateException is thrown:

java.lang.IllegalStateException: No default provider is available
at org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.netconf.notification._1._0.rev130315.NotificationsService$$Broker$DirectProxy.createSubscription(NotificationsService$$Broker$DirectProxy.java) ~[na:na]
at org.opendaylight.controller.XXXX.device.app.impl.device.NetconfDevice.registerNotificationListener(NetconfDevice.java:151) ~[na:na]
at org.opendaylight.controller.XXXX.device.app.impl.device.NetconfDevice.getInstance(NetconfDevice.java:61) ~[na:na]
at org.opendaylight.controller.XXXX.device.app.impl.handlers.InventoryHandler.initXXXXNetconfDevice(InventoryHandler.java:122) ~[na:na]
at org.opendaylight.controller.XXXX.device.app.impl.handlers.InventoryHandler.onDataChanged(InventoryHandler.java:88) ~[na:na]
at org.opendaylight.controller.md.sal.binding.impl.ForwardedBackwardsCompatibleDataBroker$BackwardsCompatibleOperationalDataChangeInvoker.onDataChanged(ForwardedBackwardsCompatibleDataBroker.java:434) ~[na:na]
at org.opendaylight.controller.md.sal.binding.impl.AbstractForwardedDataBroker$TranslatingDataChangeInvoker.onDataChanged(AbstractForwardedDataBroker.java:158) ~[na:na]
at org.opendaylight.controller.md.sal.dom.store.impl.ChangeListenerNotifyTask.run(ChangeListenerNotifyTask.java:33) ~[na:na]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) ~[na:1.7.0_25]
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) ~[na:1.7.0_25]
at java.util.concurrent.FutureTask.run(FutureTask.java:166) ~[na:1.7.0_25]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) ~[na:1.7.0_25]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) ~[na:1.7.0_25]
at java.lang.Thread.run(Thread.java:724) ~[na:1.7.0_25]



 Comments   
Comment by Tony Tkacik [ 20/Jun/14 ]

Is your netconf device exposing this RPCs? Did it announced yang model + its schema?

Comment by Robert Gallas [ 23/Jun/14 ]

NO, NC device is not exposing this RPC and has no schema fot it.

Comment by Tony Tkacik [ 23/Jun/14 ]

RPCs are not forwarded to Netconf Device if Netconf device does not define
this RPCs in their schema. Currently we do not have any way to override this.

Marked as enhancement, since this will require sending RPCs to Netconf Device,
which are not modeled by YANG on device side.

Generated at Wed Feb 07 19:53:20 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.