Big Data Adapter StringSerializer, Replicat Abends Java Or JNI Exception: Oracle.goldengate.util.GGExcept (Doc ID 2218520.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 Big Data Adapter v12.3 to Kafka REPLICAT:

***********************************************************************
Oracle GoldenGate Delivery
Version 12.2.0.1.160823 OGGCORE_OGGADP.12.2.0.1.0_PLATFORMS_161019.1437
Linux, x64, 64bit (optimized), Generic on Oct 19 2016 16:26:25

Oracle GoldenGate Java Adapter, 12.3.0.1.0.012
Copyright (c) 2007, 2016. Oracle and/or its affiliates. All rights reserved
Built with Java 1.8.0_92 (class version: 52.0)

is abending with:

Exception in thread "main" oracle.goldengate.util.GGException: Unable to process operation, Status='ABEND': tx=00000000000000014000 / op=00000000000000014000 : see the Java application log file for details.

And RKAFKA_info_log4j.log shows:

INFO 2016-12-21 10:26:23,616 [main] Creating JSON schema for table CUSTOMER_JOURNEY.MEMO in file ./dirdef/CUSTOMER_JOURNEY.MEMO.schema.json
ERROR 2016-12-21 10:26:23,655 [main] An exception occurred performing a non-blocking send to Kafka.
org.apache.kafka.common.errors.SerializationException: Can't convert key of class [B to class org.apache.kafka.common.serialization.StringSerializer specified in key.serializer
WARN 2016-12-21 10:26:23,656 [main] Error sending event to handler: status=ABEND, event=Add operation, handler=kafkahandler
ERROR 2016-12-21 10:26:23,656 [main] Unable to process operation, Status='ABEND': tx=00000000000000014000 / op=00000000000000014000 :

It’s working fine when custom_kafka_producer.properties is configured to use ByteArraySerializer. But if it is changed to StringSerializer:

value.serializer=org.apache.kafka.common.serialization.StringSerializer
key.serializer=org.apache.kafka.common.serialization.StringSerializer

the abend occurs.

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