You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/02/05 05:12:56 UTC

[GitHub] [shardingsphere] daiyunqing opened a new issue #9338: shardingUi 4.1.0 添加注册中心时报错

daiyunqing opened a new issue #9338:
URL: https://github.com/apache/shardingsphere/issues/9338


   错误信息
   ![image](https://user-images.githubusercontent.com/55369312/106992557-ae89b780-67b3-11eb-8f95-7406fe48d025.png)
   
   Cannot create property=centerConfigs for JavaBean=org.apache.shardingsphere.ui.common.domain.CenterConfigs@7b5b7d77 in 'reader', line 1, column 1: centerConfigs: ^ Cannot create property=additionalConfigCenterServerList for JavaBean=org.apache.shardingsphere.ui.common.domain.CenterConfig@5474241f in 'reader', line 2, column 3: - activated: false ^ Unable to find property 'additionalConfigCenterServerList' on class: org.apache.shardingsphere.ui.common.domain.CenterConfig in 'reader', line 3, column 37: additionalConfigCenterServerList: null ^ in 'reader', line 2, column 1: - activated: false ^
   
   
   服务器日志:
   [ERROR] 13:12:03.150 [http-nio-8088-exec-4] o.a.s.u.w.a.GlobalExceptionHandler - controller error
   org.yaml.snakeyaml.constructor.ConstructorException: Cannot create property=centerConfigs for JavaBean=org.apache.shardingsphere.ui.common.domain.CenterConfigs@1ecaeec1
    in 'reader', line 1, column 1:
       centerConfigs:
       ^
   Cannot create property=additionalConfigCenterServerList for JavaBean=org.apache.shardingsphere.ui.common.domain.CenterConfig@4d2380f7
    in 'reader', line 2, column 3:
       - activated: false
         ^
   Unable to find property 'additionalConfigCenterServerList' on class: org.apache.shardingsphere.ui.common.domain.CenterConfig
    in 'reader', line 3, column 37:
         additionalConfigCenterServerList: null
                                           ^
   
    in 'reader', line 2, column 1:
       - activated: false
       ^
   
   	at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:313)
   	at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct(Constructor.java:190)
   	at org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.construct(Constructor.java:346)
   	at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:182)
   	at org.yaml.snakeyaml.constructor.BaseConstructor.constructDocument(BaseConstructor.java:141)
   	at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:127)
   	at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:450)
   	at org.yaml.snakeyaml.Yaml.loadAs(Yaml.java:410)
   	at org.apache.shardingsphere.ui.repository.impl.YamlCenterConfigsRepositoryImpl.load(YamlCenterConfigsRepositoryImpl.java:55)
   	at org.apache.shardingsphere.ui.repository.impl.YamlCenterConfigsRepositoryImpl.load(YamlCenterConfigsRepositoryImpl.java:38)
   	at org.apache.shardingsphere.ui.servcie.impl.CenterConfigServiceImpl.loadAll(CenterConfigServiceImpl.java:92)
   	at org.apache.shardingsphere.ui.servcie.impl.CenterConfigServiceImpl.add(CenterConfigServiceImpl.java:54)
   	at org.apache.shardingsphere.ui.web.controller.RegistryCenterController.add(RegistryCenterController.java:63)
   	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.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
   	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133)
   	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:97)
   	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:854)
   	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:765)
   	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
   	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967)
   	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901)
   	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
   	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)
   	at javax.servlet.http.HttpServlet.service(HttpServlet.java:661)
   	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
   	at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
   	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
   	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
   	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
   	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
   	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
   	at org.apache.shardingsphere.ui.security.AuthenticationFilter.doFilter(AuthenticationFilter.java:62)
   	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
   	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
   	at org.apache.shardingsphere.ui.web.filter.CORSFilter.doFilter(CORSFilter.java:53)
   	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
   	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
   	at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
   	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
   	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
   	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
   	at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:109)
   	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
   	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
   	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
   	at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93)
   	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
   	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
   	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
   	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)
   	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
   	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
   	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
   	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
   	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
   	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)
   	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
   	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
   	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
   	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
   	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:798)
   	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
   	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:808)
   	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)
   	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
   	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
   	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
   	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
   	at java.lang.Thread.run(Thread.java:748)
   Caused by: org.yaml.snakeyaml.constructor.ConstructorException: Cannot create property=additionalConfigCenterServerList for JavaBean=org.apache.shardingsphere.ui.common.domain.CenterConfig@4d2380f7
    in 'reader', line 2, column 3:
       - activated: false
         ^
   Unable to find property 'additionalConfigCenterServerList' on class: org.apache.shardingsphere.ui.common.domain.CenterConfig
    in 'reader', line 3, column 37:
         additionalConfigCenterServerList: null
                                           ^
   
   	at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:313)
   	at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.construct(Constructor.java:190)
   	at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:182)
   	at org.yaml.snakeyaml.constructor.BaseConstructor.constructSequenceStep2(BaseConstructor.java:275)
   	at org.yaml.snakeyaml.constructor.BaseConstructor.constructSequence(BaseConstructor.java:246)
   	at org.yaml.snakeyaml.constructor.Constructor$ConstructSequence.construct(Constructor.java:539)
   	at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:182)
   	at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:298)
   	... 72 common frames omitted
   Caused by: org.yaml.snakeyaml.error.YAMLException: Unable to find property 'additionalConfigCenterServerList' on class: org.apache.shardingsphere.ui.common.domain.CenterConfig
   	at org.yaml.snakeyaml.introspector.PropertyUtils.getProperty(PropertyUtils.java:132)
   	at org.yaml.snakeyaml.introspector.PropertyUtils.getProperty(PropertyUtils.java:121)
   	at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.getProperty(Constructor.java:323)
   	at org.yaml.snakeyaml.constructor.Constructor$ConstructMapping.constructJavaBean2ndStep(Constructor.java:241)
   	... 79 common frames omitted


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] terrymanu closed issue #9338: shardingUi 4.1.0 添加注册中心时报错

Posted by GitBox <gi...@apache.org>.
terrymanu closed issue #9338:
URL: https://github.com/apache/shardingsphere/issues/9338


   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] terrymanu commented on issue #9338: shardingUi 4.1.0 添加注册中心时报错

Posted by GitBox <gi...@apache.org>.
terrymanu commented on issue #9338:
URL: https://github.com/apache/shardingsphere/issues/9338#issuecomment-773798320


   **For English only**, other languages will not accept.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] terrymanu commented on issue #9338: shardingUi 4.1.0 添加注册中心时报错

Posted by GitBox <gi...@apache.org>.
terrymanu commented on issue #9338:
URL: https://github.com/apache/shardingsphere/issues/9338#issuecomment-773798320


   **For English only**, other languages will not accept.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] terrymanu closed issue #9338: shardingUi 4.1.0 添加注册中心时报错

Posted by GitBox <gi...@apache.org>.
terrymanu closed issue #9338:
URL: https://github.com/apache/shardingsphere/issues/9338


   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org