producer - Exception in thread "main" java.lang.NoSuchMethodError: scala.Tuple2._1$mcI$sp()I -


properties props = new properties();

props.put("zk.connect", "localhost:2181");

props.put("serializer.class", "kafka.serializer.stringencoder");

producerconfig config = new producerconfig(props);

producer producer = new producer(config);

producerdata data = new producerdata("test-topic", "test-message");

producer.send(data);

i trying execute code got exception in thread "main" java.lang.nosuchmethoderror: scala.tuple2._1$mci$sp()i exception. added scala related jar file.plese suggedt me ??????

i faced same issue. check classpath see if sbt-launch.jar preceding scala-library.jar. both of them have same class; scala.tuple2 scala-library correct one.

after placing scala-library.jar higher in classpath solved issue.

thanks,

hussain


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -