[YANGTOOLS-154] Codec for uint32 failure (Integer vs Long) Created: 07/May/14  Updated: 10/Apr/22  Resolved: 07/Jul/14

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

Type: Bug
Reporter: Maros Marsalek Assignee: Jozef Gloncak
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 971

 Description   

2014-05-07 16:03:11.190 CEST [http-bio-8080-exec-1] ERROR o.o.y.y.d.i.c.xml.XmlDocumentUtils - Provided node value 5666 did not have type type (urn:ietf:params:xml:ns:yang:1)uint32 required by mapping. Using stream instead.
java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long
at org.opendaylight.yangtools.yang.data.impl.codec.TypeDefinitionAwareCodec$Uint32CodecStringImpl.serialize(TypeDefinitionAwareCodec.java:301) ~[bundlefile:na]



 Comments   
Comment by Maros Marsalek [ 07/May/14 ]

Leaf is:

leaf port {
type uint16;
}

from odl-sal-dom-rpc-remote-cfg.yang in sal-remoterpc-connector

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