[ https://issues.apache.org/jira/browse/NIFI-753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14617782#comment-14617782 ]
Aldrin Piri commented on NIFI-753: ---------------------------------- Build looks good, contrib passes and code addresses the provided stacktrace. +1 > NPE when reading in provenance data > ----------------------------------- > > Key: NIFI-753 > URL: https://issues.apache.org/jira/browse/NIFI-753 > Project: Apache NiFi > Issue Type: Bug > Components: Core Framework > Affects Versions: 0.2.0 > Reporter: Mark Payne > Assignee: Mark Payne > Priority: Blocker > Fix For: 0.2.0 > > Attachments: > 0001-NIFI-753-when-truncating-value-take-null-values-into.patch > > > 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 -- This message was sent by Atlassian JIRA (v6.3.4#6332)