[CONTROLLER-49] Cannot compile CoDec for org.opendaylight.yang.gen.v1.urn.opendaylight.flow.config.rev130819.flows.Flow Created: 14/Nov/13  Updated: 25/Jul/23  Resolved: 20/Nov/13

Status: Resolved
Project: controller
Component/s: mdsal
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: PC


Attachments: Text File md-sal_remove_exception.txt    
External issue ID: 144

 Description   

The execution of following code caused java.lang.IllegalStateException: Cannot compile Transformator for interface org.opendaylight.yang.gen.v1.urn.opendaylight.flow.config.rev130819.flows.Flow

DataModificationTransaction modification = dataBrokerService.beginTransaction();

String flowName = "foo";
String nodeId = "node:1";

NodeKey key = new NodeKey(new NodeId(nodeId));
InstanceIdentifier<Node> value = InstanceIdentifier.builder().node(Nodes.class).node(Node.class, key)
.toInstance();
NodeRef nodeRef = new NodeRef(value);

FlowKey flowKey = new FlowKey(flowName, nodeRef);

FlowBuilder flow = new FlowBuilder();
MatchBuilder match = new MatchBuilder();
VlanMatchBuilder vlanBuilder = new VlanMatchBuilder();
VlanIdBuilder vlanIdBuilder = new VlanIdBuilder();
VlanId vlanId = new VlanId(10);
vlanBuilder.setVlanId(vlanIdBuilder.setVlanI



 Comments   
Comment by Deepthi V V [ 15/Nov/13 ]

Attachment md-sal_remove_exception.txt has been added with description: Exception stack trace

Comment by Deepthi V V [ 15/Nov/13 ]

(In reply to Deepthi V V from comment #1)
> Created attachment 24 [details]
> Exception stack trace

The fix https://git.opendaylight.org/gerrit/#/c/2753 does not solve the issue. Running into exceptions as mentioned in the attachment.

Comment by Tony Tkacik [ 20/Nov/13 ]

Implentation of offending component was updated ans fixed. Fix is merged in master.

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