aeraki-mesh / aeraki-mesh/meta-protocol-proxy

Didn't find a registered implementation for name exception

Offen
#32 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
C++
Sterne
83
Forks
31
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

hello

i want to write a mysql codec use meta-protocol-proxy

MysqlCodec() {
ENVOY_LOG(debug, "mysql: begin to construct ");
transport_ =
MysqlProxy::NamedTransportConfigFactory::getFactory(MysqlProxy::TransportType::Auto)
.createTransport();

but MysqlProxy::NamedTransportConfigFactory::getFactory(MysqlProxy::TransportType::Auto)
.createTransport(); this line get exection

Thread 21 "wrk:worker_7" hit Breakpoint 1, Envoy::Extensions::NetworkFilters::MysqlProxy::NamedTransportConfigFactory::getFactory (type=Envoy::Extensions::NetworkFilters::MysqlProxy::TransportType::Auto)
at ./src/application_protocols/mysql/transport.h:104
104 const std::string& name = TransportNames::get().fromType(type);
(gdb) n
105 return Envoy::Config::Utility::getAndCheckFactoryByName(name);
(gdb) p name
$1 = (const std::string &) @0x5555617dbae0: {static npos = 18446744073709551615, _M_dataplus = {> = {<__gnu_cxx::new_allocator> = {}, },
_M_p = 0x5555617dbaf0 "auto"}, _M_string_length = 4, {_M_local_buf = "auto", '\000' , _M_allocated_capacity = 1869903201}}
(gdb) s
Envoy::Config::Utility::getAndCheckFactoryByName (name=...)
at bazel-out/k8-dbg/bin/external/envoy/source/common/config/_virtual_includes/utility_lib/common/config/utility.h:255
255 if (name.empty()) {
(gdb) n
259 Factory* factory = Registry::FactoryRegistry::getFactory(name);
(gdb) p name
$2 = (const std::string &) @0x5555617dbae0: {static npos = 18446744073709551615, _M_dataplus = {> = {<__gnu_cxx::new_allocator> = {}, },
_M_p = 0x5555617dbaf0 "auto"}, _M_string_length = 4, {_M_local_buf = "auto", '\000' , _M_allocated_capacity = 1869903201}}
(gdb) n
261 if (factory == nullptr) {
(gdb) n
263 fmt::format("Didn't find a registered implementation for name: '{}'", name));

then gdb ,i find it is a nullptr exception, can any one tell me how to resolve?

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.