java.lang.RuntimeException: Failed while executing one of processor's lifecycle tasks (OnScheduled or OnUnscheduled).

Apache's JIRA Issue Tracker | Mark Payne | 9 months ago
  1. 0

    Since NIFI-1464 was merged to master, I have seen problems starting the PutKafka processor. It appears that the NAR ClassLoader was not being properly applied, per the stack trace: 2016-03-11 14:22:53,967 ERROR [pool-25-thread-5] o.a.n.controller.StandardProcessorNode Failed to invoke @OnScheduled method due to java.lang.RuntimeException: Failed while executing one of processor's lifecycle tasks (OnScheduled or OnUnscheduled). java.lang.RuntimeException: Failed while executing one of processor's lifecycle tasks (OnScheduled or OnUnscheduled). at org.apache.nifi.controller.StandardProcessorNode.invokeTaskAsCancelableFuture(StandardProcessorNode.java:1398) ~[nifi-framework-core-0.6.0-SNAPSHOT.jar:0.6.0-SNAPSHOT] at org.apache.nifi.controller.StandardProcessorNode.access$100(StandardProcessorNode.java:91) ~[nifi-framework-core-0.6.0-SNAPSHOT.jar:0.6.0-SNAPSHOT] at org.apache.nifi.controller.StandardProcessorNode$1.run(StandardProcessorNode.java:1246) ~[nifi-framework-core-0.6.0-SNAPSHOT.jar:0.6.0-SNAPSHOT] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_60] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_60] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_60] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.8.0_60] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_60] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_60] at java.lang.Thread.run(Thread.java:745) [na:1.8.0_60] Caused by: java.util.concurrent.ExecutionException: java.lang.reflect.InvocationTargetException at java.util.concurrent.FutureTask.report(FutureTask.java:122) [na:1.8.0_60] at java.util.concurrent.FutureTask.get(FutureTask.java:206) [na:1.8.0_60] at org.apache.nifi.controller.StandardProcessorNode.invokeTaskAsCancelableFuture(StandardProcessorNode.java:1383) ~[nifi-framework-core-0.6.0-SNAPSHOT.jar:0.6.0-SNAPSHOT] ... 9 common frames omitted Caused by: java.lang.reflect.InvocationTargetException: null at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_60] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_60] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_60] at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_60] at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:137) ~[nifi-framework-core-0.6.0-SNAPSHOT.jar:0.6.0-SNAPSHOT] at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:125) ~[nifi-framework-core-0.6.0-SNAPSHOT.jar:0.6.0-SNAPSHOT] at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:70) ~[nifi-framework-core-0.6.0-SNAPSHOT.jar:0.6.0-SNAPSHOT] at org.apache.nifi.controller.StandardProcessorNode$1$1.call(StandardProcessorNode.java:1250) ~[nifi-framework-core-0.6.0-SNAPSHOT.jar:0.6.0-SNAPSHOT] at org.apache.nifi.controller.StandardProcessorNode$1$1.call(StandardProcessorNode.java:1246) ~[nifi-framework-core-0.6.0-SNAPSHOT.jar:0.6.0-SNAPSHOT] ... 6 common frames omitted Caused by: java.lang.ExceptionInInitializerError: null at org.apache.kafka.clients.producer.KafkaProducer.<init>(KafkaProducer.java:194) ~[na:na] at org.apache.nifi.processors.kafka.PutKafka.createProducer(PutKafka.java:323) ~[na:na] ... 15 common frames omitted Caused by: org.apache.kafka.common.config.ConfigException: Invalid value org.apache.kafka.clients.producer.internals.DefaultPartitioner for configuration partitioner.class: Class org.apache.kafka.clients.producer.internals.DefaultPartitioner could not be found. at org.apache.kafka.common.config.ConfigDef.parseType(ConfigDef.java:255) ~[na:na] at org.apache.kafka.common.config.ConfigDef.define(ConfigDef.java:78) ~[na:na] at org.apache.kafka.common.config.ConfigDef.define(ConfigDef.java:94) ~[na:na] at org.apache.kafka.clients.producer.ProducerConfig.<clinit>(ProducerConfig.java:206) ~[na:na] ... 17 common frames omitted

    Apache's JIRA Issue Tracker | 9 months ago | Mark Payne
    java.lang.RuntimeException: Failed while executing one of processor's lifecycle tasks (OnScheduled or OnUnscheduled).
  2. 0

    Karaf - Kafka OSGI bundle - Producer issue

    Stack Overflow | 11 months ago | user3619698
    java.lang.ExceptionInInitializerError
  3. 0

    Class io.confluent.connect.avro.AvroConverter could not be found

    GitHub | 2 months ago | renukaradhya
    org.apache.kafka.common.config.ConfigException: Invalid value io.confluent.connect.avro.AvroConverter for configuration value.converter: Class io.confluent.connect.avro.AvroConverter could not be found.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Real-time Sentiment Analysis of Twitter Hashtags with Spark || Error Starting Streaming Service

    Stack Overflow | 7 months ago | Nick
    org.apache.kafka.common.config.ConfigException: Invalid value com.ibm.cds.spark.samples.StatusDeserializer for configuration value.deserializer: Class com.ibm.cds.spark.samples.StatusDeserializer could not be found.
  6. 0

    GitHub comment 2#219961426

    GitHub | 7 months ago | NiPfeuffer
    org.apache.kafka.common.config.ConfigException: Invalid value com.ibm.cds.spark.samples.StatusDeserializer for configuration value.deserializer: Class com.ibm.cds.spark.samples.StatusDeserializer could not be found.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.apache.kafka.common.config.ConfigException

      Invalid value org.apache.kafka.clients.producer.internals.DefaultPartitioner for configuration partitioner.class: Class org.apache.kafka.clients.producer.internals.DefaultPartitioner could not be found.

      at org.apache.kafka.common.config.ConfigDef.parseType()
    2. Apache Kafka
      KafkaProducer.<init>
      1. org.apache.kafka.common.config.ConfigDef.parseType(ConfigDef.java:255)[na:na]
      2. org.apache.kafka.common.config.ConfigDef.define(ConfigDef.java:78)[na:na]
      3. org.apache.kafka.common.config.ConfigDef.define(ConfigDef.java:94)[na:na]
      4. org.apache.kafka.clients.producer.ProducerConfig.<clinit>(ProducerConfig.java:206)[na:na]
      5. org.apache.kafka.clients.producer.KafkaProducer.<init>(KafkaProducer.java:194)[na:na]
      5 frames
    3. org.apache.nifi
      PutKafka.createProducer
      1. org.apache.nifi.processors.kafka.PutKafka.createProducer(PutKafka.java:323)[na:na]
      1 frame
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_60]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_60]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_60]
      4. java.lang.reflect.Method.invoke(Method.java:497)[na:1.8.0_60]
      4 frames
    5. org.apache.nifi
      StandardProcessorNode$1$1.call
      1. org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:137)[nifi-framework-core-0.6.0-SNAPSHOT.jar:0.6.0-SNAPSHOT]
      2. org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:125)[nifi-framework-core-0.6.0-SNAPSHOT.jar:0.6.0-SNAPSHOT]
      3. org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:70)[nifi-framework-core-0.6.0-SNAPSHOT.jar:0.6.0-SNAPSHOT]
      4. org.apache.nifi.controller.StandardProcessorNode$1$1.call(StandardProcessorNode.java:1250)[nifi-framework-core-0.6.0-SNAPSHOT.jar:0.6.0-SNAPSHOT]
      5. org.apache.nifi.controller.StandardProcessorNode$1$1.call(StandardProcessorNode.java:1246)[nifi-framework-core-0.6.0-SNAPSHOT.jar:0.6.0-SNAPSHOT]
      5 frames
    6. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:266)[na:1.8.0_60]
      2. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)[na:1.8.0_60]
      3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)[na:1.8.0_60]
      4. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_60]
      5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_60]
      6. java.lang.Thread.run(Thread.java:745)[na:1.8.0_60]
      6 frames