[YANGTOOLS-470] IncorrectNestingException incorrectly thrown when augmentation class was not known to codec Created: 19/Jun/15  Updated: 10/Apr/22  Due: 19/Jun/15  Resolved: 22/Jun/15

Status: Resolved
Project: yangtools
Component/s: None
Affects Version/s: None
Fix Version/s: None

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

Operating System: All
Platform: All


Issue Links:
Blocks
blocks L2SWITCH-48 config-pusher fails in arp-handler mo... Resolved
blocks LACP-15 Installing lacp feature after the top... Resolved
blocks OPNFLWPLUG-439 org.opendaylight.yangtools.binding.da... Resolved
External issue ID: 3821
Priority: High

 Description   

In some scenarios - where schema context already contained
schema for introduced augmentation, but class was not known
at time codec creation was triggered - codec for augmenation
was not created and any subsequent uses of codec (class is
already known) failed with IncorrectNestingException.

Correct behaviour should be that augmentation will be initialized
once class is known to be present.



 Comments   
Comment by Tony Tkacik [ 19/Jun/15 ]

remote: https://git.opendaylight.org/gerrit/22986

Comment by Tony Tkacik [ 19/Jun/15 ]

Stacktraces:

Caused by: org.opendaylight.yangtools.binding.data.codec.impl.IncorrectNestingException: Class interface org.opendaylight.yang.gen.v1.urn.opendaylight.l2switch.loopremover.rev140714.StpStatusAwareNodeConnector is not valid child of interface org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.node.NodeConnector
at org.opendaylight.yangtools.binding.data.codec.impl.IncorrectNestingException.create(IncorrectNestingException.java:28)
at org.opendaylight.yangtools.binding.data.codec.impl.DataContainerCodecContext.childNonNull(DataContainerCodecContext.java:178)
at org.opendaylight.yangtools.binding.data.codec.impl.DataObjectCodecContext.bindingPathArgumentChild(DataObjectCodecContext.java:178)
at org.opendaylight.yangtools.binding.data.codec.impl.BindingCodecContext.getCodecContextNode(BindingCodecContext.java:127)
at org.opendaylight.yangtools.binding.data.codec.impl.InstanceIdentifierCodec.serialize(InstanceIdentifierCodec.java:29)
at org.opendaylight.yangtools.binding.data.codec.impl.InstanceIdentifierCodec.serialize(InstanceIdentifierCodec.java:19)
at org.opendaylight.yangtools.binding.data.codec.impl.BindingNormalizedNodeCodecRegistry.toYangInstanceIdentifier(BindingNormalizedNodeCodecRegistry.java:87)

Comment by Tony Tkacik [ 19/Jun/15 ]

L2SWITCH-48 LACP-15 OPNFLWPLUG-439 are different manifestations of same issue triggered by different conditions. This bugfix may fix all of them.

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