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 OCTOBER 29, 2019

Applies to:

Oracle GoldenGate Application Adapters - Version 12.1.2.1.6 and later
Information in this document applies to any platform.
NOTE: In the images and/or the document content below, the user information and data used represents fictitious data from the Oracle sample schema(s) or Public Documentation delivered with an Oracle database product. Any similarity to actual persons, living or dead, is purely coincidental and not intended in any manner.

Symptoms

Big Data replicat:

***********************************************************************
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:

/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:<path>/dp1prom/ggjava/resources/lib:<path>/dp1prom:<path>/dp1prom/ggjava



Changes

 

Cause

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
Symptoms
Changes
Cause
Solution
References


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