You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tubemq.apache.org by "yupili (Jira)" <ji...@apache.org> on 2020/12/14 07:35:00 UTC
[jira] [Created] (TUBEMQ-450) TubeClientException: Generate
producer id failed
yupili created TUBEMQ-450:
-----------------------------
Summary: TubeClientException: Generate producer id failed
Key: TUBEMQ-450
URL: https://issues.apache.org/jira/browse/TUBEMQ-450
Project: Apache TubeMQ
Issue Type: Bug
Components: Client
Reporter: yupili
tube consumer client started failed and got this error!
{code:java}
com.tencent.tubemq.client.exception.TubeClientException: Generate producer id failed!
at com.tencent.tubemq.client.producer.ProducerManager.<init>(ProducerManager.java:115)
at com.tencent.tubemq.client.factory.TubeBaseSessionFactory.<init>(TubeBaseSessionFactory.java:72)
at com.tencent.tubemq.client.factory.TubeSingleSessionFactory.<init>(TubeSingleSessionFactory.java:50)
at gdt.sdk.apphome.api.tube.UpdatePkgTubeConsumer.doSubscribe(UpdatePkgTubeConsumer.java:54)
at gdt.sdk.apphome.api.ApiApplicationListener.onApplicationEvent(ApiApplicationListener.java:36)
at gdt.sdk.apphome.api.ApiApplicationListener.onApplicationEvent(ApiApplicationListener.java:23)
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.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:758)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:750)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1237)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226)
at gdt.sdk.apphome.api.ApiApplication.main(ApiApplication.java:13)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:109)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:88)
Caused by: java.lang.IllegalArgumentException: fe80:0:0:0:5054:ff:fed8:c3af%eth1 is invalid IP
at com.tencent.tubemq.corebase.utils.AddressUtils.ipToInt(AddressUtils.java:156)
at com.tencent.tubemq.client.producer.ProducerManager.<init>(ProducerManager.java:113)
... 28 common frames omitted
{code}
It looks like tube read ipv6 instead of ipv4 on eth1, but tube not supports ipv6!
java-sdk version:
com.tencent.tubemq:tubemq-client:3.8.7
com.tencent.tdbank:tdbank-commons:1.3.4
--
This message was sent by Atlassian Jira
(v8.3.4#803005)