Hello,

Please follow this guide [0], it should guide you through the complete 
implementation of an RPC. 

Once you've modeled the RPC, you have to implement it, using the generated 
interface, in your case, it would be HelloService.java. And then you have to 
register the implementation in this RpcProviderRegistry.

The error message you're seeing means you're calling an RPC that doesn't have 
any registered implementation.

Hope this helps,
Alexis

[0]: 
https://wiki.opendaylight.org/view/OpenDaylight_Controller:MD-SAL:Startup_Project_Archetype#Adding_a_very_simple_HelloWorld_RPC_api
 
<https://wiki.opendaylight.org/view/OpenDaylight_Controller:MD-SAL:Startup_Project_Archetype#Adding_a_very_simple_HelloWorld_RPC_api>

> On Dec 6, 2016, at 2:56 AM, 风驰天下 <609790...@qq.com> wrote:
> 
> Hi,everyone.
> 
>     I added a routed-rpc to my hello-app,here is the yang profile:
>     
>     module hello {
>          yang-version 1;
>          namespace "urn:opendaylight:params:xml:ns:yang:hello";
>          prefix "hello";
> 
>          import yang-ext { prefix ext; }
> 
>     revision "2015-01-05" {
>         description "Initial revision of hello model";
>     }
>     container helloSimpleNode{
>         leaf simpleData{
>                 type string;
>              }
>     }
> 
>     identity hello-world-context {
>         description "Test Routed RPC Context";
>     }
> 
>     list rpc-member {
>         config false;
>         leaf name {
>             type string;
>             description
>                 "";
>         }
>         key "name";
>     }
> 
>     rpc hello-world {
>         input {
>         leaf route {
>                 type instance-identifier;
>                 ext:context-reference hello-world-context;
>                 description
>                     'Identifies the RPC instance to which the RPC call
>                     should be routed. The instance identifier for the routed
>                     RPC in this example must in the following format:
>                     /routed-rpc:rpc-member[routed-rpc:name="rpc-key"]';
>             }
>                 leaf name{
>                         type string;
>                 }
>         }
>         output{
>                 leaf greeting{
>                         type string;
>                 }
>                 leaf invocations{
>                         type int32;
>                 }
>                 leaf host-name{
>                         type string;
>                 }
>                 leaf jvm-uptime{
>                         type int64;
>                 }
>                 leaf-list ip-address{
>                         type string;
>                 }
>         }
>     }
>     notification helloNotification{
>         leaf note{
>                 type string;
>         }
>       }
>     }
> 
>     Then I added input params into this rpc but with this error:
>     <33992...@42253629.2b6f4658.png>
>     
>     error-message:"No local or remote implementation available for rpc 
> AbsoluteSchemaPath{path=[(urn:opendaylight:params:xml:ns:yang:hello?revision=2015-01-05)hello-world]}"
> 
>    Is this a input format error?
> 
> _______________________________________________
> controller-dev mailing list
> controller-dev@lists.opendaylight.org
> https://lists.opendaylight.org/mailman/listinfo/controller-dev

_______________________________________________
controller-dev mailing list
controller-dev@lists.opendaylight.org
https://lists.opendaylight.org/mailman/listinfo/controller-dev

Reply via email to