My Oracle Support Banner

Oggbd Replicat- NoSuchMethodError: org.apache.avro.Schema.toString (Doc ID 2819479.1)

Last updated on NOVEMBER 04, 2021

Applies to:

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

Symptoms

The OGG bigdata replicat for kafkaconnect configured was failing with the following error

Exception in thread "main" java.lang.NoSuchMethodError: org.apache.avro.Schema.toString(Ljava/util/Collection;Z)Ljava/lang/String;
at io.confluent.kafka.schemaregistry.avro.AvroSchema.canonicalString(AvroSchema.java:151)
at io.confluent.kafka.schemaregistry.client.CachedSchemaRegistryClient.registerAndGetId(CachedSchemaRegistryClient.java:213)
at io.confluent.kafka.schemaregistry.client.CachedSchemaRegistryClient.register(CachedSchemaRegistryClient.java:275)
at io.confluent.kafka.schemaregistry.client.CachedSchemaRegistryClient.register(CachedSchemaRegistryClient.java:251)
at io.confluent.kafka.serializers.AbstractKafkaAvroSerializer.serializeImpl(AbstractKafkaAvroSerializer.java:103)
at io.confluent.connect.avro.AvroConverter$Serializer.serialize(AvroConverter.java:153)
at io.confluent.connect.avro.AvroConverter.fromConnectData(AvroConverter.java:86)
at oracle.goldengate.handler.kafkaconnect.KafkaConnectProducer.send(KafkaConnectProducer.java:176)
at oracle.goldengate.handler.kafkaconnect.KafkaConnectHandler.processOp(KafkaConnectHandler.java:386)
at oracle.goldengate.handler.kafkaconnect.KafkaConnectHandler.operationAdded(KafkaConnectHandler.java:332)
at oracle.goldengate.datasource.DsEventManager$4.send(DsEventManager.java:453)
at oracle.goldengate.datasource.DsEventManager.distributeEvent(DsEventManager.java:116)
at oracle.goldengate.datasource.DsEventManager.fireOperationAdded(DsEventManager.java:462)
at oracle.goldengate.datasource.AbstractDataSource.fireOperationAdded(AbstractDataSource.java:482)
at oracle.goldengate.datasource.UserExitDataSource.addOperationToTransactionAndFireEvent(UserExitDataSource.java:2350)
at oracle.goldengate.datasource.UserExitDataSource.createOperation(UserExitDataSource.java:1639)
at oracle.goldengate.datasource.UserExitDataSource.createOperation(UserExitDataSource.java:1396)

Source Context :
SourceModule : [gglib.ggdal.adapter.java]
SourceID : [ggdal/Adapter/Java/JavaAdapter.cpp]
SourceMethod : [HandleJavaException]
SourceLine : [260]
ThreadBacktrace : [20] elements
: [/path>/libgglog.so(CMessageContext::AddThreadContext())]
: [/path>/libgglog.so(CMessageFactory::CreateMessage(CSourceContext*, unsigned int, ...))]
: [/path>/libgglog.so(_MSG_String(CSourceContext*, int, char const*, CMessageFactory::MessageDisposition))]
: [/path>/libggjava.so()]
: [/path>/libggjava.so(ggs::gglib::ggdal::CJavaRecordWriter::WriteInByteBuffer(ggs::gglib::ggdal::CDALRecord const&, int&, bool&, ggs::gglib::ggdal::CDALError&))]
: [/path>/replicat(ggs::gglib::ggdal::CDALRecordWriter::Write(ggs::gglib::ggdal::CDALRecord const&, int&, bool&, ggs::gglib::ggdal::CDALError&))]
: [/path>/replicat(GenericImpl::Write(ObjectMetadata*, std_rec_hdr_def const*, ggs::gglib::ggdal::CDALRecord&))]
: [/path>/replicat(execute_statement(ggs::gglib::gglcr::CommonLCR const*, char*, ObjectMetadata*, short, short*, short, extr_ptr_def*, int*, char*, unsigned long, void*, sql_stmt_params_t*))]
: [/path>/replicat(perform_sql_statements(ObjectMetadata*, ggs::gglib::gglcr::CommonLCR const*, short, char*, short*, short, extr_ptr_def*, ggs::gglib::ggmetadata::MetadataContext&))]
: [/path>/replicat(ggs::er::ReplicatContext::replicate_io(ggs::gglib::gglcr::CommonLCR const*, ggs::gglib::gglcr::CommonLCR*, extr_ptr_def*, bool, int&, RepCsn&, bool*))]
: [/path>/replicat(ggs::er::ReplicatContext::processRecord(ggs::gglib::gglcr::CommonLCR const*, ggs::gglib::gglcr::CommonLCR*, extr_ptr_def*&, extr_ptr_def*&, bool&, int&, bool, RepCsn&))]
: [/path>/replicat(ggs::er::ReplicatContext::processReplicatLoop())]
: [/path>/replicat(ggs::er::ReplicatContext::run())]
: [/path>/replicat()]
: [/path>/replicat(ggs::gglib::MultiThreading::MainThread::ExecMain())]
: [/path>/replicat(ggs::gglib::MultiThreading::Thread::RunThread(ggs::gglib::MultiThreading::Thread::ThreadArgs*))]
: [/path>/replicat(ggs::gglib::MultiThreading::MainThread::Run(int, char**))]
: [/path>/replicat(main)]
: [/lib64/libc.so.6(__libc_start_main)]
: [/path>/replicat()]

2021-11-03 19:37:44 ERROR OGG-15051 Java or JNI exception:
java.lang.NoSuchMethodError: org.apache.avro.Schema.toString(Ljava/util/Collection;Z)Ljava/lang/String;.

 

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
Cause
Solution


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