Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-9882

NullPointerException on startup from HtmlDocumentationWriter results in component documentation not being available

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 1.17.0, 1.16.1
    • Core Framework
    • None

    Description

      On startup, we see this in the nifi-app.log:

      2022-04-06 11:32:42,656 WARN [main] o.apache.nifi.documentation.DocGenerator Unable to document: class org.apache.nifi.processors.mongodb.gridfs.PutGridFS
      java.lang.NullPointerException: null
          at com.ctc.wstx.sw.BaseStreamWriter.writeCharacters(BaseStreamWriter.java:458)
          at org.apache.nifi.documentation.html.HtmlDocumentationWriter.writeSimpleElement(HtmlDocumentationWriter.java:852)
          at org.apache.nifi.documentation.html.HtmlDocumentationWriter.writeProperties(HtmlDocumentationWriter.java:518)
          at org.apache.nifi.documentation.html.HtmlDocumentationWriter.writeBody(HtmlDocumentationWriter.java:160)
          at org.apache.nifi.documentation.html.HtmlDocumentationWriter.write(HtmlDocumentationWriter.java:92)
          at org.apache.nifi.documentation.DocGenerator.document(DocGenerator.java:142)
          at org.apache.nifi.documentation.DocGenerator.documentConfigurableComponent(DocGenerator.java:104)
          at org.apache.nifi.documentation.DocGenerator.generate(DocGenerator.java:65)
          at org.apache.nifi.web.server.JettyServer.start(JettyServer.java:1028)
          at org.apache.nifi.NiFi.<init>(NiFi.java:170)
          at org.apache.nifi.NiFi.<init>(NiFi.java:82)
          at org.apache.nifi.NiFi.main(NiFi.java:330)
      2022-04-06 11:32:42,657 WARN [main] o.apache.nifi.documentation.DocGenerator Unable to document: class org.apache.nifi.processors.standard.SegmentContent
      java.lang.NullPointerException: null
          at com.ctc.wstx.sw.BaseStreamWriter.writeCharacters(BaseStreamWriter.java:458)
          at org.apache.nifi.documentation.html.HtmlDocumentationWriter.writeSimpleElement(HtmlDocumentationWriter.java:852)
          at org.apache.nifi.documentation.html.HtmlDocumentationWriter.writeProperties(HtmlDocumentationWriter.java:518)
          at org.apache.nifi.documentation.html.HtmlDocumentationWriter.writeBody(HtmlDocumentationWriter.java:160)
          at org.apache.nifi.documentation.html.HtmlDocumentationWriter.write(HtmlDocumentationWriter.java:92)
          at org.apache.nifi.documentation.DocGenerator.document(DocGenerator.java:142)
          at org.apache.nifi.documentation.DocGenerator.documentConfigurableComponent(DocGenerator.java:104)
          at org.apache.nifi.documentation.DocGenerator.generate(DocGenerator.java:65)
          at org.apache.nifi.web.server.JettyServer.start(JettyServer.java:1028)
          at org.apache.nifi.NiFi.<init>(NiFi.java:170)
          at org.apache.nifi.NiFi.<init>(NiFi.java:82)
          at org.apache.nifi.NiFi.main(NiFi.java:330) 

      For pretty much every component. As a result, the documentation is unavailable when clicking "View Usage"

      Attachments

        Issue Links

          Activity

            People

              exceptionfactory David Handermann
              markap14 Mark Payne
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h