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

NPE when reading in provenance data

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 0.2.0
    • 0.2.0
    • Core Framework
    • None

    Description

      If an attribute is removed, NiFi will fail to restart:

      Caused by: java.lang.RuntimeException: Unable to create Provenance Repository
      at org.apache.nifi.controller.FlowController.<init>(FlowController.java:411) ~[na:na]
      at org.apache.nifi.controller.FlowController.createStandaloneInstance(FlowController.java:350) ~[na:na]
      at org.apache.nifi.spring.FlowControllerFactoryBean.getObject(FlowControllerFactoryBean.java:63) ~[na:na]
      at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:168) ~[na:na]
      ... 130 common frames omitted
      Caused by: java.lang.NullPointerException: null
      at org.apache.nifi.provenance.StandardRecordReader.readAttributes(StandardRecordReader.java:372) ~[na:na]
      at org.apache.nifi.provenance.StandardRecordReader.nextRecord(StandardRecordReader.java:313) ~[na:na]
      at org.apache.nifi.provenance.PersistentProvenanceRepository.mergeJournals(PersistentProvenanceRepository.java:1356) ~[na:na]
      at org.apache.nifi.provenance.PersistentProvenanceRepository.recoverJournalFiles(PersistentProvenanceRepository.java:1136) ~[na:na]
      at org.apache.nifi.provenance.PersistentProvenanceRepository.recover(PersistentProvenanceRepository.java:572) ~[na:na]
      at org.apache.nifi.provenance.PersistentProvenanceRepository.initialize(PersistentProvenanceRepository.java:212) ~[na:na]
      at org.apache.nifi.controller.FlowController.<init>(FlowController.java:407) ~[na:na]
      ... 133 common frames omitted

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: