[
https://issues.apache.org/jira/browse/TUBEMQ-450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17249586#comment-17249586
]
Guocheng Zhang commented on TUBEMQ-450:
---------------------------------------
The client version used is earlier than version 0.3.0 in the TubeMQ migration
community, which is initialized by setting the local IP address. There is a
risk of using the IPV6 address directly, because the node's id in TubeMQ is
built based on IPV4.
So I intend to solve this problem by restricting the use of IP V6 address
first, and upgrade this implementation in the subsequent new version to be
compatible with IP V4 and V6.
> 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
> Assignee: Guocheng Zhang
> Priority: Major
>
> 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: xxxxxxxxxxxxxx%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)