Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-818

Typedef not resolved properly in deviation

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Duplicate
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    • 9278

    Description

      We are currently using Carbon SR1.

      When parsing some deviations, we get errors that typedefs can't be resolved, although the model seems correct. I've attached a minimal model showing the error. When parsing that model, we get the following error:

      Caused by: org.opendaylight.yangtools.yang.parser.spi.source.SourceException: Cannot resolve QNameModule for 'ex:mytype' [at example-dev:32:12]
      at org.opendaylight.yangtools.yang.parser.spi.source.SourceException.throwIf(SourceException.java:97)
      at org.opendaylight.yangtools.yang.parser.spi.source.SourceException.throwIfNull(SourceException.java:114)
      at org.opendaylight.yangtools.yang.parser.spi.meta.StmtContextUtils.qnameFromArgument(StmtContextUtils.java:524)
      at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.TypeStatementImpl$Definition.createEffective(TypeStatementImpl.java:162)
      at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.TypeStatementImpl$Definition.createEffective(TypeStatementImpl.java:87)
      at org.opendaylight.yangtools.yang.parser.stmt.reactor.StatementContextBase.buildEffective(StatementContextBase.java:415)
      at com.google.common.collect.Iterators$8.transform(Iterators.java:799)
      at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48)
      at java.util.AbstractCollection.toArray(AbstractCollection.java:141)
      at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:258)
      at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.EffectiveStatementBase.(EffectiveStatementBase.java:55)
      at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.DeclaredEffectiveStatementBase.(DeclaredEffectiveStatementBase.java:31)
      at org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.AbstractEffectiveDocumentedNode.(AbstractEffectiveDocumentedNode.java:30)

      Attachments

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              verthezpw Peter Verthez
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: