mayunSaicmotor commented on issue #10716:
URL: https://github.com/apache/apisix/issues/10716#issuecomment-1869632569
I tried to remove the socket.file from the spring boot application.yml and
restart apisix. it still failed with another error.
```
socket:
file: /tmp/runner.sock
```
```
istry://localhost:9090/org.apache.dubbo.registry.RegistryService?application=dubbo-plugin&check=false&dubbo=2.0.2&generic=true&group=parking&init=false&interface=com.rrht.common.service.sys.SysUserService&metadata-type=remote&pid=88&qos.enable=false®ister.ip=172.28.0.8®istry=spring-cloud&release=2.7.8&side=consumer&sticky=false&timeout=5000×tamp=1703606129637&version=1.2,
dubbo version: 2.7.8, current host: 172.28.0.8
, context: ngx.timer
2023/12/26 15:55:30 [warn] 53#53: *81 [lua] init.lua:961: 2023-12-26
15:55:30.882 INFO 88 --- [Report-thread-1]
.d.m.r.s.ConfigCenterBasedMetadataReport : [DUBBO] store consumer metadata.
Identifier :
org.apache.dubbo.metadata.report.identifier.MetadataIdentifier@79a4ba5a;
definition: {init=false, side=consumer, release=2.7.8, dubbo=2.0.2,
check=false, interface=com.rrht.common.service.sys.SysUserService, version=1.2,
qos.enable=false, timeout=5000, generic=true, metadata-type=remote,
application=dubbo-plugin, sticky=false}, dubbo version: 2.7.8, current host:
172.28.0.8
, context: ngx.timer
2023/12/26 15:55:30 [warn] 53#53: *81 [lua] init.lua:961: 2023-12-26
15:55:30.912 WARN 88 --- [ main]
ConfigServletWebServerApplicationContext : Exception encountered during context
initialization - cancelling refresh attempt:
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'applicationRunner': Injection of autowired dependencies failed;
nested exception is java.lang.IllegalArgumentException: Could not resolve
placeholder 'socket.file' in value "${socket.file}"
, context: ngx.timer
2023/12/26 15:55:30 [warn] 53#53: *81 [lua] init.lua:961: 2023-12-26
15:55:30.912 INFO 88 --- [ main]
c.a.c.d.s.DubboGenericServiceFactory : The Dubbo GenericService
ReferenceBeans are destroying...
, context: ngx.timer
2023/12/26 15:55:30 [warn] 53#53: *81 [lua] init.lua:961: 2023-12-26
15:55:30.912 INFO 88 --- [ main]
c.a.c.d.s.DubboGenericServiceFactory : Destroyed the ReferenceBean :
<dubbo:reference />
, context: ngx.timer
2023/12/26 15:55:30 [warn] 53#53: *81 [lua] init.lua:961: 2023-12-26
15:55:30.913 INFO 88 --- [ main]
c.a.c.d.s.DubboGenericServiceFactory : Destroyed the ReferenceBean :
<dubbo:reference />
, context: ngx.timer
2023/12/26 15:55:30 [warn] 53#53: *81 [lua] init.lua:961: 2023-12-26
15:55:30.914 INFO 88 --- [ main]
f.a.ReferenceAnnotationBeanPostProcessor :
org.apache.dubbo.common.bytecode.proxy2@2cec704c was destroying!
, context: ngx.timer
2023/12/26 15:55:30 [warn] 53#53: *81 [lua] init.lua:961: 2023-12-26
15:55:30.914 INFO 88 --- [ main]
f.a.ReferenceAnnotationBeanPostProcessor :
org.apache.dubbo.common.bytecode.proxy2@2cec704c was destroying!
, context: ngx.timer
2023/12/26 15:55:30 [warn] 53#53: *81 [lua] init.lua:961: 2023-12-26
15:55:30.914 INFO 88 --- [ main]
f.a.ReferenceAnnotationBeanPostProcessor : class
org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor
was destroying!
, context: ngx.timer
2023/12/26 15:55:30 [warn] 53#53: *81 [lua] init.lua:961: 2023-12-26
15:55:30.915 INFO 88 --- [ main]
o.apache.catalina.core.StandardService : Stopping service [Tomcat]
, context: ngx.timer
2023/12/26 15:55:30 [warn] 53#53: *81 [lua] init.lua:961: 2023-12-26
15:55:30.994 INFO 88 --- [ main]
ConditionEvaluationReportLoggingListener :
Error starting ApplicationContext. To display the conditions report re-run
your application with 'debug' enabled.
, context: ngx.timer
2023/12/26 15:55:31 [warn] 53#53: *81 [lua] init.lua:961: 2023-12-26
15:55:31.000 ERROR 88 --- [ main] o.s.boot.SpringApplication
: Application run failed
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'applicationRunner': Injection of autowired dependencies failed;
nested exception is java.lang.IllegalArgumentException: Could not resolve
placeholder 'socket.file' in value "${socket.file}"
at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:405)
~[spring-beans-5.2.9.RELEASE.jar!/:5.2.9.RELEASE]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1420)
~[spring-beans-5.2.9.RELEASE.jar!/:5.2.9.RELEASE]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:593)
~[spring-beans-5.2.9.RELEASE.jar!/:5.2.9.RELEASE]
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516)
~[spring-beans-5.2.9.RELEASE.jar!/:5.2.9.RELEASE]
at
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324)
~[spring-beans-5.2.9.RELEASE.jar!/:5.2.9.RELEASE]
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
~[spring-beans-5.2.9.RELEASE.jar!/:5.2.9.RELEASE]
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322)
~[spring-beans-5.2.9.RELEASE.jar!/:5.2.9.RELEASE]
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
~[spring-beans-5.2.9.RELEASE.jar!/:5.2.9.RELEASE]
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:897)
~[spring-beans-5.2.9.RELEASE.jar!/:5.2.9.RELEASE]
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:879)
~[spring-context-5.2.9.RELEASE.jar!/:5.2.9.RELEASE]
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:551)
~[spring-context-5.2.9.RELEASE.jar!/:5.2.9.RELEASE]
at
org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143)
~[spring-boot-2.3.4.RELEASE.jar!/:2.3.4.RELEASE]
at
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:758)
~[spring-boot-2.3.4.RELEASE.jar!/:2.3.4.RELEASE]
at
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:750)
~[spring-boot-2.3.4.RELEASE.jar!/:2.3.4.RELEASE]
at
org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
~[spring-boot-2.3.4.RELEASE.jar!/:2.3.4.RELEASE]
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
~[spring-boot-2.3.4.RELEASE.jar!/:2.3.4.RELEASE]
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:1237)
~[spring-boot-2.3.4.RELEASE.jar!/:2.3.4.RELEASE]
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:1226)
~[spring-boot-2.3.4.RELEASE.jar!/:2.3.4.RELEASE]
at
com.zebra.carcloud.openapi.apisix.plugin.dubbo.GateWayApplication.main(GateWayApplication.java:24)
~[classes!/:0.0.1-SNAPSHOT]
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
~[na:na]
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
~[na:na]
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[na:na]
at java.base/, context: ngx.timer
2023/12/26 15:55:31 [warn] 53#53: *81 [lua] init.lua:961:
java.lang.reflect.Method.invoke(Method.java:568) ~[na:na]
at
org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)
~[dubbo-plugin-0.0.1-SNAPSHOT-exec.jar:0.0.1-SNAPSHOT]
at org.springframework.boot.loader.Launcher.launch(Launcher.java:107)
~[dubbo-plugin-0.0.1-SNAPSHOT, context: ngx.timer
2023/12/26 15:55:31 [warn] 53#53: *81 [lua] init.lua:961:
-exec.jar:0.0.1-SNAPSHOT]
at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
~[dubbo-plugin-0.0.1-SNAPSHOT-exec.jar:0.0.1-SNAPSHOT]
at
org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:88)
~[dubbo-plugin-0.0.1-SNAPSHOT-exec.jar:0.0.1-SNAPSHOT]
Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder
'socket.file' in value "${socket.file}"
at
org.springframework.util.PropertyPlaceholderHelper.parseStringValue(PropertyPlaceholderHelper.java:178)
~[spring-core-5.2.9.RELEASE.jar!/:5.2.9.RELEASE]
at
org.springframework.util.PropertyPlaceholderHelper.replacePlaceholders(PropertyPlaceholderHelper.java:124)
~[spring-core-5.2.9.RELEASE.jar!/:5.2.9.RELEASE]
at
org.springframework.core.env.AbstractPropertyResolver.doResolvePlaceholders(AbstractPropertyResolver.java:239)
~[spring-core-5.2.9.RELEASE.jar!/:5.2.9.RELEASE]
at
org.springframework.core.env.AbstractPropertyResolver.resolveRequiredPlaceholders(AbstractPropertyResolver.java:210)
~[spring-core-5.2.9.RELEASE.jar!/:5.2.9.RELEASE]
at
org.springframework.context.support.PropertySourcesPlaceholderConfigurer.lambda$processProperties$0(PropertySourcesPlaceholderConfigurer.java:175)
~[spring-context-5.2.9.RELEASE.jar!/:5.2.9.RELEASE]
at
org.springframework.beans.factory.support.AbstractBeanFactory.resolveEmbeddedValue(AbstractBeanFactory.java:918)
~[spring-beans-5.2.9.RELEASE.jar!/:5.2.9.RELEASE]
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1248)
~[spring-beans-5.2.9.RELEASE.jar!/:5.2.9.RELEASE]
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1227)
~[spring-beans-5.2.9.RELEASE.jar!/:5.2.9.RELEASE]
at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:640)
~[spring-beans-5.2.9.RELEASE.jar!/:5.2.9.RELEASE]
at
org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:130)
~[spring-beans-5.2.9.RELEASE.jar!/:5.2.9.RELEASE]
at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399)
~[spring-beans-5.2.9.RELEASE.jar!/:5.2.9.RELEASE]
... 26 common frames omitted
, context: ngx.timer
```
--
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]