kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kishore Senji <kse...@gmail.com>
Subject Re: java.lang.NoClassDefFoundError: Could not initialize class com.yammer.metrics.Metrics
Date Thu, 03 Sep 2015 04:48:26 GMT
It is a NoClassDefFoundError so the clinit of Metrics class is failing.
Please look for surrounding stack traces, there must be a root cause for
why the class initialization failed.

On Wed, Sep 2, 2015 at 1:05 PM, Vadim Keylis <vkeylis2009@gmail.com> wrote:

> I suddenly started getting this error using the code that was perfectly
> working a day before. The library containing yammer metrics exists and part
> of mvn build. Please help how to resolve the issue or disable
> yammer.metrics.
>
> Thanks in advance
>
> Exception in thread "Thread-3" java.lang.NoClassDefFoundError: Could not
> initialize class com.yammer.metrics.Metrics
> at
> kafka.metrics.KafkaMetricsGroup$class.newTimer(KafkaMetricsGroup.scala:52)
> at
>
> kafka.consumer.FetchRequestAndResponseMetrics.newTimer(FetchRequestAndResponseStats.scala:25)
> at
>
> kafka.consumer.FetchRequestAndResponseMetrics.<init>(FetchRequestAndResponseStats.scala:26)
> at
>
> kafka.consumer.FetchRequestAndResponseStats.<init>(FetchRequestAndResponseStats.scala:37)
> at
>
> kafka.consumer.FetchRequestAndResponseStatsRegistry$$anonfun$2.apply(FetchRequestAndResponseStats.scala:50)
> at
>
> kafka.consumer.FetchRequestAndResponseStatsRegistry$$anonfun$2.apply(FetchRequestAndResponseStats.scala:50)
> at kafka.utils.Pool.getAndMaybePut(Pool.scala:61)
> at
>
> kafka.consumer.FetchRequestAndResponseStatsRegistry$.getFetchRequestAndResponseStats(FetchRequestAndResponseStats.scala:54)
> at kafka.consumer.SimpleConsumer.<init>(SimpleConsumer.scala:39)
> at kafka.javaapi.consumer.SimpleConsumer.<init>(SimpleConsumer.scala:34)
> at
>
> com.tagged.etlhub.client.kafka.connector.driver.LeaderDiscovery.connectToLeader(LeaderDiscovery.java:90)
> at
>
> com.tagged.etlhub.client.kafka.connector.driver.LeaderDiscovery.findLeader(LeaderDiscovery.java:50)
> at
>
> com.tagged.etlhub.client.kafka.connector.driver.Connector.connect(Connector.java:208)
> at
>
> com.tagged.etlhub.client.kafka.connector.driver.Connector.createConnector(Connector.java:65)
> at
>
> com.tagged.etlhub.client.kafka.connector.driver.ConnectorFactory.getConnector(ConnectorFactory.java:11)
> at
>
> com.tagged.etlhub.client.kafka.message.TopicMessages.getConnector(TopicMessages.java:156)
> at
>
> com.tagged.etlhub.client.kafka.message.TopicMessages.connect(TopicMessages.java:45)
> at
>
> com.tagged.etlhub.client.StreamThreadPool.startStream(StreamThreadPool.java:109)
> at
>
> com.tagged.etlhub.client.StreamThreadPool.access$0(StreamThreadPool.java:93)
> at
> com.tagged.etlhub.client.StreamThreadPool$1.run(StreamThreadPool.java:73)
> at java.lang.Thread.run(Unknown Source)
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message