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 12.1.2.1.6 and later
Information in this document applies to any platform.

Symptoms

Your BD REPLICAT rkafka:

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

***********************************************************************
Oracle GoldenGate Java Adapter, 12.2.0.1.1.011
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 (UserExitMain.java:115) - 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-0.8.2.1.jar
-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-1.1.1.6.jar

gg.classpath=dirprm/:/opt/ogg/kafka_client_0.8.2.1:/opt/ogg/12201_BD/dp1prom/ggjava/resources/lib:/opt/ogg/12201_BD/dp1prom:/opt/ogg/12201_BD/dp1prom/ggjava



Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms