You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nifi.apache.org by Joe Gresock <jg...@gmail.com> on 2017/06/20 15:32:10 UTC

No enum constant org.wali.UpdateType.CONTENTMISSING

I'm trying to recover from a crash where some data was lost from the
content_repository.  Any advice on getting past this particular error?  I
checked and sure enough, there's no enum constant called
UpdateType.CONTENTMISSING in the NiFi 1.3.0 code (not sure how that value
got in there in the first place).

java.lang.Exception: Unable to load flow due to: java.io.IOException:
org.apache.nifi.cluster.ConnectionException: Failed to connect node to
cluster due to: java.lang.IllegalArgumentException: No enum constant
org.wali.UpdateType.CONTENTMISSING
        at
org.apache.nifi.web.server.JettyServer.start(JettyServer.java:809)
        at org.apache.nifi.NiFi.<init>(NiFi.java:160)
        at org.apache.nifi.NiFi.main(NiFi.java:267)
Caused by: java.io.IOException:
org.apache.nifi.cluster.ConnectionException: Failed to connect node to
cluster due to: java.lang.IllegalArgumentException: No enum constant
org.wali.UpdateType.CONTENTMISSING
        at
org.apache.nifi.controller.StandardFlowService.load(StandardFlowService.java:519)
        at
org.apache.nifi.web.server.JettyServer.start(JettyServer.java:800)
        ... 2 common frames omitted
Caused by: org.apache.nifi.cluster.ConnectionException: Failed to connect
node to cluster due to: java.lang.IllegalArgumentException: No enum
constant org.wali.UpdateType.CONTENTMISSING
        at
org.apache.nifi.controller.StandardFlowService.loadFromConnectionResponse(StandardFlowService.java:945)
        at
org.apache.nifi.controller.StandardFlowService.load(StandardFlowService.java:515)
        ... 3 common frames omitted
Caused by: java.lang.IllegalArgumentException: No enum constant
org.wali.UpdateType.CONTENTMISSING
        at java.lang.Enum.valueOf(Enum.java:238)
        at org.wali.UpdateType.valueOf(UpdateType.java:24)
        at
org.apache.nifi.controller.repository.SchemaRepositoryRecordSerde.deserializeRecord(SchemaRepositoryRecordSerde.java:126)
        at
org.apache.nifi.controller.repository.SchemaRepositoryRecordSerde.deserializeEdit(SchemaRepositoryRecordSerde.java:109)
        at
org.apache.nifi.controller.repository.SchemaRepositoryRecordSerde.deserializeEdit(SchemaRepositoryRecordSerde.java:46)
        at
org.wali.MinimalLockingWriteAheadLog$Partition.recoverNextTransaction(MinimalLockingWriteAheadLog.java:1096)
        at
org.wali.MinimalLockingWriteAheadLog.recoverFromEdits(MinimalLockingWriteAheadLog.java:459)
        at
org.wali.MinimalLockingWriteAheadLog.recoverRecords(MinimalLockingWriteAheadLog.java:301)
        at
org.apache.nifi.controller.repository.WriteAheadFlowFileRepository.loadFlowFiles(WriteAheadFlowFileRepository.java:381)
        at
org.apache.nifi.controller.FlowController.initializeFlow(FlowController.java:713)
        at
org.apache.nifi.controller.StandardFlowService.initializeController(StandardFlowService.java:955)
        at
org.apache.nifi.controller.StandardFlowService.loadFromConnectionResponse(StandardFlowService.java:927)
        ... 4 common frames omitted
2017-06-20 15:27:25,324 INFO [Thread-1] org.apache.nifi.NiFi Initiating
shutdown of Jetty web server...


-- 
I know what it is to be in need, and I know what it is to have plenty.  I
have learned the secret of being content in any and every situation,
whether well fed or hungry, whether living in plenty or in want.  I can do
all this through him who gives me strength.    *-Philippians 4:12-13*

Re: No enum constant org.wali.UpdateType.CONTENTMISSING

Posted by Joe Gresock <jg...@gmail.com>.
Btw, I was able to patch the SchemaRepositoryRecordSerde.deserializeRecord
method to behave like a DELETE if the UpdateType was not recognized.  This
allowed me to bring up NiFi, and I imagine those flow files were goners
anyway.

