Uploaded image for project: 'controller'
  1. controller
  2. CONTROLLER-1040

Issue with Big size schema

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • netconf
    • None
    • Operating System: All
      Platform: All

    • 2424

    Description

      My device schema is of size around 7MB. If i manually put that schema in cache/schema directory, controller is
      able to compile this and establish connection with the device and able to respond to restconf queries.
      But when controller fetches it from the device using get-schema, i see such exceptions

      io.netty.handler.codec.DecoderException: org.xml.sax.SAXParseException; lineNumber: 18008; columnNumber: 83; The content of elements must consist of well-formed character data or markup.
      at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:280) [bundlefile:4.0.23.Final]
      at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:149) [bundlefile:4.0.23.Final]

      io.netty.handler.codec.DecoderException: org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 16; Content is not allowed in prolog.
      at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:280) [bundlefile:4.0.23.Final]
      at io.netty.handler.codec.ByteToMessageDecoder.channelInactive(ByteToMessageDecoder.java:205) [bundlefile:4.0.23.Final]

      Just to verify that the schema which is being fetched by device does not have any issue, I downloaded that schema through
      get-schema and compiled using pyang and it compiled well.

      Attachments

        Issue Links

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

          Activity

            People

              mmarsale@cisco.com Maros Marsalek
              dhirutrivedi@gmail.com Dhirendra Kumar Trivedi
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: