karsonto opened a new issue, #4654:
URL: https://github.com/apache/eventmesh/issues/4654

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/eventmesh/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Environment
   
   Mac
   
   ### EventMesh version
   
   master
   
   ### What happened
   
   I want to try running the example code, but there was an error during 
execution. The specific error occurred in the code for obtaining the IP address.
   
   ### How to reproduce
   
   Use the mac environment to run the example code
   
   ### Debug logs
   
   2023-12-15 16:47:48,511 ERROR [main] 
SpringApplication(SpringApplication.java:821) - Application run failed
   org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
creating bean with name 'subController': Unsatisfied dependency expressed 
through field 'subService'; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'subService' defined in file 
[/Users/karson/eventmesh/eventmesh-examples/build/classes/java/main/org/apache/eventmesh/http/demo/sub/service/SubService.class]:
 Invocation of init method failed; nested exception is 
org.apache.eventmesh.common.exception.EventMeshException: Subscribe topic 
error, target:http://127.0.0.1:10105
        at 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:660)
 ~[spring-beans-5.3.26.jar:5.3.26]
        at 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:640)
 ~[spring-beans-5.3.26.jar:5.3.26]
        at 
org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119)
 ~[spring-beans-5.3.26.jar:5.3.26]
        at 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399)
 ~[spring-beans-5.3.26.jar:5.3.26]
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1431)
 ~[spring-beans-5.3.26.jar:5.3.26]
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:619)
 ~[spring-beans-5.3.26.jar:5.3.26]
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
 ~[spring-beans-5.3.26.jar:5.3.26]
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
 ~[spring-beans-5.3.26.jar:5.3.26]
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
 ~[spring-beans-5.3.26.jar:5.3.26]
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
 ~[spring-beans-5.3.26.jar:5.3.26]
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
 ~[spring-beans-5.3.26.jar:5.3.26]
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955)
 ~[spring-beans-5.3.26.jar:5.3.26]
        at 
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:920)
 ~[spring-context-5.3.26.jar:5.3.26]
        at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
 ~[spring-context-5.3.26.jar:5.3.26]
        at 
org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:147)
 ~[spring-boot-2.7.10.jar:2.7.10]
        at 
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:731) 
~[spring-boot-2.7.10.jar:2.7.10]
        at 
org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:408)
 ~[spring-boot-2.7.10.jar:2.7.10]
        at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:307) 
~[spring-boot-2.7.10.jar:2.7.10]
        at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:1303) 
~[spring-boot-2.7.10.jar:2.7.10]
        at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:1292) 
~[spring-boot-2.7.10.jar:2.7.10]
        at 
org.apache.eventmesh.http.demo.sub.SpringBootDemoApplication.main(SpringBootDemoApplication.java:30)
 ~[main/:?]
   Caused by: org.springframework.beans.factory.BeanCreationException: Error 
creating bean with name 'subService' defined in file 
[/Users/karson/eventmesh/eventmesh-examples/build/classes/java/main/org/apache/eventmesh/http/demo/sub/service/SubService.class]:
 Invocation of init method failed; nested exception is 
org.apache.eventmesh.common.exception.EventMeshException: Subscribe topic 
error, target:http://127.0.0.1:10105
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1804)
 ~[spring-beans-5.3.26.jar:5.3.26]
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620)
 ~[spring-beans-5.3.26.jar:5.3.26]
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
 ~[spring-beans-5.3.26.jar:5.3.26]
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
 ~[spring-beans-5.3.26.jar:5.3.26]
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
 ~[spring-beans-5.3.26.jar:5.3.26]
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
 ~[spring-beans-5.3.26.jar:5.3.26]
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
 ~[spring-beans-5.3.26.jar:5.3.26]
        at 
org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
 ~[spring-beans-5.3.26.jar:5.3.26]
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1391)
 ~[spring-beans-5.3.26.jar:5.3.26]
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1311)
 ~[spring-beans-5.3.26.jar:5.3.26]
        at 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:657)
 ~[spring-beans-5.3.26.jar:5.3.26]
        ... 20 more
   Caused by: org.apache.eventmesh.common.exception.EventMeshException: 
Subscribe topic error, target:http://127.0.0.1:10105
        at 