<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon>
Virus-free.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Tue, Jun 20, 2017 at 11:32 AM, Joe Gresock <jg...@gmail.com> wrote:

> I'm trying to recover from a crash where some data was lost from the
> content_repository.  Any advice on getting past this particular error?  I
> checked and sure enough, there's no enum constant called
> UpdateType.CONTENTMISSING in the NiFi 1.3.0 code (not sure how that value
> got in there in the first place).
>
> java.lang.Exception: Unable to load flow due to: java.io.IOException:
> org.apache.nifi.cluster.ConnectionException: Failed to connect node to
> cluster due to: java.lang.IllegalArgumentException: No enum constant
> org.wali.UpdateType.CONTENTMISSING
>         at org.apache.nifi.web.server.JettyServer.start(JettyServer.
> java:809)
>         at org.apache.nifi.NiFi.<init>(NiFi.java:160)
>         at org.apache.nifi.NiFi.main(NiFi.java:267)
> Caused by: java.io.IOException: org.apache.nifi.cluster.ConnectionException:
> Failed to connect node to cluster due to: java.lang.IllegalArgumentException:
> No enum constant org.wali.UpdateType.CONTENTMISSING
>         at org.apache.nifi.controller.StandardFlowService.load(
> StandardFlowService.java:519)
>         at org.apache.nifi.web.server.JettyServer.start(JettyServer.
> java:800)
>         ... 2 common frames omitted
> Caused by: org.apache.nifi.cluster.ConnectionException: Failed to connect
> node to cluster due to: java.lang.IllegalArgumentException: No enum
> constant org.wali.UpdateType.CONTENTMISSING
>         at org.apache.nifi.controller.StandardFlowService.
> loadFromConnectionResponse(StandardFlowService.java:945)
>         at org.apache.nifi.controller.StandardFlowService.load(
> StandardFlowService.java:515)
>         ... 3 common frames omitted
> Caused by: java.lang.IllegalArgumentException: No enum constant
> org.wali.UpdateType.CONTENTMISSING
>         at java.lang.Enum.valueOf(Enum.java:238)
>         at org.wali.UpdateType.valueOf(UpdateType.java:24)
>         at org.apache.nifi.controller.repository.
> SchemaRepositoryRecordSerde.deserializeRecord(SchemaRepositoryRecordSerde.
> java:126)
>         at org.apache.nifi.controller.repository.
> SchemaRepositoryRecordSerde.deserializeEdit(SchemaRepositoryRecordSerde.
> java:109)
>         at org.apache.nifi.controller.repository.
> SchemaRepositoryRecordSerde.deserializeEdit(SchemaRepositoryRecordSerde.
> java:46)
>         at org.wali.MinimalLockingWriteAheadLog$Partition.
> recoverNextTransaction(MinimalLockingWriteAheadLog.java:1096)
>         at org.wali.MinimalLockingWriteAheadLog.recoverFromEdits(
> MinimalLockingWriteAheadLog.java:459)
>         at org.wali.MinimalLockingWriteAheadLog.recoverRecords(
> MinimalLockingWriteAheadLog.java:301)
>         at org.apache.nifi.controller.repository.
> WriteAheadFlowFileRepository.loadFlowFiles(WriteAheadFlowFileRepository.
> java:381)
>         at org.apache.nifi.controller.FlowController.initializeFlow(
> FlowController.java:713)
>         at org.apache.nifi.controller.StandardFlowService.
> initializeController(StandardFlowService.java:955)
>         at org.apache.nifi.controller.StandardFlowService.
> loadFromConnectionResponse(StandardFlowService.java:927)
>         ... 4 common frames omitted
> 2017-06-20 15:27:25,324 INFO [Thread-1] org.apache.nifi.NiFi Initiating
> shutdown of Jetty web server...
>
>
> --
> I know what it is to be in need, and I know what it is to have plenty.  I
> have learned the secret of being content in any and every situation,
> whether well fed or hungry, whether living in plenty or in want.  I can
> do all this through him who gives me strength.    *-Philippians 4:12-13*
>



-- 
I know what it is to be in need, and I know what it is to have plenty.  I
have learned the secret of being content in any and every situation,
whether well fed or hungry, whether living in plenty or in want.  I can do
all this through him who gives me strength.    *-Philippians 4:12-13*