[CONTROLLER-753] null pointer error when GET request for /restconf/operational data fails. Created: 02/Sep/14  Updated: 25/Jul/23  Due: 04/Sep/14  Resolved: 04/Sep/14

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

Type: Bug
Reporter: RichardHill Assignee: Tony Tkacik
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Windows
Platform: PC


Attachments: Text File actual-response.txt     Text File opendaylight.log     Text File tomcat0.log    
External issue ID: 1664

 Description   

Where the netconf controller is called 'controller-config_xrvr' a GET request to the URL resulted in a 500 error. We believe that this is because the response times out but this is not clear from the response. However filtering the response to request a smaller subtree resulted in a successful operation.

http://localhost:8080/restconf/operational/opendaylight-inventory:nodes/node/<controller-config_xrvr>/yang-ext:mount/

Expected Result
HTTP STATUS 200 and a JSON or XML reporesentation of the tre.

Actual Result

HTTP STATUS 500 and null pointer error.

SUCCESSFUL request for subtree

http://localhost:8080/restconf/operational/opendaylight-inventory:nodes/node/controller-config_xrvr/yang-ext:mount/Cisco-IOS-XR-aaa-locald-admin-cfg:aaa/Cisco-IOS-XR-aaa-locald-admin-cfg:usernames

Test Env

org.opendaylight.controller.version = 0.1
org.opendaylight.controller.build.scm.version = d04b6dc0d4f1eb7e53b95048d41bd11ff35a3fa9
org.opendaylight.controller.build.user = jenkins-controller
org.opendaylight.controller.build.workspace = **********
org.opendaylight.controller.build.timestamp = 1406427010958
org.opendaylight.controller.build.machine = **********
~



 Comments   
Comment by RichardHill [ 02/Sep/14 ]

Attachment actual-response.txt has been added with description: actual response

Comment by RichardHill [ 02/Sep/14 ]

Attachment opendaylight.log has been added with description: opendaylight logs

Comment by RichardHill [ 02/Sep/14 ]

Attachment tomcat0.log has been added with description: tomcat log

Comment by RichardHill [ 02/Sep/14 ]

controller-config_xrvr references and XRVR router running netconf.

A similar call to see the config data store was successful

http://localhost:8080/restconf/config/opendaylight-inventory:nodes/node/controller-config_xrvr/yang-ext:mount/

Comment by Tony Tkacik [ 03/Sep/14 ]

https://git.opendaylight.org/gerrit/#/c/10693/

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