You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "imgoby (via GitHub)" <gi...@apache.org> on 2023/02/28 07:39:01 UTC
[GitHub] [dubbo] imgoby opened a new issue, #11684: How to use dubbo+consult?Exception is found: Value is too long (limit: 512 characters)')
imgoby opened a new issue, #11684:
URL: https://github.com/apache/dubbo/issues/11684
<dubbo.version>2.7.21</dubbo.version>
<spring.version>4.3.29.RELEASE</spring.version>
java `
public interface DemoService {
String sayHello(String name);
String sayHello2(String name);
String sayHello3(String name);
String sayHello4(String name);
String sayHello5(String name);
String sayHello6(String name);
String sayHello7(String name);
String sayHello8(String name);
String sayHello9(String name);
String sayHello10(String name);
String sayHello11(String name);
String sayHello12(String name);
String sayHello13(String name);
String sayHello14(String name);
String sayHello15(String name);
String sayHello16(String name);
String sayHello17(String name);
String sayHello18(String name);
String sayHello19(String name);
String sayHello20(String name);
String sayHello211111111111111111111111111111111111111111111111111111111111111111(String name);
}`
Exception:
[28/02/23 03:33:58:058 CST] main INFO consul.ConsulRegistry: [DUBBO] Register: dubbo://192.168.0.111:20880/org.apache.dubbo.samples.consul.api.DemoService?anyhost=true&application=consul-provider-demo&default=true&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=org.apache.dubbo.samples.consul.api.DemoService&metadata-type=remote&methods=sayHello211111111111111111111111111111111111111111111111111111111111111111,sayHello,sayHello2,sayHello3,sayHello4,sayHello5,sayHello6,sayHello12,sayHello7,sayHello13,sayHello8,sayHello9,sayHello14,sayHello15,sayHello16,sayHello17,sayHello18,sayHello19,sayHello20,sayHello10,sayHello11&pid=18028&release=2.7.21&service.name=ServiceBean:/org.apache.dubbo.samples.consul.api.DemoService&side=provider×tamp=1677569638060&token=58295a8c-aa53-4cdb-b8a6-f9802bd72fb3, dubbo version: 2.7.21, current host: 192.168.0.111
Exception in thread "main" java.lang.IllegalStateException: Failed to register dubbo://192.168.0.111:20880/org.apache.dubbo.samples.consul.api.DemoService?anyhost=true&application=consul-provider-demo&default=true&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=org.apache.dubbo.samples.consul.api.DemoService&metadata-type=remote&methods=sayHello211111111111111111111111111111111111111111111111111111111111111111,sayHello,sayHello2,sayHello3,sayHello4,sayHello5,sayHello6,sayHello12,sayHello7,sayHello13,sayHello8,sayHello9,sayHello14,sayHello15,sayHello16,sayHello17,sayHello18,sayHello19,sayHello20,sayHello10,sayHello11&pid=18028&release=2.7.21&service.name=ServiceBean:/org.apache.dubbo.samples.consul.api.DemoService&side=provider×tamp=1677569638060&token=58295a8c-aa53-4cdb-b8a6-f9802bd72fb3 to registry 192.168.0.211:8500, cause: OperationException(statusCode=400, statusMessage='Bad Request', statusContent='Invalid Service Meta: Couldn't load metadata pair ('url
', 'dubbo://192.168.0.111:20880/org.apache.dubbo.samples.consul.api.DemoService?anyhost=true&application=consul-provider-demo&default=true&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=org.apache.dubbo.samples.consul.api.DemoService&metadata-type=remote&methods=sayHello211111111111111111111111111111111111111111111111111111111111111111,sayHello,sayHello2,sayHello3,sayHello4,sayHello5,sayHello6,sayHello12,sayHello7,sayHello13,sayHello8,sayHello9,sayHello14,sayHello15,sayHello16,sayHello17,sayHello18,sayHello19,sayHello20,sayHello10,sayHello11&pid=18028&release=2.7.21&service.name=ServiceBean:/org.apache.dubbo.samples.consul.api.DemoService&side=provider×tamp=1677569638060&token=58295a8c-aa53-4cdb-b8a6-f9802bd72fb3'): Value is too long (limit: 512 characters)')
at org.apache.dubbo.registry.support.FailbackRegistry.register(FailbackRegistry.java:219)
at org.apache.dubbo.registry.consul.ConsulRegistry.register(ConsulRegistry.java:114)
at org.apache.dubbo.registry.ListenerRegistryWrapper.register(ListenerRegistryWrapper.java:57)
at org.apache.dubbo.registry.integration.RegistryProtocol.export(RegistryProtocol.java:222)
at org.apache.dubbo.rpc.protocol.ProtocolListenerWrapper.export(ProtocolListenerWrapper.java:62)
at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper.export(ProtocolFilterWrapper.java:73)
at org.apache.dubbo.qos.protocol.QosProtocolWrapper.export(QosProtocolWrapper.java:64)
at org.apache.dubbo.rpc.Protocol$Adaptive.export(Protocol$Adaptive.java)
at org.apache.dubbo.config.ServiceConfig.doExportUrlsFor1Protocol(ServiceConfig.java:518)
at org.apache.dubbo.config.ServiceConfig.doExportUrls(ServiceConfig.java:339)
at org.apache.dubbo.config.ServiceConfig.doExport(ServiceConfig.java:314)
at org.apache.dubbo.config.ServiceConfig.export(ServiceConfig.java:238)
at org.apache.dubbo.config.bootstrap.DubboBootstrap.exportService(DubboBootstrap.java:1100)
at org.apache.dubbo.config.bootstrap.DubboBootstrap.lambda$exportServices$14(DubboBootstrap.java:1087)
at java.base/java.util.HashMap$Values.forEach(HashMap.java:1065)
at org.apache.dubbo.config.bootstrap.DubboBootstrap.exportServices(DubboBootstrap.java:1071)
at org.apache.dubbo.config.bootstrap.DubboBootstrap.start(DubboBootstrap.java:887)
at org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener.onContextRefreshedEvent(DubboBootstrapApplicationListener.java:70)
at org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener.onApplicationContextEvent(DubboBootstrapApplicationListener.java:63)
at com.alibaba.spring.context.OnceApplicationContextEventListener.onApplicationEvent(OnceApplicationContextEventListener.java:52)
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:404)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:361)
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:898)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:554)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:144)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:85)
at org.apache.dubbo.samples.consul.ConsulProvider.main(ConsulProvider.java:27)
Caused by: OperationException{statusCode=400, statusMessage='Bad Request', statusContent='Invalid Service Meta: Couldn't load metadata pair ('url', 'dubbo://192.168.0.111:20880/org.apache.dubbo.samples.consul.api.DemoService?anyhost=true&application=consul-provider-demo&default=true&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=org.apache.dubbo.samples.consul.api.DemoService&metadata-type=remote&methods=sayHello211111111111111111111111111111111111111111111111111111111111111111,sayHello,sayHello2,sayHello3,sayHello4,sayHello5,sayHello6,sayHello12,sayHello7,sayHello13,sayHello8,sayHello9,sayHello14,sayHello15,sayHello16,sayHello17,sayHello18,sayHello19,sayHello20,sayHello10,sayHello11&pid=18028&release=2.7.21&service.name=ServiceBean:/org.apache.dubbo.samples.consul.api.DemoService&side=provider×tamp=1677569638060&token=58295a8c-aa53-4cdb-b8a6-f9802bd72fb3'): Value is too long (limit: 512 characters)'}
at com.ecwid.consul.v1.agent.AgentConsulClient.agentServiceRegister(AgentConsulClient.java:278)
at com.ecwid.consul.v1.agent.AgentConsulClient.agentServiceRegister(AgentConsulClient.java:265)
at com.ecwid.consul.v1.ConsulClient.agentServiceRegister(ConsulClient.java:305)
at org.apache.dubbo.registry.consul.ConsulRegistry.doRegister(ConsulRegistry.java:120)
at org.apache.dubbo.registry.support.FailbackRegistry.register(FailbackRegistry.java:206)
... 29 more
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
Re: [I] How to use dubbo+consult?Exception is found: Value is too long (limit: 512 characters)') [dubbo]
Posted by "imgoby (via GitHub)" <gi...@apache.org>.
imgoby closed issue #11684: How to use dubbo+consult?Exception is found: Value is too long (limit: 512 characters)')
URL: https://github.com/apache/dubbo/issues/11684
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
[GitHub] [dubbo] ShenFeng312 commented on issue #11684: How to use dubbo+consult?Exception is found: Value is too long (limit: 512 characters)')
Posted by "ShenFeng312 (via GitHub)" <gi...@apache.org>.
ShenFeng312 commented on issue #11684:
URL: https://github.com/apache/dubbo/issues/11684#issuecomment-1449495298
this error is thorw by consul server
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
Re: [I] How to use dubbo+consult?Exception is found: Value is too long (limit: 512 characters)') [dubbo]
Posted by "imgoby (via GitHub)" <gi...@apache.org>.
imgoby commented on issue #11684:
URL: https://github.com/apache/dubbo/issues/11684#issuecomment-1837925749
refer my project to solve:
https://github.com/imgoby/spring-cloud-alibaba-graalvm/tree/main/spring-cloud-alibaba-starter-dubbo
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
[GitHub] [dubbo] imgoby commented on issue #11684: How to use dubbo+consult?Exception is found: Value is too long (limit: 512 characters)')
Posted by "imgoby (via GitHub)" <gi...@apache.org>.
imgoby commented on issue #11684:
URL: https://github.com/apache/dubbo/issues/11684#issuecomment-1447720455
In my business application. set dubbo.registry.simplified=true could not resolve it. because the package name or method number is so much. is there some idea to resolve?
upgrad to new version?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org