[HONEYVBD-3] NPE when putting certain data into WriteTransaction Created: 21/Jun/16 Updated: 19/Oct/17 Resolved: 21/Jun/16 |
|
| Status: | Resolved |
| Project: | honeycomb-vbd |
| Component/s: | General |
| Affects Version/s: | unspecified |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Tomas Cechvala | Assignee: | Unassigned |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 6094 |
| Description |
|
Cannot put vlan type topology into WriteTransaction. The problem occurs when node-vbridge-vlan-augmentation is filled out If it's not specified, put is executed successfully. I tried this other way round by putting the data via Restconf - they were stored in datastore successfully. How to replicate this: build latest groupbasedpolicy distribution feature:install odl-vbd-ui odl-groupbasedpolicy-vpp odl-restconf You should see NPE in log, notice the following piece in stacktrace at org.opendaylight.controller.md.sal.binding.impl.BindingToNormalizedNodeCodec.toNormalizedNode(BindingToNormalizedNodeCodec.java:132)[183:org.opendaylight.controller.sal-binding-broker-impl:1.4.0.SNAPSHOT] That line 210 where put is called fires the error. |
| Comments |
| Comment by Tomas Cechvala [ 21/Jun/16 ] |
|
BridgeDomainManagerImp |
| Comment by Tomas Cechvala [ 21/Jun/16 ] |
|
So just after reporting this the cause was find. The class of augmentation should have been specified by NodeVbridgeVlanAugment.class and not object.getClass() because it returns NodeVbridgeVlanAugmentImpl It will be fixed in GBP. |