Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Dubbo 3.3.2 get wrong when use the same port as spring boot #15020

Open
3 of 4 tasks
luger1990 opened this issue Dec 26, 2024 · 1 comment
Open
3 of 4 tasks

[Bug] Dubbo 3.3.2 get wrong when use the same port as spring boot #15020

luger1990 opened this issue Dec 26, 2024 · 1 comment
Assignees
Labels
component/need-triage Need maintainers to triage type/need-triage Need maintainers to triage

Comments

@luger1990
Copy link

luger1990 commented Dec 26, 2024

Pre-check

  • I am sure that all the content I provide is in English.

Search before asking

  • I had searched in the issues and found no similar issues.

Apache Dubbo Component

Java SDK (apache/dubbo)

Dubbo Version

Dubbo java 3.3.2
JDK 21

Steps to reproduce this issue

I use config below
provider config

server:
  port: 8888
  http2:
    enabled: true
  tomcat:
    keep-alive-timeout: -1
    uri-encoding: UTF-8
    mbeanregistry:
      enabled: true
  servlet:
    encoding:
      charset: UTF-8
      enabled: true
      force: true
  shutdown: graceful
  compression:
    enabled: true
    mime-types: application/javascript,text/css,application/json,application/xml,text/html,text/xml,text/plain
spring:
  application:
    name: moki-cloud-provider
  profiles:
    active: dev
  main:
    allow-bean-definition-overriding: true
    allow-circular-references: true
  mvc:
    hiddenmethod:
      filter:
        enabled: true
  cloud:
    nacos:
      discovery:
        register-enabled: true
#  lifecycle:
#    timeout-per-shutdown-phase: 60s


# https://dubbo.apache.org/zh/docs3-v2/java-sdk/reference-manual/config/properties/
dubbo:
  application:
    name: ${spring.application.name}
    id: ${spring.application.name}
    register-mode: instance
    logger: slf4j
    owner: luger
    environment: dev
    shutwait: 60000
    qos-enable: false
  protocol:
    id: tri
    name: tri
    port: ${server.port}
    serialization: hessian2
    triple:
      verbose: true
      servlet:
        enabled: true
  registry:
    address: nacos://127.0.0.1:8848
  config-center:
    address: nacos://127.0.0.1:8848
  metadata-report:
    address: nacos://127.0.0.1:8848
  scan:
    base-packages: com.nct
  consumer:
    check: false
  provider:
    threads: 500
    delay: 10000
  metrics:
    protocol: prometheus

consumer config

server:
  port: 18888
  http2:
    enabled: true
  tomcat:
    keep-alive-timeout: -1
    uri-encoding: UTF-8
    mbeanregistry:
      enabled: true
  servlet:
    encoding:
      charset: UTF-8
      enabled: true
      force: true
  shutdown: graceful
  compression:
    enabled: true
    mime-types: application/javascript,text/css,application/json,application/xml,text/html,text/xml,text/plain
spring:
  application:
    name: moki-cloud-provider
  profiles:
    active: dev
  main:
    allow-bean-definition-overriding: true
    allow-circular-references: true
  mvc:
    hiddenmethod:
      filter:
        enabled: true
  cloud:
    nacos:
      discovery:
        register-enabled: true
#  lifecycle:
#    timeout-per-shutdown-phase: 60s


# https://dubbo.apache.org/zh/docs3-v2/java-sdk/reference-manual/config/properties/
dubbo:
  application:
    name: ${spring.application.name}
    id: ${spring.application.name}
    register-mode: instance
    logger: slf4j
    owner: luger
    environment: dev
    shutwait: 60000
    qos-enable: false
  protocol:
    id: tri
    name: tri
    port: ${server.port}
    serialization: hessian2
    triple:
      verbose: true
      servlet:
        enabled: true
  registry:
    address: nacos://127.0.0.1:8848
  config-center:
    address: nacos://127.0.0.1:8848
  metadata-report:
    address: nacos://127.0.0.1:8848
  scan:
    base-packages: com.nct
  consumer:
    check: false
  provider:
    threads: 500
    delay: 10000
  metrics:
    protocol: prometheus

I can see provider in nacos after start both of them, but the consumer print error logs below

2024-12-26T14:45:28.206+08:00  WARN 30700 --- [moki-cloud-provider] [ncesChangeEvent] o.a.d.r.proxy.InvokerInvocationHandler   :  [DUBBO] [Dubbo-Consumer] execute service moki-cloud-provider/org.apache.dubbo.metadata.MetadataServiceV2:2.0.0:tri#GetMetadataInfo cost 5020.422999 ms, this invocation almost (maybe already) timeout. Timeout: 5000ms
invocation context:
timeout=5000;
group=moki-cloud-provider;
thread info: 
Start time: 274333680221700
+-[ Offset: 0.000000ms; Usage: 5020.422999ms, 100% ] Receive request. Client invoke begin. ServiceKey: moki-cloud-provider/org.apache.dubbo.metadata.MetadataServiceV2:2.0.0 MethodName:GetMetadataInfo, dubbo version: 3.3.2, current host: 10.100.101.111, error code: 3-4. This may be caused by , go to https://dubbo.apache.org/faq/3/4 to find instructions. 
2024-12-26T14:45:28.206+08:00  INFO 30700 --- [moki-cloud-provider] [ncesChangeEvent] o.a.d.r.a.c.AbstractConnectionClient     :  [DUBBO] Destroying connection to /10.100.101.111:8888, because the reference count reaches 0, dubbo version: 3.3.2, current host: 10.100.101.111
2024-12-26T14:45:28.207+08:00  INFO 30700 --- [moki-cloud-provider] [ncesChangeEvent] o.a.d.r.transport.netty4.NettyChannel    :  [DUBBO] Close netty channel [id: 0xef5975eb, L:/10.100.101.111:9238 - R:/10.100.101.111:8888], dubbo version: 3.3.2, current host: 10.100.101.111
2024-12-26T14:45:28.207+08:00  INFO 30700 --- [moki-cloud-provider] [entExecutor-1-1] .d.r.a.c.SingleProtocolConnectionManager :  [DUBBO] Remove closed connection (with reference count==0) for address 10.100.101.111:8888, a new one will be created for upcoming RPC requests routing to this address., dubbo version: 3.3.2, current host: 10.100.101.111
2024-12-26T14:45:28.210+08:00  INFO 30700 --- [moki-cloud-provider] [lientWorker-2-1] o.a.d.r.t.netty4.NettyConnectionHandler  :  [DUBBO] The client has been closed and will not reconnect. , dubbo version: 3.3.2, current host: 10.100.101.111
2024-12-26T14:45:28.211+08:00  INFO 30700 --- [moki-cloud-provider] [lientWorker-2-1] o.a.d.r.t.netty4.NettyConnectionHandler  :  [DUBBO] The connection [id: 0xef5975eb, L:/10.100.101.111:9238 ! R:/10.100.101.111:8888] of 10.100.101.111:9238 -> 10.100.101.111:8888 is disconnected., dubbo version: 3.3.2, current host: 10.100.101.111
2024-12-26T14:45:28.207+08:00 ERROR 30700 --- [moki-cloud-provider] [ncesChangeEvent] o.a.d.r.client.metadata.MetadataUtils    :  [DUBBO] Failed to get app metadata for revision 329bbc445ca1e36ed36848cc9002b4ee for type local from instance 10.100.101.111:8888, dubbo version: 3.3.2, current host: 10.100.101.111, error code: 1-39. This may be caused by , go to https://dubbo.apache.org/faq/1/39 to find instructions. 

com.alibaba.dubbo.rpc.RpcException: DEADLINE_EXCEEDED : Waiting server-side response timeout by scan timer. start time: 2024-12-26 14:45:23.188, end time: 2024-12-26 14:45:28.204, timeout: 5000 ms, service: org.apache.dubbo.metadata.MetadataServiceV2, method: GetMetadataInfo
	at org.apache.dubbo.rpc.TriRpcStatus.asException(TriRpcStatus.java:260) ~[dubbo-3.3.2.jar:3.3.2]
	at org.apache.dubbo.rpc.protocol.tri.DeadlineFuture$TimeoutCheckTask.notifyTimeout(DeadlineFuture.java:162) ~[dubbo-3.3.2.jar:3.3.2]
	at org.apache.dubbo.rpc.protocol.tri.DeadlineFuture$TimeoutCheckTask.lambda$run$0(DeadlineFuture.java:149) ~[dubbo-3.3.2.jar:3.3.2]
	at org.apache.dubbo.common.threadpool.ThreadlessExecutor$RunnableWrapper.run(ThreadlessExecutor.java:151) ~[dubbo-3.3.2.jar:3.3.2]
	at org.apache.dubbo.common.threadpool.ThreadlessExecutor.waitAndDrain(ThreadlessExecutor.java:77) ~[dubbo-3.3.2.jar:3.3.2]
	at org.apache.dubbo.rpc.AsyncRpcResult.get(AsyncRpcResult.java:220) ~[dubbo-3.3.2.jar:3.3.2]
	at org.apache.dubbo.rpc.protocol.AbstractInvoker.waitForResultIfSync(AbstractInvoker.java:293) ~[dubbo-3.3.2.jar:3.3.2]
	at org.apache.dubbo.rpc.protocol.AbstractInvoker.invoke(AbstractInvoker.java:195) ~[dubbo-3.3.2.jar:3.3.2]
	at org.apache.dubbo.rpc.proxy.InvocationUtil.invoke(InvocationUtil.java:64) ~[dubbo-3.3.2.jar:3.3.2]
	at org.apache.dubbo.rpc.stub.StubInvocationUtil.call(StubInvocationUtil.java:64) ~[dubbo-3.3.2.jar:3.3.2]
	at org.apache.dubbo.rpc.stub.StubInvocationUtil.unaryCall(StubInvocationUtil.java:29) ~[dubbo-3.3.2.jar:3.3.2]
	at org.apache.dubbo.metadata.DubboMetadataServiceV2Triple$MetadataServiceV2Stub.getMetadataInfo(DubboMetadataServiceV2Triple.java:114) ~[dubbo-3.3.2.jar:3.3.2]
	at org.apache.dubbo.registry.client.metadata.MetadataUtils$RemoteMetadataService.getRemoteMetadata(MetadataUtils.java:370) ~[dubbo-3.3.2.jar:3.3.2]
	at org.apache.dubbo.registry.client.metadata.MetadataUtils.getRemoteMetadata(MetadataUtils.java:258) ~[dubbo-3.3.2.jar:3.3.2]
	at org.apache.dubbo.registry.client.AbstractServiceDiscovery.lambda$getRemoteMetadata$2(AbstractServiceDiscovery.java:254) ~[dubbo-3.3.2.jar:3.3.2]
	at org.apache.dubbo.metrics.event.MetricsEventBus.post(MetricsEventBus.java:84) ~[dubbo-3.3.2.jar:3.3.2]
	at org.apache.dubbo.registry.client.AbstractServiceDiscovery.getRemoteMetadata(AbstractServiceDiscovery.java:252) ~[dubbo-3.3.2.jar:3.3.2]
	at org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener.lambda$doOnEvent$2(ServiceInstancesChangedListener.java:172) ~[dubbo-3.3.2.jar:3.3.2]
	at java.base/java.util.Optional.orElseGet(Optional.java:364) ~[na:na]
	at org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener.doOnEvent(ServiceInstancesChangedListener.java:172) ~[dubbo-3.3.2.jar:3.3.2]
	at org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener.onEvent(ServiceInstancesChangedListener.java:125) ~[dubbo-3.3.2.jar:3.3.2]
	at org.apache.dubbo.registry.nacos.NacosServiceDiscovery.handleEvent(NacosServiceDiscovery.java:245) ~[dubbo-3.3.2.jar:3.3.2]
	at org.apache.dubbo.registry.nacos.NacosServiceDiscovery.access$000(NacosServiceDiscovery.java:65) ~[dubbo-3.3.2.jar:3.3.2]
	at org.apache.dubbo.registry.nacos.NacosServiceDiscovery$NacosEventListener.onEvent(NacosServiceDiscovery.java:217) ~[dubbo-3.3.2.jar:3.3.2]
	at com.alibaba.nacos.client.naming.selector.NamingListenerInvoker.invoke(NamingListenerInvoker.java:47) ~[nacos-client-2.4.2.jar:na]
	at com.alibaba.nacos.client.naming.selector.NamingListenerInvoker.invoke(NamingListenerInvoker.java:33) ~[nacos-client-2.4.2.jar:na]
	at com.alibaba.nacos.client.selector.AbstractSelectorWrapper.notifyListener(AbstractSelectorWrapper.java:78) ~[nacos-client-2.4.2.jar:na]
	at com.alibaba.nacos.client.naming.event.InstancesChangeNotifier.onEvent(InstancesChangeNotifier.java:108) ~[nacos-client-2.4.2.jar:na]
	at com.alibaba.nacos.client.naming.event.InstancesChangeNotifier.onEvent(InstancesChangeNotifier.java:38) ~[nacos-client-2.4.2.jar:na]
	at com.alibaba.nacos.common.notify.DefaultPublisher.lambda$notifySubscriber$0(DefaultPublisher.java:199) ~[nacos-client-2.4.2.jar:na]
	at com.alibaba.nacos.common.notify.DefaultPublisher.notifySubscriber(DefaultPublisher.java:206) ~[nacos-client-2.4.2.jar:na]
	at com.alibaba.nacos.common.notify.DefaultPublisher.receiveEvent(DefaultPublisher.java:190) ~[nacos-client-2.4.2.jar:na]
	at com.alibaba.nacos.common.notify.DefaultPublisher.openEventHandler(DefaultPublisher.java:112) ~[nacos-client-2.4.2.jar:na]
	at com.alibaba.nacos.common.notify.DefaultPublisher.run(DefaultPublisher.java:95) ~[nacos-client-2.4.2.jar:na]

when the consumer call provider get erros below

2024-12-26T14:46:36.391+08:00  INFO 30700 --- [moki-cloud-provider] [lientWorker-2-9] o.a.d.r.t.netty4.NettyConnectionHandler  :  [DUBBO] The client has been closed and will not reconnect. , dubbo version: 3.3.2, current host: 10.100.101.111
2024-12-26T14:46:36.391+08:00  INFO 30700 --- [moki-cloud-provider] [lientWorker-2-9] o.a.d.r.t.netty4.NettyConnectionHandler  :  [DUBBO] The connection [id: 0xd6922b58, L:/10.100.101.111:9322 ! R:/10.100.101.111:8888] of 10.100.101.111:9322 -> 10.100.101.111:8888 is disconnected., dubbo version: 3.3.2, current host: 10.100.101.111
2024-12-26T14:46:37.403+08:00 ERROR 30700 --- [moki-cloud-provider] [-retry-thread-1] o.a.d.r.client.AbstractServiceDiscovery  :  [DUBBO] Failed to get metadata for revision after 3 retries, revision=329bbc445ca1e36ed36848cc9002b4ee, dubbo version: 3.3.2, current host: 10.100.101.111, error code: 1-39. This may be caused by , go to https://dubbo.apache.org/faq/1/39 to find instructions. 
2024-12-26T14:46:37.403+08:00 ERROR 30700 --- [moki-cloud-provider] [-retry-thread-1] .r.c.e.l.ServiceInstancesChangedListener :  [DUBBO] 1/1 revisions failed to get metadata from remote: 329bbc445ca1e36ed36848cc9002b4ee , dubbo version: 3.3.2, current host: 10.100.101.111, error code: 99-0. This may be caused by unknown error in registry module, go to https://dubbo.apache.org/faq/99/0 to find instructions. 
2024-12-26T14:46:37.403+08:00 ERROR 30700 --- [moki-cloud-provider] [-retry-thread-1] .r.c.e.l.ServiceInstancesChangedListener :  [DUBBO] Address refresh failed because of Metadata Server failure, wait for retry or new address refresh event., dubbo version: 3.3.2, current host: 10.100.101.111, error code: 1-17. This may be caused by metadata Server failure, go to https://dubbo.apache.org/faq/1/17 to find instructions. 
2024-12-26T14:46:37.403+08:00  WARN 30700 --- [moki-cloud-provider] [-retry-thread-1] .r.c.e.l.ServiceInstancesChangedListener :  [DUBBO] Address refresh try task submitted, dubbo version: 3.3.2, current host: 10.100.101.111, error code: 99-0. This may be caused by unknown error in registry module, go to https://dubbo.apache.org/faq/99/0 to find instructions. 
org.apache.dubbo.rpc.RpcException: No provider available from registry RegistryDirectory(registry: 127.0.0.1:8848)-Directory(invokers: 0[], validInvokers: 0[], invokersToReconnect: 0[]) for service com.nct.cloud.rpc.ProviderRpc on consumer 10.100.101.111 use dubbo version 3.3.2, please check status of providers(disabled, not registered or in blocklist).
	at org.apache.dubbo.registry.integration.DynamicDirectory.doList(DynamicDirectory.java:204)
	at org.apache.dubbo.rpc.cluster.directory.AbstractDirectory.list(AbstractDirectory.java:232)
	at org.apache.dubbo.rpc.cluster.support.AbstractClusterInvoker.list(AbstractClusterInvoker.java:452)
	at org.apache.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:355)
	at org.apache.dubbo.rpc.cluster.router.RouterSnapshotFilter.invoke(RouterSnapshotFilter.java:46)
	at org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$CopyOfFilterChainNode.invoke(FilterChainBuilder.java:349)
	at org.apache.dubbo.monitor.support.MonitorFilter.invoke(MonitorFilter.java:109)
	at org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$CopyOfFilterChainNode.invoke(FilterChainBuilder.java:349)
	at org.apache.dubbo.rpc.cluster.filter.support.MetricsClusterFilter.invoke(MetricsClusterFilter.java:57)
	at org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$CopyOfFilterChainNode.invoke(FilterChainBuilder.java:349)
	at org.apache.dubbo.rpc.protocol.dubbo.filter.FutureFilter.invoke(FutureFilter.java:53)
	at org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$CopyOfFilterChainNode.invoke(FilterChainBuilder.java:349)
	at org.apache.dubbo.spring.security.filter.ContextHolderParametersSelectedTransferFilter.invoke(ContextHolderParametersSelectedTransferFilter.java:40)
	at org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$CopyOfFilterChainNode.invoke(FilterChainBuilder.java:349)
	at org.apache.dubbo.metrics.filter.MetricsFilter.invoke(MetricsFilter.java:86)
	at org.apache.dubbo.rpc.cluster.filter.support.MetricsConsumerFilter.invoke(MetricsConsumerFilter.java:38)
	at org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$CopyOfFilterChainNode.invoke(FilterChainBuilder.java:349)
	at org.apache.dubbo.rpc.cluster.filter.support.ConsumerClassLoaderFilter.invoke(ConsumerClassLoaderFilter.java:40)
	at org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$CopyOfFilterChainNode.invoke(FilterChainBuilder.java:349)
	at org.apache.dubbo.tracing.filter.ObservationSenderFilter.invoke(ObservationSenderFilter.java:60)
	at org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$CopyOfFilterChainNode.invoke(FilterChainBuilder.java:349)
	at org.apache.dubbo.rpc.cluster.filter.support.ConsumerContextFilter.invoke(ConsumerContextFilter.java:119)
	at org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$CopyOfFilterChainNode.invoke(FilterChainBuilder.java:349)
	at org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$CallbackRegistrationInvoker.invoke(FilterChainBuilder.java:197)
	at org.apache.dubbo.rpc.cluster.support.wrapper.AbstractCluster$ClusterFilterInvoker.invoke(AbstractCluster.java:101)
	at org.apache.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:107)
	at org.apache.dubbo.rpc.cluster.support.wrapper.ScopeClusterInvoker.invoke(ScopeClusterInvoker.java:171)
	at org.apache.dubbo.registry.client.migration.MigrationInvoker.invoke(MigrationInvoker.java:294)
	at org.apache.dubbo.rpc.proxy.InvocationUtil.invoke(InvocationUtil.java:64)
	at org.apache.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:81)
	at com.nct.cloud.rpc.ProviderRpcDubboProxy0.sayHi(ProviderRpcDubboProxy0.java)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.apache.dubbo.config.spring.util.LazyTargetInvocationHandler.invoke(LazyTargetInvocationHandler.java:54)
	at com.nct.cloud.rpc.ProviderRpcDubboProxy0.sayHi(ProviderRpcDubboProxy0.java)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:359)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:196)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:184)
	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:727)
	at com.nct.cloud.rpc.ProviderRpcDubboProxy0$$SpringCGLIB$$0.sayHi(<generated>)
	at com.nct.cloud.controller.ConsumerController.sayHello(ConsumerController.java:19)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:255)
	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:188)
	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:118)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:986)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:891)
	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1088)
	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:978)
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1014)
	at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:903)
	at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:564)
	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:885)
	at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:658)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:195)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:164)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140)
	at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:164)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140)
	at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:164)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140)
	at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:91)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:164)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140)
	at org.apache.dubbo.rpc.protocol.tri.servlet.jakarta.TripleFilter.doFilter(TripleFilter.java:95)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:164)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140)
	at io.moki.core.log.base.filter.MkAccessLogFilter.doFilterInternal(MkAccessLogFilter.java:62)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:164)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140)
	at org.springframework.web.filter.ServerHttpObservationFilter.doFilterInternal(ServerHttpObservationFilter.java:114)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:164)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140)
	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:164)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140)
	at io.moki.core.base.filter.MkGlobalAccessFilter.doFilterInternal(MkGlobalAccessFilter.java:107)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:164)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:167)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:483)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:115)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344)
	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:397)
	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:905)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1741)
	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
	at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1190)
	at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63)
	at java.base/java.lang.Thread.run(Thread.java:1583)
2024-12-26T14:46:42.711+08:00 ERROR 30700 --- [io-18888-exec-1] [23cd24d7-cf34-458b-a2e0-7ac93b8091a6] error-logger                             : {"TId":"","appId":"moki-cloud-provider","env":"dev","errorMsg":"org.apache.dubbo.rpc.RpcException: No provider available from registry RegistryDirectory(registry: 127.0.0.1:8848)-Directory(invokers: 0[], validInvokers: 0[], invokersToReconnect: 0[]) for service com.nct.cloud.rpc.ProviderRpc on consumer 10.100.101.111 use dubbo version 3.3.2, please check status of providers(disabled, not registered or in blocklist).","errs":[{"cause":"org.apache.dubbo.rpc.RpcException: No provider available from registry RegistryDirectory(registry: 127.0.0.1:8848)-Directory(invokers: 0[], validInvokers: 0[], invokersToReconnect: 0[]) for service com.nct.cloud.rpc.ProviderRpc on consumer 10.100.101.111 use dubbo version 3.3.2, please check status of providers(disabled, not registered or in blocklist).","elements":["org.apache.dubbo.registry.integration.DynamicDirectory.doList(DynamicDirectory.java:204)","org.apache.dubbo.rpc.cluster.directory.AbstractDirectory.list(AbstractDirectory.java:232)","org.apache.dubbo.rpc.cluster.support.AbstractClusterInvoker.list(AbstractClusterInvoker.java:452)","org.apache.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:355)","org.apache.dubbo.rpc.cluster.router.RouterSnapshotFilter.invoke(RouterSnapshotFilter.java:46)","org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$CopyOfFilterChainNode.invoke(FilterChainBuilder.java:349)","org.apache.dubbo.monitor.support.MonitorFilter.invoke(MonitorFilter.java:109)","org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$CopyOfFilterChainNode.invoke(FilterChainBuilder.java:349)","org.apache.dubbo.rpc.cluster.filter.support.MetricsClusterFilter.invoke(MetricsClusterFilter.java:57)","org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$CopyOfFilterChainNode.invoke(FilterChainBuilder.java:349)","org.apache.dubbo.rpc.protocol.dubbo.filter.FutureFilter.invoke(FutureFilter.java:53)","org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$CopyOfFilterChainNode.invoke(FilterChainBuilder.java:349)","org.apache.dubbo.spring.security.filter.ContextHolderParametersSelectedTransferFilter.invoke(ContextHolderParametersSelectedTransferFilter.java:40)","org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$CopyOfFilterChainNode.invoke(FilterChainBuilder.java:349)","org.apache.dubbo.metrics.filter.MetricsFilter.invoke(MetricsFilter.java:86)","org.apache.dubbo.rpc.cluster.filter.support.MetricsConsumerFilter.invoke(MetricsConsumerFilter.java:38)","org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$CopyOfFilterChainNode.invoke(FilterChainBuilder.java:349)","org.apache.dubbo.rpc.cluster.filter.support.ConsumerClassLoaderFilter.invoke(ConsumerClassLoaderFilter.java:40)","org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$CopyOfFilterChainNode.invoke(FilterChainBuilder.java:349)","org.apache.dubbo.tracing.filter.ObservationSenderFilter.invoke(ObservationSenderFilter.java:60)","org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$CopyOfFilterChainNode.invoke(FilterChainBuilder.java:349)","org.apache.dubbo.rpc.cluster.filter.support.ConsumerContextFilter.invoke(ConsumerContextFilter.java:119)","org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$CopyOfFilterChainNode.invoke(FilterChainBuilder.java:349)","org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$CallbackRegistrationInvoker.invoke(FilterChainBuilder.java:197)","org.apache.dubbo.rpc.cluster.support.wrapper.AbstractCluster$ClusterFilterInvoker.invoke(AbstractCluster.java:101)","org.apache.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:107)","org.apache.dubbo.rpc.cluster.support.wrapper.ScopeClusterInvoker.invoke(ScopeClusterInvoker.java:171)","org.apache.dubbo.registry.client.migration.MigrationInvoker.invoke(MigrationInvoker.java:294)","org.apache.dubbo.rpc.proxy.InvocationUtil.invoke(InvocationUtil.java:64)","org.apache.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:81)","com.nct.cloud.rpc.ProviderRpcDubboProxy0.sayHi(ProviderRpcDubboProxy0.java)","java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)","java.base/java.lang.reflect.Method.invoke(Method.java:580)","org.apache.dubbo.config.spring.util.LazyTargetInvocationHandler.invoke(LazyTargetInvocationHandler.java:54)","com.nct.cloud.rpc.ProviderRpcDubboProxy0.sayHi(ProviderRpcDubboProxy0.java)","java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)","java.base/java.lang.reflect.Method.invoke(Method.java:580)","org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:359)","org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:196)","org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)","org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)","org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:184)","org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:727)","com.nct.cloud.rpc.ProviderRpcDubboProxy0$$SpringCGLIB$$0.sayHi(<generated>)","com.nct.cloud.controller.ConsumerController.sayHello(ConsumerController.java:19)","java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)","java.base/java.lang.reflect.Method.invoke(Method.java:580)","org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:255)","org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:188)","org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:118)","org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:986)","org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:891)","org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)","org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1088)","org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:978)","org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1014)","org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:903)","jakarta.servlet.http.HttpServlet.service(HttpServlet.java:564)","org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:885)","jakarta.servlet.http.HttpServlet.service(HttpServlet.java:658)","org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:195)","org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140)","org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)","org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:164)","org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140)","org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)","org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116)","org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:164)","org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140)","org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)","org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116)","org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:164)","org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140)","org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:91)","org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116)","org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:164)","org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140)","org.apache.dubbo.rpc.protocol.tri.servlet.jakarta.TripleFilter.doFilter(TripleFilter.java:95)","org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:164)","org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140)","io.moki.core.log.base.filter.MkAccessLogFilter.doFilterInternal(MkAccessLogFilter.java:62)","org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116)","org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:164)","org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140)","org.springframework.web.filter.ServerHttpObservationFilter.doFilterInternal(ServerHttpObservationFilter.java:114)","org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116)","org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:164)","org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140)","org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)","org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116)","org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:164)","org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140)","io.moki.core.base.filter.MkGlobalAccessFilter.doFilterInternal(MkGlobalAccessFilter.java:107)","org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116)","org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:164)","org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140)","org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:167)","org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90)","org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:483)","org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:115)","org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93)","org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)","org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344)","org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:397)","org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)","org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:905)","org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1741)","org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)","org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1190)","org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)","org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63)","java.base/java.lang.Thread.run(Thread.java:1583)"]}],"fullUrl":"http://localhost:18888/api/v1/cloud/hi?name=luger","hostname":"mta-office","logId":"23cd24d7-cf34-458b-a2e0-7ac93b8091a6","logType":"error","msg":"org.apache.dubbo.rpc.RpcException: No provider available from registry RegistryDirectory(registry: 127.0.0.1:8848)-Directory(invokers: 0[], validInvokers: 0[], invokersToReconnect: 0[]) for service com.nct.cloud.rpc.ProviderRpc on consumer 10.100.101.111 use dubbo version 3.3.2, please check status of providers(disabled, not registered or in blocklist).","timestamp":1735195602690,"url":"http://localhost:18888/api/v1/cloud/hi"}

What you expected to happen

I want use the same port both for spring boot http and dubbo triple protocl

Anything else

No response

Are you willing to submit a pull request to fix on your own?

  • Yes I am willing to submit a pull request on my own!

Code of Conduct

@luger1990 luger1990 added component/need-triage Need maintainers to triage type/need-triage Need maintainers to triage labels Dec 26, 2024
@AlbumenJ
Copy link
Member

@oxsean PTAL

@oxsean oxsean self-assigned this Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/need-triage Need maintainers to triage type/need-triage Need maintainers to triage
Projects
Status: Todo
Development

No branches or pull requests

3 participants