org.apache.eventmesh.client.http.consumer.EventMeshHttpConsumer.subscribe(EventMeshHttpConsumer.java:105)
 ~[main/:?]
        at 
org.apache.eventmesh.http.demo.sub.service.SubService.afterPropertiesSet(SubService.java:95)
 ~[main/:?]
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1863)
 ~[spring-beans-5.3.26.jar:5.3.26]
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800)
 ~[spring-beans-5.3.26.jar:5.3.26]
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620)
 ~[spring-beans-5.3.26.jar:5.3.26]
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
 ~[spring-beans-5.3.26.jar:5.3.26]
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
 ~[spring-beans-5.3.26.jar:5.3.26]
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
 ~[spring-beans-5.3.26.jar:5.3.26]
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
 ~[spring-beans-5.3.26.jar:5.3.26]
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
 ~[spring-beans-5.3.26.jar:5.3.26]
        at 
org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
 ~[spring-beans-5.3.26.jar:5.3.26]
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1391)
 ~[spring-beans-5.3.26.jar:5.3.26]
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1311)
 ~[spring-beans-5.3.26.jar:5.3.26]
        at 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:657)
 ~[spring-beans-5.3.26.jar:5.3.26]
        ... 20 more
   Caused by: org.apache.eventmesh.common.exception.EventMeshException: 
errorCode: 7, errorMessage: eventMesh protocol[body] err,  invalid URL: 
http://[fe80:0:0:0:aede:48ff:fe00:1122%en5]:8088/sub/test
        at 
org.apache.eventmesh.client.http.consumer.EventMeshHttpConsumer.subscribe(EventMeshHttpConsumer.java:101)
 ~[main/:?]
        at 
org.apache.eventmesh.http.demo.sub.service.SubService.afterPropertiesSet(SubService.java:95)
 ~[main/:?]
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1863)
 ~[spring-beans-5.3.26.jar:5.3.26]
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800)
 ~[spring-beans-5.3.26.jar:5.3.26]
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620)
 ~[spring-beans-5.3.26.jar:5.3.26]
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
 ~[spring-beans-5.3.26.jar:5.3.26]
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
 ~[spring-beans-5.3.26.jar:5.3.26]
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
 ~[spring-beans-5.3.26.jar:5.3.26]
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
 ~[spring-beans-5.3.26.jar:5.3.26]
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
 ~[spring-beans-5.3.26.jar:5.3.26]
        at 
org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
 ~[spring-beans-5.3.26.jar:5.3.26]
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1391)
 ~[spring-beans-5.3.26.jar:5.3.26]
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1311)
 ~[spring-beans-5.3.26.jar:5.3.26]
        at 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:657)
 ~[spring-beans-5.3.26.jar:5.3.26]
        ... 20 more
   2023-12-15 16:47:48,532 SpringApplicationShutdownHook DEBUG Shutting down 
OutputStreamManager SYSTEM_OUT.false.false
   2023-12-15 16:47:48,532 SpringApplicationShutdownHook DEBUG OutputStream 
closed
   2023-12-15 16:47:48,532 SpringApplicationShutdownHook DEBUG Shut down 
OutputStreamManager SYSTEM_OUT.false.false, all resources released: true
   2023-12-15 16:47:48,533 SpringApplicationShutdownHook DEBUG Appender console 
stopped with status true
   2023-12-15 16:47:48,533 SpringApplicationShutdownHook DEBUG Log4j2 
ConfigurationScheduler shutting down threads in 
java.util.concurrent.ScheduledThreadPoolExecutor@711bd68b[Running, pool size = 
1, active threads = 0, queued tasks = 1, completed tasks = 1]
   2023-12-15 16:47:48,533 SpringApplicationShutdownHook DEBUG Stopped 
XmlConfiguration[location=/Users/karson/eventmesh/eventmesh-examples/build/resources/main/log4j2.xml]
 OK
   2023-12-15 16:47:48,533 SpringApplicationShutdownHook DEBUG Stopped 
LoggerContext[name=18b4aac2, 
org.apache.logging.log4j.core.LoggerContext@1a7288a3] with status true
   Disconnected from the target VM, address: '127.0.0.1:64103', transport: 
'socket'
   
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct) *


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to