java.lang.NoClassDefFoundError: Could not initialize class org.apache.log4j.Log4jLoggerFactory

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via hortonworks.com by Unknown author, 6 months ago
via weyo.me by Unknown author, 1 year ago
Could not initialize class org.apache.log4j.Log4jLoggerFactory
via Stack Overflow by Marko
, 10 months ago
Could not initialize class org.apache.log4j.Log4jLoggerFactory
via Google Groups by Mariano Mirabelli, 5 months ago
Could not initialize class org.apache.log4j.Log4jLoggerFactory
via GitHub by utish
, 1 year ago
Could not initialize class org.apache.log4j.LogManager
java.lang.NoClassDefFoundError: Could not initialize class org.apache.log4j.Log4jLoggerFactory
at kafka.utils.Logging$class.logger(Logging.scala:24)
at kafka.consumer.SimpleConsumer.logger$lzycompute(SimpleConsumer.scala:35)
at kafka.consumer.SimpleConsumer.logger(SimpleConsumer.scala:35)
at kafka.utils.Logging$class.info(Logging.scala:77)
at kafka.consumer.SimpleConsumer.info(SimpleConsumer.scala:35)
at kafka.consumer.SimpleConsumer.liftedTree1$1(SimpleConsumer.scala:94)
at kafka.consumer.SimpleConsumer.kafka$consumer$SimpleConsumer$$sendRequest(SimpleConsumer.scala:83)
at kafka.consumer.SimpleConsumer.getOffsetsBefore(SimpleConsumer.scala:149)
at org.apache.storm.kafka.KafkaUtils.getOffset(KafkaUtils.java:75)
at org.apache.storm.kafka.KafkaUtils.getOffset(KafkaUtils.java:65)
at org.apache.storm.kafka.PartitionManager.(PartitionManager.java:103)
at org.apache.storm.kafka.ZkCoordinator.refresh(ZkCoordinator.java:98)
at org.apache.storm.kafka.ZkCoordinator.getMyManagedPartitions(ZkCoordinator.java:69)
at org.apache.storm.kafka.KafkaSpout.nextTuple(KafkaSpout.java:129)
at org.apache.storm.daemon.executor$fn__7990$fn__8005$fn__8036.invoke(executor.clj:648)
at org.apache.storm.util$async_loop$fn__624.invoke(util.clj:484)
at clojure.lang.AFn.run(AFn.java:22)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
3 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.