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

Didn't find a registered implementation for name exception

Aperta
#32 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
C++
Stelle
83
Fork
31
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.