[ https://issues.apache.org/jira/browse/NIFI-3186?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bryan Bende updated NIFI-3186: ------------------------------ Resolution: Fixed Status: Resolved (was: Patch Available) Merged to master and support/nifi-1.1.x > NullPointerException in Provenance Repository on startup > --------------------------------------------------------- > > Key: NIFI-3186 > URL: https://issues.apache.org/jira/browse/NIFI-3186 > Project: Apache NiFi > Issue Type: Bug > Affects Versions: 1.1.0 > Reporter: Joseph Gresock > Assignee: Joseph Gresock > Fix For: 1.2.0, 1.1.1 > > > Often when NiFi restarts itself, we will get this error on startup, which > prevents the node from starting until we delete the provenance_repository > from disk. > {code} > Caused by: java.lang.RuntimeException: Unable to create Provenance Repository > at > org.apache.nifi.controller.FlowController.<init>(FlowController.java:459) > ~[nifi-framework-core-1.1.0.jar:1.1.0] > at > org.apache.nifi.controller.FlowController.createClusteredInstance(FlowController.java:403) > ~[nifi-framework-core-1.1.0.jar:1.1.0] > at > org.apache.nifi.spring.FlowControllerFactoryBean.getObject(FlowControllerFactoryBean.java:61) > ~[nifi-framework-core-1.1.0.jar:1.1.0] > at > org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:168) > ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE] > ... 41 common frames omitted > Caused by: java.lang.NullPointerException: null > at > org.apache.nifi.provenance.schema.EventRecord.getEvent(EventRecord.java:122) > ~[na:na] > at > org.apache.nifi.provenance.ByteArraySchemaRecordReader.nextRecord(ByteArraySchemaRecordReader.java:77) > ~[na:na] > at > org.apache.nifi.provenance.serialization.CompressableRecordReader.nextRecord(CompressableRecordReader.java:272) > ~[na:na] > at > org.apache.nifi.provenance.PersistentProvenanceRepository.mergeJournals(PersistentProvenanceRepository.java:1826) > ~[na:na] > at > org.apache.nifi.provenance.PersistentProvenanceRepository.recoverJournalFiles(PersistentProvenanceRepository.java:1505) > ~[na:na] > at > org.apache.nifi.provenance.PersistentProvenanceRepository.recover(PersistentProvenanceRepository.java:665) > ~[na:na] > at > org.apache.nifi.provenance.PersistentProvenanceRepository.initialize(PersistentProvenanceRepository.java:268) > ~[na:na] > at > org.apache.nifi.controller.FlowController.<init>(FlowController.java:457) > ~[nifi-framework-core-1.1.0.jar:1.1.0] > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)