You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Pierre Villard (Jira)" <ji...@apache.org> on 2020/02/20 17:37:00 UTC
[jira] [Commented] (NIFI-7173) NoClassDefFoundError:
org/apache/nifi/metrics/jvm/JmxJvmMetrics
[ https://issues.apache.org/jira/browse/NIFI-7173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17041166#comment-17041166 ]
Pierre Villard commented on NIFI-7173:
--------------------------------------
Hi [~gbracke] - thanks for reporting the issue. I believe this is caused by NIFI-5373. Could you share a script example to reproduce the issue. It's probably a dependency issue somewhere. As a workaround, it should be possible to add [the appropriate JARs|https://mvnrepository.com/artifact/org.apache.nifi/nifi-metrics] in the module directory.
> NoClassDefFoundError: org/apache/nifi/metrics/jvm/JmxJvmMetrics
> ---------------------------------------------------------------
>
> Key: NIFI-7173
> URL: https://issues.apache.org/jira/browse/NIFI-7173
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Affects Versions: 1.11.1
> Environment: centos
> Reporter: Gert Bracke
> Priority: Minor
>
> ScriptedReportingTask gives a NoClassDefFoundError: org/apache/nifi/metrics/jvm/JmxJvmMetrics
> In version 1.9.2 this is working fine.
> both java 8 and java 11 give same result.
>
> the full error is
> 2020-02-19 16:00:26,601 ERROR [Timer-Driven Process Thread-1] o.a.n.c.s.StandardProcessScheduler Failed to invoke the On-Scheduled Lifecycle methods of [ScriptedReportingTask[id=5c7abfa0-0170-1000-d7ca-45dd4b4e23ed], java.lang.reflect.InvocationTargetException, 30 sec] due to {}; administratively yielding this ReportingTask and will attempt to schedule it again after {}
> java.lang.reflect.InvocationTargetException: null
> at sun.reflect.GeneratedMethodAccessor247.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:142)
> at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:130)
> at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:75)
> at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotation(ReflectionUtils.java:52)
> at org.apache.nifi.controller.scheduling.StandardProcessScheduler$2.run(StandardProcessScheduler.java:222)
> at org.apache.nifi.engine.FlowEngine$2.run(FlowEngine.java:110)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
> Caused by: java.lang.NoClassDefFoundError: org/apache/nifi/metrics/jvm/JmxJvmMetrics
> at org.apache.nifi.reporting.script.ScriptedReportingTask.setup(ScriptedReportingTask.java:146)
> ... 16 common frames omitted
> 2020-02-19 16:00:30,590 INFO [pool-12-thread-1] o.a.n.c.r.WriteAheadFlowFileRepository Initiating checkpoint of FlowFile Repository
> 2020-02-19 16:00:30,591 INFO [pool-12-thread-1] o.a.n.c.r.WriteAheadFlowFileRepository Successfully checkpointed FlowFile Repository with
--
This message was sent by Atlassian Jira
(v8.3.4#803005)