Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Kafka, mail # user - java.lang.NoClassDefFoundError: Could not initialize class java.util.Currency


Copy link to this message
-
java.lang.NoClassDefFoundError: Could not initialize class java.util.Currency
Brett Hoerner 2013-01-21, 16:09
Has anyone ever seen something like this on the Kafka (0.7.2) broker side?
I'm running JDK7, and that class most definitely exists

Once this started it just spammed non-stop (for everything each producer
sent to the box, I think) and Kafka was totally wedged. I bounced and it
came back online immediately.

# Line that raises the issue in Log.scala:
val nf = NumberFormat.getInstance()

# An SBT console on that box:
scala> import java.util.Currency
import java.util.Currency

scala> import java.text.NumberFormat
import java.text.NumberFormat

scala> val nf = NumberFormat.getInstance()
nf: java.text.NumberFormat = java.text.DecimalFormat@674dc

# Java on that box
$ java -version
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode)

# Full stack trace
2013-01-21_02:45:39.23567 [2013-01-21 02:45:39,230] ERROR Closing socket
for /10.31.189.99 because of error (kafka.network.Processor)
2013-01-21_02:45:39.23568 java.lang.NoClassDefFoundError: Could not
initialize class java.util.Currency
2013-01-21_02:45:39.23569       at
java.text.DecimalFormatSymbols.initialize(DecimalFormatSymbols.java:566)
2013-01-21_02:45:39.23569       at
java.text.DecimalFormatSymbols.<init>(DecimalFormatSymbols.java:94)
2013-01-21_02:45:39.23570       at
java.text.DecimalFormatSymbols.getInstance(DecimalFormatSymbols.java:157)
2013-01-21_02:45:39.23571       at
java.text.NumberFormat.getInstance(NumberFormat.java:767)
2013-01-21_02:45:39.23572       at
java.text.NumberFormat.getInstance(NumberFormat.java:384)
2013-01-21_02:45:39.23572       at
kafka.log.Log$.nameFromOffset(Log.scala:75)
2013-01-21_02:45:39.23573       at kafka.log.Log.roll(Log.scala:330)
2013-01-21_02:45:39.23574       at kafka.log.Log.maybeRoll(Log.scala:321)
2013-01-21_02:45:39.23575       at
kafka.log.Log.liftedTree1$1(Log.scala:244)
2013-01-21_02:45:39.23576       at kafka.log.Log.append(Log.scala:242)
2013-01-21_02:45:39.23577       at
kafka.server.KafkaRequestHandlers.kafka$server$KafkaRequestHandlers$$handleProducerRequest(KafkaRequestHandlers.scala:69)
2013-01-21_02:45:39.23577       at
kafka.server.KafkaRequestHandlers.handleProducerRequest(KafkaRequestHandlers.scala:53)
2013-01-21_02:45:39.23578       at
kafka.server.KafkaRequestHandlers$$anonfun$handlerFor$1.apply(KafkaRequestHandlers.scala:38)
2013-01-21_02:45:39.23579       at
kafka.server.KafkaRequestHandlers$$anonfun$handlerFor$1.apply(KafkaRequestHandlers.scala:38)
2013-01-21_02:45:39.23580       at
kafka.network.Processor.handle(SocketServer.scala:296)
2013-01-21_02:45:39.23581       at
kafka.network.Processor.read(SocketServer.scala:319)
2013-01-21_02:45:39.23582       at
kafka.network.Processor.run(SocketServer.scala:214)
2013-01-21_02:45:39.23583       at java.lang.Thread.run(Thread.java:722)

 
+
Ngu, Bob 2013-10-31, 17:53