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

Failed to parse deviation statement present in submodule

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Medium
    • Resolution: Done
    • 2.0.23
    • 10.0.1, 9.0.3, 8.0.9
    • parser

    Description

      As per of RFC, It supports to configure the deviation statement in Yang submodule.  https://datatracker.ietf.org/doc/html/rfc7950#section-7.2.1

      When we try to parse the yang files getting below error message.

      ODL Library version: 2.0.23

      Error messge:

      org.opendaylight.yangtools.yang.parser.stmt.reactor.BuildGlobalContext> Unexpected error processing source RevisionSourceIdentifier [name=submod1@2020-10-24]. Please file an issue with this model attached.

      java.lang.NullPointerException: null
            at org.opendaylight.yangtools.yang.parser.rfc7950.stmt.deviation.DeviationStatementSupport.onFullDefinitionDeclared(DeviationStatementSupport.java:64)
            at org.opendaylight.yangtools.yang.parser.stmt.reactor.StatementDefinitionContext.onDeclarationFinished(StatementDefinitionContext.java:80)
            at org.opendaylight.yangtools.yang.parser.stmt.reactor.StatementContextBase.endDeclared(StatementContextBase.java:578)
            at org.opendaylight.yangtools.yang.parser.stmt.reactor.StatementContextWriter.endStatement(StatementContextWriter.java:69)
            at org.opendaylight.yangtools.yang.parser.rfc7950.repo.StatementContextVisitor.processStatement(StatementContextVisitor.java:131)
            at org.opendaylight.yangtools.yang.parser.rfc7950.repo.StatementContextVisitor.processStatement(StatementContextVisitor.java:123)
            at org.opendaylight.yangtools.yang.parser.rfc7950.repo.StatementContextVisitor.visit(StatementContextVisitor.java:48)
            at org.opendaylight.yangtools.yang.parser.rfc7950.repo.YangStatementStreamSource.writeFull(YangStatementStreamSource.java:168)
            at org.opendaylight.yangtools.yang.parser.stmt.reactor.SourceSpecificContext.loadStatements(SourceSpecificContext.java:382)
            at org.opendaylight.yangtools.yang.parser.stmt.reactor.BuildGlobalContext.loadPhaseStatementsFor(BuildGlobalContext.java:308)
            at org.opendaylight.yangtools.yang.parser.stmt.reactor.BuildGlobalContext.loadPhaseStatements(BuildGlobalContext.java:300)
            at org.opendaylight.yangtools.yang.parser.stmt.reactor.BuildGlobalContext.executePhases(BuildGlobalContext.java:218)
            at org.opendaylight.yangtools.yang.parser.stmt.reactor.BuildGlobalContext.buildEffective(BuildGlobalContext.java:230)
            at org.opendaylight.yangtools.yang.parser.stmt.reactor.CrossSourceStatementReactor$BuildAction.buildEffective(CrossSourceStatementReactor.java:196)
            at org.opendaylight.yangtools.yang.parser.impl.YangParserImpl.buildSchemaContext(YangParserImpl.java:119)
      

      Attachments

        # Subject Branch Project Status CR V

        Activity

          People

            rkashapov Ruslan Kashapov
            balaji.p Balaji Pachaimalai
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: