My Oracle Support Banner

OGG Big Data Adapter To Kafka Error creating bean nested exception is java.lang.NoClassDefFoundError: org/apache/kafka/clients/producer/Callback (Doc ID 2216384.1)

Last updated on JULY 17, 2017

Applies to:

Oracle GoldenGate Application Adapters - Version and later
Information in this document applies to any platform.


Your BD REPLICAT rkafka:

Oracle GoldenGate Delivery
Version OGGCORE_12.
Solaris, sparc, 64bit (optimized), Generic on May 1 2016 08:23:26

Oracle GoldenGate Java Adapter,
Copyright (c) 2007, 2016. Oracle and/or its affiliates. All rights reserved
Built with Java 1.7.0_45 (class version: 51.0)

is abending with:

DEBUG 2016-12-20 10:28:31,087 [main] DEBUG ( - Trim exception: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userExitDataSource' defined in class path resource [oracle/goldengate/datasource/DataSource-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public final oracle.goldengate.datasource.GGDataSource oracle.goldengate.datasource.factory.DataSourceFactory.getDataSource()] threw exception; nested exception is java.lang.NoClassDefFoundError: org/apache/kafka/clients/producer/Callback

Your kafka.props has the classpath set to the location of the required Kafka client jars:

sf1-3elba1-idb-fd:/opt/ogg$ ls -l kafka_client_0.8.2.1
total 2250
-rw-r--r-- 1 oracle oinstall 324010 Dec 20 09:00 kafka-clients-
-rw-r--r-- 1 oracle oinstall 165505 Dec 20 09:00 lz4-1.2.0.jar
-rw-r--r-- 1 oracle oinstall 28688 Dec 20 09:00 slf4j-api-1.7.6.jar
-rw-r--r-- 1 oracle oinstall 592319 Dec 20 09:00 snappy-java-



To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.