kafka TestUtils createBrokerConfig issue

2014-08-12 Thread Parin Jogani
Trying to write a unit test case for Kafka, and stuck with strange createBrokerConfig issue. on TestUtils.createBrokerConfigs(1) it gives me compilation error The method createBrokerConfigs(int, boolean) in the type TestUtils is not applicable for the arguments (int) When I looked into the scala

Fwd: kafka TestUtils createBrokerConfig issue

2014-08-19 Thread Parin Jogani
Trying to write a unit test case for Kafka, and stuck with strange createBrokerConfig issue. on TestUtils.createBrokerConfigs(1) it gives me compilation error The method createBrokerConfigs(int, boolean) in the type TestUtils is not applicable for the arguments (int) When I looked into the scala

kafka TestUtils createBrokerConfig issue

2014-08-19 Thread Parin Jogani
Trying to write a unit test case for Kafka, and stuck with strange createBrokerConfig issue. on TestUtils.createBrokerConfigs(1) it gives me compilation error The method createBrokerConfigs(int, boolean) in the type TestUtils is not applicable for the arguments (int) When I looked into the scala

kafka TestUtils choosePort NoSuchMethodError

2014-08-19 Thread Parin Jogani
I am trying to create unit test case for Kafka with a simple call Properties props =TestUtils.createBrokerConfig(1, TestUtils.choosePort(), true); It fails on > java.lang.NoSuchMethodError: > scala.Predef$.intWrapper(I)Lscala/runtime/RichInt; > at kafka.utils.TestUtils$.choosePorts(Test

kafka unit test in Java, TestUtils choosePort sends NoSuchMethodError

2014-08-23 Thread Parin Jogani
nal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) > > I also tried: scala.collection.Iterator props = TestUtils.createBrokerConfigs(1, true).iterator(); Same result. This is a simple call to create kafka server, dont know what is going wrong. O

Re: kafka unit test in Java, TestUtils choosePort sends NoSuchMethodError

2014-08-23 Thread Parin Jogani
ich kafka version are you working > on? > > Guozhang > > > On Sat, Aug 23, 2014 at 7:16 PM, Parin Jogani > wrote: > > > I am trying to create unit test case for Kafka in Java with a simple call > > > > Properties props =TestUtils.createBrokerC

Re: kafka unit test in Java, TestUtils choosePort sends NoSuchMethodError

2014-08-26 Thread Parin Jogani
Can anyone help? On Sat, Aug 23, 2014 at 9:38 PM, Parin Jogani wrote: > Kafka: > >> org.apache.kafka >> kafka_2.9.2 >> 0.8.1.1 >> test > > > My tests are in Java: junit, so dont know how scala would make a > difference. > > Hope this helps! &g

Re: kafka unit test in Java, TestUtils choosePort sends NoSuchMethodError

2014-08-27 Thread Parin Jogani
you make sure that you are using the scala 2.9.2 jar? > > Thanks, > > Jun > > > On Tue, Aug 26, 2014 at 9:28 PM, Parin Jogani > wrote: > > > Can anyone help? > > > > > > > > > > On Sat, Aug 23, 2014 at 9:38 PM, Parin Jogani > >

Re: kafka unit test in Java, TestUtils choosePort sends NoSuchMethodError

2014-08-29 Thread Parin Jogani
gt; > Jun > > > On Wed, Aug 27, 2014 at 4:05 PM, Parin Jogani > wrote: > > > As far as I understand it shouldnt have such a dependency. JVM should be > > able to compile this. I am using JDK1.6. Also this is a unit test. > > Correct me if I am wron