Uploaded image for project: 'mdsal'
  1. mdsal
  2. MDSAL-78

Unable to write DateAndTime [ietf-yang-types] to data store

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Cannot Reproduce
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    • 2974

    Description

      I am writing to oeprational/ietf-interfaces:interface-state from my code [vpnmanager] but ran into following exception on write:

      2015-04-10 19:27:14,686 | WARN | ult-dispatcher-2 | JavassistUtils | 92 - org.opendaylight.yangtools.binding-generator-impl - 0.7.0.SNAPSHOT | Failed to customize org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state._interface.Statistics$StreamWriter from prototype org.opendaylight.yangtools.binding.data.codec.gen.impl.DataObjectSerializerPrototype
      javassist.CannotCompileException: [source error] no such class: org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.DateAndTime
      at javassist.CtBehavior.setBody(CtBehavior.java:446)[89:javassist:3.19.0.GA]

      This is the import statement in my code as well as generated file [org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.state.Interface.java generated from ietf-interfaces.yang]:

      import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev100924.DateAndTime;

      Bug is that rev130715.DateAndTime is being used even though the generated code says rev100924.DateAndTime. Either generated code should pick more recent revision or at the time of serialization it should look for the right class.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              thapar Vishal Thapar
              thapar Vishal Thapar
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: