[MDSAL-136] NPE in BA->BI serialization Created: 15/Mar/16 Updated: 09/Mar/18 Resolved: 19/Apr/16 |
|
| Status: | Resolved |
| Project: | mdsal |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Milos Fabian | Assignee: | Filip Gregor |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| External issue ID: | 5524 | ||||||||
| Description |
|
[nioEventLoopGroup-3-1] ERROR org.opendaylight.protocol.bmp.impl.session.BmpSessionImpl - Exception caught in BMP Session. |
| Comments |
| Comment by Milos Fabian [ 15/Mar/16 ] |
|
NPE appears when serializing BA DTO to BI Node in following case: 1. bgp-message.yang: grouping open-message { 2. bgp-multiprotocol.yang: augment "/bgp-msg:open/bgp-msg:bgp-parameters/bgp-msg:optional-capabilities/bgp-msg:c-parameters" { uses mp-capabilities; <<-- BA DTO includes this augmentation, that's the point where NPE occurs when serializing }3. bmp-message.yang: } ... Note: Serialization is working as expected when the augmentation is not present in the DTO |
| Comment by Milos Fabian [ 15/Mar/16 ] |
|
Proposed change in BGPCEP project ( with failing test) https://git.opendaylight.org/gerrit/#/c/36246 |
| Comment by Filip Gregor [ 21/Mar/16 ] |
|
Attachment opendaylight-bug-5524-module1.yang has been added with description: yang file 1 |
| Comment by Filip Gregor [ 21/Mar/16 ] |
|
Attachment opendaylight-bug-5524-module2.yang has been added with description: yang file 2 |
| Comment by Filip Gregor [ 21/Mar/16 ] |
|
Attachment opendaylight-bug-5524-module3.yang has been added with description: yang file 3 |
| Comment by Filip Gregor [ 21/Mar/16 ] |
|
I have unsuccessfully tried to replicate this Bug with attached yang files. |
| Comment by Milos Fabian [ 23/Mar/16 ] |
|
Attachment bug5524.zip has been added with description: bug5524 |
| Comment by Milos Fabian [ 23/Mar/16 ] |
|
My apologies, in fact there are 4 yang data models involved. Please, see attached zip file including the yang data models and "failing" unit test. |
| Comment by Filip Gregor [ 11/Apr/16 ] |
|
proposed fix https://git.opendaylight.org/gerrit/#/c/37312/ |
| Comment by Robert Varga [ 13/Apr/16 ] |
|
beryllium: https://git.opendaylight.org/gerrit/37538 |