Contributions
Unable to resolve class javax.security.auth.callback
Can't figure out how to implement this javax.security.auth.callback library as it fails on the import statement. Would like to use this library to utilize CallbackHandler.class Can't find a jar on the web to throw in the bin/ext/ either. Any suggestions?Solved2.5KViews0likes3CommentsRe: Properties props = new Properties staying null in groovy script
Hisonya_mthanks for your response. I have tried using both props.put("A", "B") and props.setProperty("A", "B") to no avail. Regardless of which method is used, when I go to load props into the linke of code below, props is still null with size of 0. KafkaConsumer<String, String> consumer = new KafkaConsumer<String, String>(props);4 years agoPlace ReadyAPI QuestionsReadyAPI Questions826Views0likes0CommentsProperties props = new Properties staying null in groovy script
I'm trying to connect to KAFKA via groovy and use a widely popular script However, props is continuously returning null. I have tried both props.setProperty and props.put alike. Neither works, and props stays null of size 0. Script is below: Properties props = new Properties(); props.setProperty("bootstrap.servers", "localhost:9092") props.setProperty("group.id", "test") props.put("enable.auto.commit", "true"); props.put("auto.commit.interval.ms", "1000"); props.put("key.deserializer","org.apache.kafka.common.serialization.StringDeserializer"); props.put("value.deserializer","org.apache.kafka.common.serialization.StringDeserializer"); KafkaConsumer<String, String> consumer = new KafkaConsumer<String, String>(props);893Views0likes2Comments