Big Data Adapter StringSerializer, Replicat Abends Java Or JNI Exception: Oracle.goldengate.util.GGExcept
(Doc ID 2218520.1)
Last updated on MAY 11, 2022
Applies to:
Oracle GoldenGate Application Adapters - Version 12.1.2.1.6 and laterInformation 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 <replicat_name>_info_log4j.log shows:
INFO 2016-12-21 10:26:23,616 [main] Creating JSON schema for table <owner_name>.<table_name> in file ./dirdef/<owner_name>.<table_name>.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.
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 |