[CONTROLLER-231] RPC Methods with no args fail to return the result Created: 24/Mar/14  Updated: 25/Jul/23  Resolved: 15/May/14

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

Type: Bug
Reporter: Mayank Agarwal Assignee: Mayank Agarwal
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Mac OS
Platform: PC


Issue Links:
Duplicate
is duplicated by CONTROLLER-301 Unable to retrieve RPC output using r... Resolved
External issue ID: 574
Priority: High

 Description   

In RestConfImpl, when RPC methods that have no input arguments are implemented, they fail to return the result. The implementation returns a valid result object, but somewhere down the line, most likely in RestConfImpl's invokeRPC method, the result object becomes null. The user, as a result, gets a HTTP 204 No Content for their query. There are no exceptions printed out.

If I change the RPC to accept a dummy input argument, everything else remaining same, things work fine.



 Comments   
Comment by Mayank Agarwal [ 17/Apr/14 ]

Gerrit Patch: https://git.opendaylight.org/gerrit/#/c/6190/

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