Uploaded image for project: 'Apache InLong'
  1. Apache InLong
  2. INLONG-450

TubeClientException: Generate producer id failed

    XMLWordPrintableJSON

Details

    Description

      tube consumer client started failed and got this error!

       

      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
      

      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

       

      Attachments

        Activity

          People

            gosonzhang Guocheng Zhang
            yupili yupili
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 40m
                40m