alibaba / nacos

an easy-to-use dynamic service discovery, configuration and service management platform for building cloud native applications.
https://nacos.io
Apache License 2.0
30.39k stars 12.87k forks source link

Save configuration error, I use the oracle database #1275

Closed ouyangzhiming closed 5 years ago

ouyangzhiming commented 5 years ago

org.springframework.dao.DataRetrievalFailureException: The generated key is not of a supported numeric type. Unable to cast [oracle.sql.ROWID] to [java.lang.Number] org.springframework.dao.DataRetrievalFailureException: The generated key is not of a supported numeric type. Unable to cast [oracle.sql.ROWID] to [java.lang.Number] 发布失败。请检查参数是否正确。 发布失败。请检查参数是否正确。 发布失败。请检查参数是否正确。

发布失败。请检查参数是否正确。 发布失败。请检查参数是否正确。 发布失败。请检查参数是否正确。

D:\tools\Java\jdk1.8.0_131\bin\java -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:56753,suspend=y,server=n -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=56752 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true -Dfile.encoding=UTF-8 -classpath "D:\tools\Java\jdk1.8.0_131\jre\lib\charsets.jar;D:\tools\Java\jdk1.8.0_131\jre\lib\deploy.jar;D:\tools\Java\jdk1.8.0_131\jre\lib\ext\access-bridge-64.jar;D:\tools\Java\jdk1.8.0_131\jre\lib\ext\cldrdata.jar;D:\tools\Java\jdk1.8.0_131\jre\lib\ext\dnsns.jar;D:\tools\Java\jdk1.8.0_131\jre\lib\ext\jaccess.jar;D:\tools\Java\jdk1.8.0_131\jre\lib\ext\jfxrt.jar;D:\tools\Java\jdk1.8.0_131\jre\lib\ext\localedata.jar;D:\tools\Java\jdk1.8.0_131\jre\lib\ext\nashorn.jar;D:\tools\Java\jdk1.8.0_131\jre\lib\ext\sunec.jar;D:\tools\Java\jdk1.8.0_131\jre\lib\ext\sunjce_provider.jar;D:\tools\Java\jdk1.8.0_131\jre\lib\ext\sunmscapi.jar;D:\tools\Java\jdk1.8.0_131\jre\lib\ext\sunpkcs11.jar;D:\tools\Java\jdk1.8.0_131\jre\lib\ext\zipfs.jar;D:\tools\Java\jdk1.8.0_131\jre\lib\javaws.jar;D:\tools\Java\jdk1.8.0_131\jre\lib\jce.jar;D:\tools\Java\jdk1.8.0_131\jre\lib\jfr.jar;D:\tools\Java\jdk1.8.0_131\jre\lib\jfxswt.jar;D:\tools\Java\jdk1.8.0_131\jre\lib\jsse.jar;D:\tools\Java\jdk1.8.0_131\jre\lib\management-agent.jar;D:\tools\Java\jdk1.8.0_131\jre\lib\plugin.jar;D:\tools\Java\jdk1.8.0_131\jre\lib\resources.jar;D:\tools\Java\jdk1.8.0_131\jre\lib\rt.jar;I:\workspace\nacos\console\target\classes;I:\workspace\nacos\config\target\classes;H:\repository\org\springframework\boot\spring-boot-starter-web\2.1.1.RELEASE\spring-boot-starter-web-2.1.1.RELEASE.jar;H:\repository\org\springframework\boot\spring-boot-starter-json\2.1.1.RELEASE\spring-boot-starter-json-2.1.1.RELEASE.jar;H:\repository\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.9.7\jackson-datatype-jdk8-2.9.7.jar;H:\repository\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.9.7\jackson-datatype-jsr310-2.9.7.jar;H:\repository\com\fasterxml\jackson\module\jackson-module-parameter-names\2.9.7\jackson-module-parameter-names-2.9.7.jar;H:\repository\org\hibernate\validator\hibernate-validator\6.0.13.Final\hibernate-validator-6.0.13.Final.jar;H:\repository\javax\validation\validation-api\2.0.1.Final\validation-api-2.0.1.Final.jar;H:\repository\org\jboss\logging\jboss-logging\3.3.2.Final\jboss-logging-3.3.2.Final.jar;H:\repository\com\fasterxml\classmate\1.4.0\classmate-1.4.0.jar;H:\repository\org\springframework\spring-web\5.1.3.RELEASE\spring-web-5.1.3.RELEASE.jar;H:\repository\org\springframework\spring-webmvc\5.1.3.RELEASE\spring-webmvc-5.1.3.RELEASE.jar;I:\workspace\nacos\core\target\classes;I:\workspace\nacos\common\target\classes;H:\repository\org\springframework\spring-test\5.1.3.RELEASE\spring-test-5.1.3.RELEASE.jar;H:\repository\org\springframework\boot\spring-boot-test\2.1.1.RELEASE\spring-boot-test-2.1.1.RELEASE.jar;H:\repository\com\google\guava\guava\19.0\guava-19.0.jar;H:\repository\org\springframework\boot\spring-boot-starter-jdbc\2.1.1.RELEASE\spring-boot-starter-jdbc-2.1.1.RELEASE.jar;H:\repository\com\zaxxer\HikariCP\3.2.0\HikariCP-3.2.0.jar;H:\repository\org\springframework\spring-jdbc\5.1.3.RELEASE\spring-jdbc-5.1.3.RELEASE.jar;H:\repository\org\springframework\spring-tx\5.1.3.RELEASE\spring-tx-5.1.3.RELEASE.jar;H:\repository\commons-io\commons-io\2.2\commons-io-2.2.jar;H:\repository\commons-lang\commons-lang\2.6\commons-lang-2.6.jar;I:\workspace\nacos\libs\ojdbc6.jar;H:\repository\commons-dbcp\commons-dbcp\1.4\commons-dbcp-1.4.jar;H:\repository\commons-pool\commons-pool\1.6\commons-pool-1.6.jar;H:\repository\org\apache\derby\derby\10.10.1.1\derby-10.10.1.1.jar;H:\repository\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;H:\repository\org\aspectj\aspectjrt\1.9.2\aspectjrt-1.9.2.jar;H:\repository\cglib\cglib-nodep\2.1\cglib-nodep-2.1.jar;H:\repository\org\apache\httpcomponents\httpasyncclient\4.1.3\httpasyncclient-4.1.3.jar;H:\repository\org\apache\httpcomponents\httpcore-nio\4.4.10\httpcore-nio-4.4.10.jar;H:\repository\commons-logging\commons-logging\1.2\commons-logging-1.2.jar;H:\repository\org\springframework\boot\spring-boot-starter-tomcat\2.1.1.RELEASE\spring-boot-starter-tomcat-2.1.1.RELEASE.jar;H:\repository\javax\annotation\javax.annotation-api\1.3.2\javax.annotation-api-1.3.2.jar;H:\repository\org\apache\tomcat\embed\tomcat-embed-websocket\9.0.13\tomcat-embed-websocket-9.0.13.jar;H:\repository\org\codehaus\jackson\jackson-mapper-lgpl\1.9.6\jackson-mapper-lgpl-1.9.6.jar;H:\repository\org\codehaus\jackson\jackson-core-lgpl\1.9.6\jackson-core-lgpl-1.9.6.jar;H:\repository\com\github\spotbugs\spotbugs-annotations\3.1.3\spotbugs-annotations-3.1.3.jar;H:\repository\com\google\code\findbugs\jsr305\3.0.2\jsr305-3.0.2.jar;H:\repository\org\apache\commons\commons-lang3\3.4\commons-lang3-3.4.jar;H:\repository\io\micrometer\micrometer-registry-prometheus\1.1.1\micrometer-registry-prometheus-1.1.1.jar;H:\repository\io\micrometer\micrometer-core\1.1.1\micrometer-core-1.1.1.jar;H:\repository\org\hdrhistogram\HdrHistogram\2.1.9\HdrHistogram-2.1.9.jar;H:\repository\org\latencyutils\LatencyUtils\2.0.3\LatencyUtils-2.0.3.jar;H:\repository\io\prometheus\simpleclient_common\0.5.0\simpleclient_common-0.5.0.jar;H:\repository\io\prometheus\simpleclient\0.5.0\simpleclient-0.5.0.jar;H:\repository\io\micrometer\micrometer-registry-influx\1.1.1\micrometer-registry-influx-1.1.1.jar;H:\repository\io\micrometer\micrometer-registry-elastic\1.1.1\micrometer-registry-elastic-1.1.1.jar;H:\repository\org\springframework\boot\spring-boot-starter-aop\2.1.1.RELEASE\spring-boot-starter-aop-2.1.1.RELEASE.jar;H:\repository\org\aspectj\aspectjweaver\1.9.2\aspectjweaver-1.9.2.jar;H:\repository\org\springframework\boot\spring-boot-starter-actuator\2.1.1.RELEASE\spring-boot-starter-actuator-2.1.1.RELEASE.jar;H:\repository\org\springframework\boot\spring-boot-actuator-autoconfigure\2.1.1.RELEASE\spring-boot-actuator-autoconfigure-2.1.1.RELEASE.jar;H:\repository\org\springframework\boot\spring-boot-actuator\2.1.1.RELEASE\spring-boot-actuator-2.1.1.RELEASE.jar;H:\repository\org\apache\tomcat\embed\tomcat-embed-jasper\7.0.59\tomcat-embed-jasper-7.0.59.jar;H:\repository\org\apache\tomcat\embed\tomcat-embed-core\9.0.13\tomcat-embed-core-9.0.13.jar;H:\repository\org\apache\tomcat\tomcat-annotations-api\9.0.13\tomcat-annotations-api-9.0.13.jar;H:\repository\org\apache\tomcat\embed\tomcat-embed-el\9.0.13\tomcat-embed-el-9.0.13.jar;H:\repository\org\eclipse\jdt\core\compiler\ecj\4.4\ecj-4.4.jar;I:\workspace\nacos\naming\target\classes;I:\workspace\nacos\api\target\classes;H:\repository\com\alibaba\fastjson\1.2.47\fastjson-1.2.47.jar;H:\repository\io\netty\netty-all\4.0.42.Final\netty-all-4.0.42.Final.jar;H:\repository\com\ning\async-http-client\1.7.17\async-http-client-1.7.17.jar;H:\repository\io\netty\netty\3.6.6.Final\netty-3.6.6.Final.jar;H:\repository\org\springframework\boot\spring-boot\2.1.1.RELEASE\spring-boot-2.1.1.RELEASE.jar;H:\repository\org\springframework\spring-core\5.1.3.RELEASE\spring-core-5.1.3.RELEASE.jar;H:\repository\org\springframework\spring-jcl\5.1.3.RELEASE\spring-jcl-5.1.3.RELEASE.jar;H:\repository\org\springframework\spring-context\5.1.3.RELEASE\spring-context-5.1.3.RELEASE.jar;H:\repository\commons-collections\commons-collections\3.2.2\commons-collections-3.2.2.jar;H:\repository\org\codehaus\jackson\jackson-core-asl\1.9.10\jackson-core-asl-1.9.10.jar;H:\repository\org\slf4j\slf4j-api\1.7.7\slf4j-api-1.7.7.jar;H:\repository\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;H:\repository\org\apache\mina\mina-core\2.0.0-RC1\mina-core-2.0.0-RC1.jar;H:\repository\org\javatuples\javatuples\1.2\javatuples-1.2.jar;H:\repository\org\apache\httpcomponents\httpcore\4.4.1\httpcore-4.4.1.jar;H:\repository\org\apache\httpcomponents\httpclient\4.5\httpclient-4.5.jar;H:\repository\commons-codec\commons-codec\1.11\commons-codec-1.11.jar;H:\repository\mysql\mysql-connector-java\5.1.34\mysql-connector-java-5.1.34.jar;I:\workspace\nacos\cmdb\target\classes;H:\repository\org\slf4j\log4j-over-slf4j\1.7.25\log4j-over-slf4j-1.7.25.jar;H:\repository\org\slf4j\jcl-over-slf4j\1.7.25\jcl-over-slf4j-1.7.25.jar;H:\repository\org\slf4j\jul-to-slf4j\1.7.25\jul-to-slf4j-1.7.25.jar;H:\repository\org\springframework\boot\spring-boot-starter-security\2.1.1.RELEASE\spring-boot-starter-security-2.1.1.RELEASE.jar;H:\repository\org\springframework\boot\spring-boot-starter\2.1.1.RELEASE\spring-boot-starter-2.1.1.RELEASE.jar;H:\repository\org\springframework\boot\spring-boot-autoconfigure\2.1.1.RELEASE\spring-boot-autoconfigure-2.1.1.RELEASE.jar;H:\repository\org\springframework\boot\spring-boot-starter-logging\2.1.1.RELEASE\spring-boot-starter-logging-2.1.1.RELEASE.jar;H:\repository\org\apache\logging\log4j\log4j-to-slf4j\2.11.1\log4j-to-slf4j-2.11.1.jar;H:\repository\org\apache\logging\log4j\log4j-api\2.11.1\log4j-api-2.11.1.jar;H:\repository\org\yaml\snakeyaml\1.23\snakeyaml-1.23.jar;H:\repository\org\springframework\spring-aop\5.1.3.RELEASE\spring-aop-5.1.3.RELEASE.jar;H:\repository\org\springframework\spring-beans\5.1.3.RELEASE\spring-beans-5.1.3.RELEASE.jar;H:\repository\org\springframework\security\spring-security-config\5.1.2.RELEASE\spring-security-config-5.1.2.RELEASE.jar;H:\repository\org\springframework\security\spring-security-core\5.1.2.RELEASE\spring-security-core-5.1.2.RELEASE.jar;H:\repository\org\springframework\security\spring-security-web\5.1.2.RELEASE\spring-security-web-5.1.2.RELEASE.jar;H:\repository\org\springframework\spring-expression\5.1.3.RELEASE\spring-expression-5.1.3.RELEASE.jar;H:\repository\io\jsonwebtoken\jjwt-api\0.10.5\jjwt-api-0.10.5.jar;H:\repository\io\jsonwebtoken\jjwt-impl\0.10.5\jjwt-impl-0.10.5.jar;H:\repository\io\jsonwebtoken\jjwt-jackson\0.10.5\jjwt-jackson-0.10.5.jar;H:\repository\com\fasterxml\jackson\core\jackson-databind\2.9.7\jackson-databind-2.9.7.jar;H:\repository\com\fasterxml\jackson\core\jackson-annotations\2.9.0\jackson-annotations-2.9.0.jar;H:\repository\com\fasterxml\jackson\core\jackson-core\2.9.7\jackson-core-2.9.7.jar;E:\Program Files\JetBrains\IntelliJ IDEA 2017.2.3\lib\idea_rt.jar" com.alibaba.nacos.Nacos Connected to the target VM, address: '127.0.0.1:56753', transport: 'socket'

     ,--.
   ,--.'|

,--,: : | Nacos ,--.'| ' : ,---. Running in cluster mode, All function modules | : : | | ' ,'\ .--.--. Port: 8848 : | \ | : ,--.--. ,---. / / | / / ' Pid: 15356 | : ' '; | / \ / . ; ,. :| : /./ Console: http://192.168.200.238:8848/nacos/index.html ' ' ;. ;.--. .-. | / / '' | |: :| : ;_ | | | \ | \__\/: . .. ' / ' | .; : \ \. https://nacos.io ' : | ; .' ," .--.; |' ; :__| : | ----. \ | | '--' / / ,. |' | '.'|\ \ / / /--' / ' : | ; : .' \ : :----' '--'. / ; |.' | , .-./\ \ / --'---' '---'-----'----'

2019-05-27 09:33:21.031 INFO 15356 --- [ main] c.l.StartingSpringApplicationRunListener : The server IP list of Nacos is [192.168.1.2:8848, 192.168.1.3] 2019-05-27 09:33:22.046 INFO 15356 --- [ nacos-starting] c.l.StartingSpringApplicationRunListener : Nacos is starting... 2019-05-27 09:33:23.047 INFO 15356 --- [ nacos-starting] c.l.StartingSpringApplicationRunListener : Nacos is starting... 2019-05-27 09:33:24.048 INFO 15356 --- [ nacos-starting] c.l.StartingSpringApplicationRunListener : Nacos is starting... 2019-05-27 09:33:25.049 INFO 15356 --- [ nacos-starting] c.l.StartingSpringApplicationRunListener : Nacos is starting... 2019-05-27 09:33:26.050 INFO 15356 --- [ nacos-starting] c.l.StartingSpringApplicationRunListener : Nacos is starting... 2019-05-27 09:33:27.051 INFO 15356 --- [ nacos-starting] c.l.StartingSpringApplicationRunListener : Nacos is starting... 2019-05-27 09:33:28.052 INFO 15356 --- [ nacos-starting] c.l.StartingSpringApplicationRunListener : Nacos is starting... 2019-05-27 09:33:29.053 INFO 15356 --- [ nacos-starting] c.l.StartingSpringApplicationRunListener : Nacos is starting... 2019-05-27 09:33:30.054 INFO 15356 --- [ nacos-starting] c.l.StartingSpringApplicationRunListener : Nacos is starting... 2019-05-27 09:33:31.055 INFO 15356 --- [ nacos-starting] c.l.StartingSpringApplicationRunListener : Nacos is starting... 2019-05-27 09:33:32.056 INFO 15356 --- [ nacos-starting] c.l.StartingSpringApplicationRunListener : Nacos is starting... 2019-05-27 09:33:33.057 INFO 15356 --- [ nacos-starting] c.l.StartingSpringApplicationRunListener : Nacos is starting... 2019-05-27 09:33:34.058 INFO 15356 --- [ nacos-starting] c.l.StartingSpringApplicationRunListener : Nacos is starting... 2019-05-27 09:33:35.059 INFO 15356 --- [ nacos-starting] c.l.StartingSpringApplicationRunListener : Nacos is starting... 2019-05-27 09:33:36.060 INFO 15356 --- [ nacos-starting] c.l.StartingSpringApplicationRunListener : Nacos is starting... 2019-05-27 09:33:37.060 INFO 15356 --- [ nacos-starting] c.l.StartingSpringApplicationRunListener : Nacos is starting... 2019-05-27 09:33:38.064 INFO 15356 --- [ nacos-starting] c.l.StartingSpringApplicationRunListener : Nacos is starting... 2019-05-27 09:33:38.093 INFO 15356 --- [ main] c.l.StartingSpringApplicationRunListener : Nacos Log files: C:\Users\hjx\nacos/logs/ 2019-05-27 09:33:38.093 INFO 15356 --- [ main] c.l.StartingSpringApplicationRunListener : Nacos Conf files: C:\Users\hjx\nacos/conf/ 2019-05-27 09:33:38.093 INFO 15356 --- [ main] c.l.StartingSpringApplicationRunListener : Nacos Data files: C:\Users\hjx\nacos/data/ 2019-05-27 09:33:38.093 INFO 15356 --- [ main] c.l.StartingSpringApplicationRunListener : Nacos started successfully in cluster mode. org.springframework.transaction.TransactionTimedOutException: Transaction timed out: deadline was Mon May 27 09:37:37 CST 2019 at org.springframework.transaction.support.ResourceHolderSupport.checkTransactionTimeout(ResourceHolderSupport.java:155) at org.springframework.transaction.support.ResourceHolderSupport.getTimeToLiveInMillis(ResourceHolderSupport.java:144) at org.springframework.transaction.support.ResourceHolderSupport.getTimeToLiveInSeconds(ResourceHolderSupport.java:128) at org.springframework.jdbc.datasource.DataSourceUtils.applyTimeout(DataSourceUtils.java:288) at org.springframework.jdbc.core.JdbcTemplate.applyStatementSettings(JdbcTemplate.java:1373) at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:616) at org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:893) at com.alibaba.nacos.config.server.service.PersistService.addConfigInfoAtomic(PersistService.java:2641) at com.alibaba.nacos.config.server.service.PersistService.access$000(PersistService.java:74) at com.alibaba.nacos.config.server.service.PersistService$1.doInTransaction(PersistService.java:485) at com.alibaba.nacos.config.server.service.PersistService$1.doInTransaction(PersistService.java:481) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140) at com.alibaba.nacos.config.server.service.PersistService.addConfigInfo(PersistService.java:481) at com.alibaba.nacos.config.server.service.PersistService.insertOrUpdate(PersistService.java:689) at com.alibaba.nacos.config.server.service.PersistService$$FastClassBySpringCGLIB$$21ae4232.invoke() at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:749) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:139) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688) at com.alibaba.nacos.config.server.service.PersistService$$EnhancerBySpringCGLIB$$29c4ffc8.insertOrUpdate() at com.alibaba.nacos.config.server.controller.ConfigController.publishConfig(ConfigController.java:133) at com.alibaba.nacos.config.server.controller.ConfigController$$FastClassBySpringCGLIB$$dbb89c38.invoke() at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:749) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:88) at com.alibaba.nacos.config.server.aspect.RequestLogAspect.logClientRequest(RequestLogAspect.java:104) at com.alibaba.nacos.config.server.aspect.RequestLogAspect.interfacePublishSingle(RequestLogAspect.java:71) 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.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:644) at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:633) at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:93) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688) at com.alibaba.nacos.config.server.controller.ConfigController$$EnhancerBySpringCGLIB$$45e61905.publishConfig() 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:189) at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138) at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:800) at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1038) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:942) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1005) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:908) at javax.servlet.http.HttpServlet.service(HttpServlet.java:660) at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:882) at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) 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:53) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at com.alibaba.nacos.config.server.filter.NacosWebFilter.doFilter(NacosWebFilter.java:64) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.springframework.boot.actuate.web.trace.servlet.HttpTraceFilter.doFilterInternal(HttpTraceFilter.java:90) 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.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:209) at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:178) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:357) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:270) 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.FormContentFilter.doFilterInternal(FormContentFilter.java:92) 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.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.filterAndRecordMetrics(WebMvcMetricsFilter.java:117) at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:106) 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:200) 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:490) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:668) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:791) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1417) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748) org.springframework.transaction.TransactionTimedOutException: Transaction timed out: deadline was Mon May 27 10:03:56 CST 2019 at org.springframework.transaction.support.ResourceHolderSupport.checkTransactionTimeout(ResourceHolderSupport.java:155) at org.springframework.transaction.support.ResourceHolderSupport.getTimeToLiveInMillis(ResourceHolderSupport.java:144) at org.springframework.transaction.support.ResourceHolderSupport.getTimeToLiveInSeconds(ResourceHolderSupport.java:128) at org.springframework.jdbc.datasource.DataSourceUtils.applyTimeout(DataSourceUtils.java:288) at org.springframework.jdbc.core.JdbcTemplate.applyStatementSettings(JdbcTemplate.java:1373) at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:616) at org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:893) at com.alibaba.nacos.config.server.service.PersistService.addConfigInfoAtomic(PersistService.java:2641) at com.alibaba.nacos.config.server.service.PersistService.access$000(PersistService.java:74) at com.alibaba.nacos.config.server.service.PersistService$1.doInTransaction(PersistService.java:485) at com.alibaba.nacos.config.server.service.PersistService$1.doInTransaction(PersistService.java:481) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140) at com.alibaba.nacos.config.server.service.PersistService.addConfigInfo(PersistService.java:481) at com.alibaba.nacos.config.server.service.PersistService.insertOrUpdate(PersistService.java:689) at com.alibaba.nacos.config.server.service.PersistService$$FastClassBySpringCGLIB$$21ae4232.invoke() at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:749) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:139) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688) at com.alibaba.nacos.config.server.service.PersistService$$EnhancerBySpringCGLIB$$29c4ffc8.insertOrUpdate() at com.alibaba.nacos.config.server.controller.ConfigController.publishConfig(ConfigController.java:133) at com.alibaba.nacos.config.server.controller.ConfigController$$FastClassBySpringCGLIB$$dbb89c38.invoke() at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:749) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:88) at com.alibaba.nacos.config.server.aspect.RequestLogAspect.logClientRequest(RequestLogAspect.java:104) at com.alibaba.nacos.config.server.aspect.RequestLogAspect.interfacePublishSingle(RequestLogAspect.java:71) 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.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:644) at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:633) at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:93) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688) at com.alibaba.nacos.config.server.controller.ConfigController$$EnhancerBySpringCGLIB$$45e61905.publishConfig() 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:189) at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138) at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:800) at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1038) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:942) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1005) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:908) at javax.servlet.http.HttpServlet.service(HttpServlet.java:660) at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:882) at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) 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:53) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at com.alibaba.nacos.config.server.filter.NacosWebFilter.doFilter(NacosWebFilter.java:64) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.springframework.boot.actuate.web.trace.servlet.HttpTraceFilter.doFilterInternal(HttpTraceFilter.java:90) 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.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:209) at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:178) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:357) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:270) 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.FormContentFilter.doFilterInternal(FormContentFilter.java:92) 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.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.filterAndRecordMetrics(WebMvcMetricsFilter.java:117) at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:106) 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:200) 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:490) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:668) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:791) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1417) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748)

nacos-bot commented 5 years ago

Hi @ouyangzhiming, we detect non-English characters in the issue. This comment is an auto translation from @nacos-bot to help other users to understand this issue. We encourage you to describe your issue in English which is more friendly to other users.

Save configuration error, I use the oracle database

D:\tools\Java\jdk1.8.0_131\bin\java -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:56753,suspend=y,server=n -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=56752 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true -Dfile.encoding=UTF-8 -classpath "D:\tools\Java\jdk1.8.0_131\jre\lib\charsets.jar;D:\tools\Java\jdk1.8.0_131\jre\lib\deploy.jar;D:\tools\Java\jdk1.8.0_131\jre\lib\ext\access-bridge-64.jar;D:\tools\Java\jdk1.8.0_131\jre\lib\ext\cldrdata.jar;D:\tools\Java\jdk1.8.0_131\jre\lib\ext\dnsns.jar;D:\tools\Java\jdk1.8.0_131\jre\lib\ext\jaccess.jar;D:\tools\Java\jdk1.8.0_131\jre\lib\ext\jfxrt.jar;D:\tools\Java\jdk1.8.0_131\jre\lib\ext\localedata.jar;D:\tools\Java\jdk1.8.0_131\jre\lib\ext\nashorn.jar;D:\tools\Java\jdk1.8.0_131\jre\lib\ext\sunec.jar;D:\tools\Java\jdk1.8.0_131\jre\lib\ext\sunjce_provider.jar;D:\tools\Java\jdk1.8.0_131\jre\lib\ext\sunmscapi.jar;D:\tools\Java\jdk1.8.0_131\jre\lib\ext\sunpkcs11.jar;D:\tools\Java\jdk1.8.0_131\jre\lib\ext\zipfs.jar;D:\tools\Java\jdk1.8.0_131\jre\lib\javaws.jar;D:\tools\Java\jdk1.8.0_131\jre\lib\jce.jar;D:\tools\Java\jdk1.8.0_131\jre\lib\jfr.jar;D:\tools\Java\jdk1.8.0_131\jre\lib\jfxswt.jar;D:\tools\Java\jdk1.8.0_131\jre\lib\jsse.jar;D:\tools\Java\jdk1.8.0_131\jre\lib\management-agent.jar;D:\tools\Java\jdk1.8.0_131\jre\lib\plugin.jar;D:\tools\Java\jdk1.8.0_131\jre\lib\resources.jar;D:\tools\Java\jdk1.8.0_131\jre\lib\rt.jar;I:\workspace\nacos\console\target\classes;I:\workspace\nacos\config\target\classes;H:\repository\org\springframework\boot\spring-boot-starter-web\2.1.1.RELEASE\spring-boot-starter-web-2.1.1.RELEASE.jar;H:\repository\org\springframework\boot\spring-boot-starter-json\2.1.1.RELEASE\spring-boot-starter-json-2.1.1.RELEASE.jar;H:\repository\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.9.7\jackson-datatype-jdk8-2.9.7.jar;H:\repository\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.9.7\jackson-datatype-jsr310-2.9.7.jar;H:\repository\com\fasterxml\jackson\module\jackson-module-parameter-names\2.9.7\jackson-module-parameter-names-2.9.7.jar;H:\repository\org\hibernate\validator\hibernate-validator\6.0.13.Final\hibernate-validator-6.0.13.Final.jar;H:\repository\javax\validation\validation-api\2.0.1.Final\validation-api-2.0.1.Final.jar;H:\repository\org\jboss\logging\jboss-logging\3.3.2.Final\jboss-logging-3.3.2.Final.jar;H:\repository\com\fasterxml\classmate\1.4.0\classmate-1.4.0.jar;H:\repository\org\springframework\spring-web\5.1.3.RELEASE\spring-web-5.1.3.RELEASE.jar;H:\repository\org\springframework\spring-webmvc\5.1.3.RELEASE\spring-webmvc-5.1.3.RELEASE.jar;I:\workspace\nacos\core\target\classes;I:\workspace\nacos\common\target\classes;H:\repository\org\springframework\spring-test\5.1.3.RELEASE\spring-test-5.1.3.RELEASE.jar;H:\repository\org\springframework\boot\spring-boot-test\2.1.1.RELEASE\spring-boot-test-2.1.1.RELEASE.jar;H:\repository\com\google\guava\guava\19.0\guava-19.0.jar;H:\repository\org\springframework\boot\spring-boot-starter-jdbc\2.1.1.RELEASE\spring-boot-starter-jdbc-2.1.1.RELEASE.jar;H:\repository\com\zaxxer\HikariCP\3.2.0\HikariCP-3.2.0.jar;H:\repository\org\springframework\spring-jdbc\5.1.3.RELEASE\spring-jdbc-5.1.3.RELEASE.jar;H:\repository\org\springframework\spring-tx\5.1.3.RELEASE\spring-tx-5.1.3.RELEASE.jar;H:\repository\commons-io\commons-io\2.2\commons-io-2.2.jar;H:\repository\commons-lang\commons-lang\2.6\commons-lang-2.6.jar;I:\workspace\nacos\libs\ojdbc6.jar;H:\repository\commons-dbcp\commons-dbcp\1.4\commons-dbcp-1.4.jar;H:\repository\commons-pool\commons-pool\1.6\commons-pool-1.6.jar;H:\repository\org\apache\derby\derby\10.10.1.1\derby-10.10.1.1.jar;H:\repository\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;H:\repository\org\aspectj\aspectjrt\1.9.2\aspectjrt-1.9.2.jar;H:\repository\cglib\cglib-nodep\2.1\cglib-nodep-2.1.jar;H:\repository\org\apache\httpcomponents\httpasyncclient\4.1.3\httpasyncclient-4.1.3.jar;H:\repository\org\apache\httpcomponents\httpcore-nio\4.4.10\httpcore-nio-4.4.10.jar;H:\repository\commons-logging\commons-logging\1.2\commons-logging-1.2.jar;H:\repository\org\springframework\boot\spring-boot-starter-tomcat\2.1.1.RELEASE\spring-boot-starter-tomcat-2.1.1.RELEASE.jar;H:\repository\javax\annotation\javax.annotation-api\1.3.2\javax.annotation-api-1.3.2.jar;H:\repository\org\apache\tomcat\embed\tomcat-embed-websocket\9.0.13\tomcat-embed-websocket-9.0.13.jar;H:\repository\org\codehaus\jackson\jackson-mapper-lgpl\1.9.6\jackson-mapper-lgpl-1.9.6.jar;H:\repository\org\codehaus\jackson\jackson-core-lgpl\1.9.6\jackson-core-lgpl-1.9.6.jar;H:\repository\com\github\spotbugs\spotbugs-annotations\3.1.3\spotbugs-annotations-3.1.3.jar;H:\repository\com\google\code\findbugs\jsr305\3.0.2\jsr305-3.0.2.jar;H:\repository\org\apache\commons\commons-lang3\3.4\commons-lang3-3.4.jar;H:\repository\io\micrometer\micrometer-registry-prometheus\1.1.1\micrometer-registry-prometheus-1.1.1.jar;H:\repository\io\micrometer\micrometer-core\1.1.1\micrometer-core-1.1.1.jar;H:\repository\org\hdrhistogram\HdrHistogram\2.1.9\HdrHistogram-2.1.9.jar;H:\repository\org\latencyutils\LatencyUtils\2.0.3\LatencyUtils-2.0.3.jar;H:\repository\io\prometheus\simpleclient_common\0.5.0\simpleclient_common-0.5.0.jar;H:\repository\io\prometheus\simpleclient\0.5.0\simpleclient-0.5.0.jar;H:\repository\io\micrometer\micrometer-registry-influx\1.1.1\micrometer-registry-influx-1.1.1.jar;H:\repository\io\micrometer\micrometer-registry-elastic\1.1.1\micrometer-registry-elastic-1.1.1.jar;H:\repository\org\springframework\boot\spring-boot-starter-aop\2.1.1.RELEASE\spring-boot-starter-aop-2.1.1.RELEASE.jar;H:\repository\org\aspectj\aspectjweaver\1.9.2\aspectjweaver-1.9.2.jar;H:\repository\org\springframework\boot\spring-boot-starter-actuator\2.1.1.RELEASE\spring-boot-starter-actuator-2.1.1.RELEASE.jar;H:\repository\org\springframework\boot\spring-boot-actuator-autoconfigure\2.1.1.RELEASE\spring-boot-actuator-autoconfigure-2.1.1.RELEASE.jar;H:\repository\org\springframework\boot\spring-boot-actuator\2.1.1.RELEASE\spring-boot-actuator-2.1.1.RELEASE.jar;H:\repository\org\apache\tomcat\embed\tomcat-embed-jasper\7.0.59\tomcat-embed-jasper-7.0.59.jar;H:\repository\org\apache\tomcat\embed\tomcat-embed-core\9.0.13\tomcat-embed-core-9.0.13.jar;H:\repository\org\apache\tomcat\tomcat-annotations-api\9.0.13\tomcat-annotations-api-9.0.13.jar;H:\repository\org\apache\tomcat\embed\tomcat-embed-el\9.0.13\tomcat-embed-el-9.0.13.jar;H:\repository\org\eclipse\jdt\core\compiler\ecj\4.4\ecj-4.4.jar;I:\workspace\nacos\naming\target\classes;I:\workspace\nacos\api\target\classes;H:\repository\com\alibaba\fastjson\1.2.47\fastjson-1.2.47.jar;H:\repository\io\netty\netty-all\4.0.42.Final\netty-all-4.0.42.Final.jar;H:\repository\com\ning\async-http-client\1.7.17\async-http-client-1.7.17.jar;H:\repository\io\netty\netty\3.6.6.Final\netty-3.6.6.Final.jar;H:\repository\org\springframework\boot\spring-boot\2.1.1.RELEASE\spring-boot-2.1.1.RELEASE.jar;H:\repository\org\springframework\spring-core\5.1.3.RELEASE\spring-core-5.1.3.RELEASE.jar;H:\repository\org\springframework\spring-jcl\5.1.3.RELEASE\spring-jcl-5.1.3.RELEASE.jar;H:\repository\org\springframework\spring-context\5.1.3.RELEASE\spring-context-5.1.3.RELEASE.jar;H:\repository\commons-collections\commons-collections\3.2.2\commons-collections-3.2.2.jar;H:\repository\org\codehaus\jackson\jackson-core-asl\1.9.10\jackson-core-asl-1.9.10.jar;H:\repository\org\slf4j\slf4j-api\1.7.7\slf4j-api-1.7.7.jar;H:\repository\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;H:\repository\org\apache\mina\mina-core\2.0.0-RC1\mina-core-2.0.0-RC1.jar;H:\repository\org\javatuples\javatuples\1.2\javatuples-1.2.jar;H:\repository\org\apache\httpcomponents\httpcore\4.4.1\httpcore-4.4.1.jar;H:\repository\org\apache\httpcomponents\httpclient\4.5\httpclient-4.5.jar;H:\repository\commons-codec\commons-codec\1.11\commons-codec-1.11.jar;H:\repository\mysql\mysql-connector-java\5.1.34\mysql-connector-java-5.1.34.jar;I:\workspace\nacos\cmdb\target\classes;H:\repository\org\slf4j\log4j-over-slf4j\1.7.25\log4j-over-slf4j-1.7.25.jar;H:\repository\org\slf4j\jcl-over-slf4j\1.7.25\jcl-over-slf4j-1.7.25.jar;H:\repository\org\slf4j\jul-to-slf4j\1.7.25\jul-to-slf4j-1.7.25.jar;H:\repository\org\springframework\boot\spring-boot-starter-security\2.1.1.RELEASE\spring-boot-starter-security-2.1.1.RELEASE.jar;H:\repository\org\springframework\boot\spring-boot-starter\2.1.1.RELEASE\spring-boot-starter-2.1.1.RELEASE.jar;H:\repository\org\springframework\boot\spring-boot-autoconfigure\2.1.1.RELEASE\spring-boot-autoconfigure-2.1.1.RELEASE.jar;H:\repository\org\springframework\boot\spring-boot-starter-logging\2.1.1.RELEASE\spring-boot-starter-logging-2.1.1.RELEASE.jar;H:\repository\org\apache\logging\log4j\log4j-to-slf4j\2.11.1\log4j-to-slf4j-2.11.1.jar;H:\repository\org\apache\logging\log4j\log4j-api\2.11.1\log4j-api-2.11.1.jar;H:\repository\org\yaml\snakeyaml\1.23\snakeyaml-1.23.jar;H:\repository\org\springframework\spring-aop\5.1.3.RELEASE\spring-aop-5.1.3.RELEASE.jar;H:\repository\org\springframework\spring-beans\5.1.3.RELEASE\spring-beans-5.1.3.RELEASE.jar;H:\repository\org\springframework\security\spring-security-config\5.1.2.RELEASE\spring-security-config-5.1.2.RELEASE.jar;H:\repository\org\springframework\security\spring-security-core\5.1.2.RELEASE\spring-security-core-5.1.2.RELEASE.jar;H:\repository\org\springframework\security\spring-security-web\5.1.2.RELEASE\spring-security-web-5.1.2.RELEASE.jar;H:\repository\org\springframework\spring-expression\5.1.3.RELEASE\spring-expression-5.1.3.RELEASE.jar;H:\repository\io\jsonwebtoken\jjwt-api\0.10.5\jjwt-api-0.10.5.jar;H:\repository\io\jsonwebtoken\jjwt-impl\0.10.5\jjwt-impl-0.10.5.jar;H:\repository\io\jsonwebtoken\jjwt-jackson\0.10.5\jjwt-jackson-0.10.5.jar;H:\repository\com\fasterxml\jackson\core\jackson-databind\2.9.7\jackson-databind-2.9.7.jar;H:\repository\com\fasterxml\jackson\core\jackson-annotations\2.9.0\jackson-annotations-2.9.0.jar;H:\repository\com\fasterxml\jackson\core\jackson-core\2.9.7\jackson-core-2.9.7.jar;E:\Program Files\JetBrains\IntelliJ IDEA 2017.2.3\lib\idea_rt.jar" com.alibaba.nacos.Nacos Connected to the target VM, address: '127.0.0.1:56753', transport: 'socket'

     ,--.
   ,--.'|

,--,: : | Nacos ,--.'| ' : ,---. Running in cluster mode, All function modules | : : | | ' ,'\ .--.--. Port: 8848 : | \ | : ,--.--. ,---. / / | / / ' Pid: 15356 | : ' '; | / \ / . ; ,. :| : /./ Console: http://192.168.200.238:8848/nacos/index.html ' ' ;. ;.--. .-. | / / '' | |: :| : ;_ | | | \ | \__\/: . .. ' / ' | .; : \ \. https://nacos.io ' : | ; .' ," .--.; |' ; :__| : | ----. \ | | '--' / / ,. |' | '.'|\ \ / / /--' / ' : | ; : .' \ : :----' '--'. / ; |.' | , .-./\ \ / --'---' '---'-----'----'

2019-05-27 09:33:21.031 INFO 15356 --- [ main] c.l.StartingSpringApplicationRunListener : The server IP list of Nacos is [192.168.1.2:8848, 192.168.1.3] 2019-05-27 09:33:22.046 INFO 15356 --- [ nacos-starting] c.l.StartingSpringApplicationRunListener : Nacos is starting... 2019-05-27 09:33:23.047 INFO 15356 --- [ nacos-starting] c.l.StartingSpringApplicationRunListener : Nacos is starting... 2019-05-27 09:33:24.048 INFO 15356 --- [ nacos-starting] c.l.StartingSpringApplicationRunListener : Nacos is starting... 2019-05-27 09:33:25.049 INFO 15356 --- [ nacos-starting] c.l.StartingSpringApplicationRunListener : Nacos is starting... 2019-05-27 09:33:26.050 INFO 15356 --- [ nacos-starting] c.l.StartingSpringApplicationRunListener : Nacos is starting... 2019-05-27 09:33:27.051 INFO 15356 --- [ nacos-starting] c.l.StartingSpringApplicationRunListener : Nacos is starting... 2019-05-27 09:33:28.052 INFO 15356 --- [ nacos-starting] c.l.StartingSpringApplicationRunListener : Nacos is starting... 2019-05-27 09:33:29.053 INFO 15356 --- [ nacos-starting] c.l.StartingSpringApplicationRunListener : Nacos is starting... 2019-05-27 09:33:30.054 INFO 15356 --- [ nacos-starting] c.l.StartingSpringApplicationRunListener : Nacos is starting... 2019-05-27 09:33:31.055 INFO 15356 --- [ nacos-starting] c.l.StartingSpringApplicationRunListener : Nacos is starting... 2019-05-27 09:33:32.056 INFO 15356 --- [ nacos-starting] c.l.StartingSpringApplicationRunListener : Nacos is starting... 2019-05-27 09:33:33.057 INFO 15356 --- [ nacos-starting] c.l.StartingSpringApplicationRunListener : Nacos is starting... 2019-05-27 09:33:34.058 INFO 15356 --- [ nacos-starting] c.l.StartingSpringApplicationRunListener : Nacos is starting... 2019-05-27 09:33:35.059 INFO 15356 --- [ nacos-starting] c.l.StartingSpringApplicationRunListener : Nacos is starting... 2019-05-27 09:33:36.060 INFO 15356 --- [ nacos-starting] c.l.StartingSpringApplicationRunListener : Nacos is starting... 2019-05-27 09:33:37.060 INFO 15356 --- [ nacos-starting] c.l.StartingSpringApplicationRunListener : Nacos is starting... 2019-05-27 09:33:38.064 INFO 15356 --- [ nacos-starting] c.l.StartingSpringApplicationRunListener : Nacos is starting... 2019-05-27 09:33:38.093 INFO 15356 --- [ main] c.l.StartingSpringApplicationRunListener : Nacos Log files: C:\Users\hjx\nacos/logs/ 2019-05-27 09:33:38.093 INFO 15356 --- [ main] c.l.StartingSpringApplicationRunListener : Nacos Conf files: C:\Users\hjx\nacos/conf/ 2019-05-27 09:33:38.093 INFO 15356 --- [ main] c.l.StartingSpringApplicationRunListener : Nacos Data files: C:\Users\hjx\nacos/data/ 2019-05-27 09:33:38.093 INFO 15356 --- [ main] c.l.StartingSpringApplicationRunListener : Nacos started successfully in cluster mode. org.springframework.transaction.TransactionTimedOutException: Transaction timed out: deadline was Mon May 27 09:37:37 CST 2019 at org.springframework.transaction.support.ResourceHolderSupport.checkTransactionTimeout(ResourceHolderSupport.java:155) at org.springframework.transaction.support.ResourceHolderSupport.getTimeToLiveInMillis(ResourceHolderSupport.java:144) at org.springframework.transaction.support.ResourceHolderSupport.getTimeToLiveInSeconds(ResourceHolderSupport.java:128) at org.springframework.jdbc.datasource.DataSourceUtils.applyTimeout(DataSourceUtils.java:288) at org.springframework.jdbc.core.JdbcTemplate.applyStatementSettings(JdbcTemplate.java:1373) at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:616) at org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:893) at com.alibaba.nacos.config.server.service.PersistService.addConfigInfoAtomic(PersistService.java:2641) at com.alibaba.nacos.config.server.service.PersistService.access$000(PersistService.java:74) at com.alibaba.nacos.config.server.service.PersistService$1.doInTransaction(PersistService.java:485) at com.alibaba.nacos.config.server.service.PersistService$1.doInTransaction(PersistService.java:481) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140) at com.alibaba.nacos.config.server.service.PersistService.addConfigInfo(PersistService.java:481) at com.alibaba.nacos.config.server.service.PersistService.insertOrUpdate(PersistService.java:689) at com.alibaba.nacos.config.server.service.PersistService$FastClassBySpringCGLIB$21ae4232.invoke() at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:749) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:139) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688) at com.alibaba.nacos.config.server.service.PersistService$EnhancerBySpringCGLIB$29c4ffc8.insertOrUpdate() at com.alibaba.nacos.config.server.controller.ConfigController.publishConfig(ConfigController.java:133) at com.alibaba.nacos.config.server.controller.ConfigController$FastClassBySpringCGLIB$dbb89c38.invoke() at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:749) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:88) at com.alibaba.nacos.config.server.aspect.RequestLogAspect.logClientRequest(RequestLogAspect.java:104) at com.alibaba.nacos.config.server.aspect.RequestLogAspect.interfacePublishSingle(RequestLogAspect.java:71) 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.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:644) at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:633) at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:93) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688) at com.alibaba.nacos.config.server.controller.ConfigController$EnhancerBySpringCGLIB$45e61905.publishConfig() 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:189) at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138) at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:800) at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1038) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:942) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1005) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:908) at javax.servlet.http.HttpServlet.service(HttpServlet.java:660) at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:882) at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) 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:53) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at com.alibaba.nacos.config.server.filter.NacosWebFilter.doFilter(NacosWebFilter.java:64) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.springframework.boot.actuate.web.trace.servlet.HttpTraceFilter.doFilterInternal(HttpTraceFilter.java:90) 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.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:209) at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:178) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:357) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:270) 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.FormContentFilter.doFilterInternal(FormContentFilter.java:92) 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.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.filterAndRecordMetrics(WebMvcMetricsFilter.java:117) at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:106) 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:200) 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:490) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:668) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:791) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1417) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748) org.springframework.transaction.TransactionTimedOutException: Transaction timed out: deadline was Mon May 27 10:03:56 CST 2019 at org.springframework.transaction.support.ResourceHolderSupport.checkTransactionTimeout(ResourceHolderSupport.java:155) at org.springframework.transaction.support.ResourceHolderSupport.getTimeToLiveInMillis(ResourceHolderSupport.java:144) at org.springframework.transaction.support.ResourceHolderSupport.getTimeToLiveInSeconds(ResourceHolderSupport.java:128) at org.springframework.jdbc.datasource.DataSourceUtils.applyTimeout(DataSourceUtils.java:288) at org.springframework.jdbc.core.JdbcTemplate.applyStatementSettings(JdbcTemplate.java:1373) at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:616) at org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:893) at com.alibaba.nacos.config.server.service.PersistService.addConfigInfoAtomic(PersistService.java:2641) at com.alibaba.nacos.config.server.service.PersistService.access$000(PersistService.java:74) at com.alibaba.nacos.config.server.service.PersistService$1.doInTransaction(PersistService.java:485) at com.alibaba.nacos.config.server.service.PersistService$1.doInTransaction(PersistService.java:481) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140) at com.alibaba.nacos.config.server.service.PersistService.addConfigInfo(PersistService.java:481) at com.alibaba.nacos.config.server.service.PersistService.insertOrUpdate(PersistService.java:689) at com.alibaba.nacos.config.server.service.PersistService$FastClassBySpringCGLIB$21ae4232.invoke() at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:749) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:139) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688) at com.alibaba.nacos.config.server.service.PersistService$EnhancerBySpringCGLIB$29c4ffc8.insertOrUpdate() at com.alibaba.nacos.config.server.controller.ConfigController.publishConfig(ConfigController.java:133) at com.alibaba.nacos.config.server.controller.ConfigController$FastClassBySpringCGLIB$dbb89c38.invoke() at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:749) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:88) at com.alibaba.nacos.config.server.aspect.RequestLogAspect.logClientRequest(RequestLogAspect.java:104) at com.alibaba.nacos.config.server.aspect.RequestLogAspect.interfacePublishSingle(RequestLogAspect.java:71) 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.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:644) at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:633) at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:93) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688) at com.alibaba.nacos.config.server.controller.ConfigController$EnhancerBySpringCGLIB$45e61905.publishConfig() 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:189) at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138) at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:800) at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1038) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:942) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1005) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:908) at javax.servlet.http.HttpServlet.service(HttpServlet.java:660) at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:882) at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) 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:53) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at com.alibaba.nacos.config.server.filter.NacosWebFilter.doFilter(NacosWebFilter.java:64) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.springframework.boot.actuate.web.trace.servlet.HttpTraceFilter.doFilterInternal(HttpTraceFilter.java:90) 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.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:209) at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:178) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:357) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:270) 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.FormContentFilter.doFilterInternal(FormContentFilter.java:92) 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.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.filterAndRecordMetrics(WebMvcMetricsFilter.java:117) at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:106) 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:200) 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:490) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:668) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:791) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1417) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748)

ouyangzhiming commented 5 years ago

org.springframework.transaction.TransactionTimedOutException: Transaction timed out: deadline was Mon May 27 10:03:56 CST 2019

ouyangzhiming commented 5 years ago

发布失败。请检查参数是否正确。

ouyangzhiming commented 5 years ago

private long addConfigInfoAtomic(final String srcIp, final String srcUser, final ConfigInfo configInfo, final Timestamp time, Map<String, Object> configAdvanceInfo) { final String appNameTmp = StringUtils.isBlank(configInfo.getAppName()) ? StringUtils.EMPTY : configInfo.getAppName(); final String tenantTmp = StringUtils.isBlank(configInfo.getTenant()) ? StringUtils.EMPTY : configInfo.getTenant();

    final String desc = configAdvanceInfo == null ? null : (String) configAdvanceInfo.get("desc");
    final String use = configAdvanceInfo == null ? null : (String) configAdvanceInfo.get("use");
    final String effect = configAdvanceInfo == null ? null : (String) configAdvanceInfo.get("effect");
    final String type = configAdvanceInfo == null ? null : (String) configAdvanceInfo.get("type");
    final String schema = configAdvanceInfo == null ? null : (String) configAdvanceInfo.get("schema");

    final String md5Tmp = MD5.getInstance().getMD5String(configInfo.getContent());

    KeyHolder keyHolder = new GeneratedKeyHolder();

   /* final String sql
        = "INSERT INTO config_info(data_id,group_id,tenant_id,app_name,content,md5,src_ip,src_user,gmt_create,"
        + "gmt_modified,c_desc,c_use,effect,type,c_schema) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";*/

    final String sql = "INSERT INTO config_info(id,data_id,group_id,tenant_id,app_name,content,md5"
        //    + "gmt_modified,c_desc,c_use,effect,type,c_schema) VALUES(config_info_seq.nextval,'1','1','1','1','1','1','1','1',sysdate,sysdate,'111desc','use','effect','type','schema')";
        //   + "gmt_modified,c_desc,c_use,effect,type,c_schema) VALUES(config_info_seq.nextval,:dataId,:group,:tenant,:appName,:content,:md5,:srcIp,:srcUser,:gmtCreate,:gmtModified,:desc,use,:effect,:type,:schema)";
        + ") VALUES(config_info_seq.nextval,:dataId,:group,:tenant,:appName,:content,:md5)";

    try {

        configInfo.setAppName(appNameTmp);
        configInfo.setTenant(tenantTmp);
        configInfo.setMd5(md5Tmp);
        configInfo.setType(type);
        configInfo.setDesc(desc);
        configInfo.setSchema(schema);
        configInfo.setUse(use);
        configInfo.setSrcIp(srcIp);
        configInfo.setSrcUser(srcUser);
        configInfo.setGmtCreate(time);
        configInfo.setGmtModified(time);
        configInfo.setEffect(effect);

        /*jt.update(new PreparedStatementCreator() {
            public PreparedStatement createPreparedStatement(Connection connection) throws SQLException {
                PreparedStatement ps = connection.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);
                ps.setString(1, configInfo.getDataId());
                ps.setString(2, configInfo.getGroup());
                ps.setString(3, tenantTmp);
                ps.setString(4, appNameTmp);
                ps.setString(5, configInfo.getContent());
                ps.setString(6, md5Tmp);
                ps.setString(7, srcIp);
                ps.setString(8, srcUser);
                ps.setTimestamp(9, time);
                ps.setTimestamp(10, time);
                ps.setString(11, desc);
                ps.setString(12, use);
                ps.setString(13, effect);
                ps.setString(14, type);
                ps.setString(15, schema);
                return ps;
            }
        }, keyHolder);*/

        SqlParameterSource param = new BeanPropertySqlParameterSource(configInfo);
        this.namedParameterJdbcTemplate.update(sql,
            param, keyHolder, new String[]{"id"});

        Number nu = keyHolder.getKey();
        if (nu == null) {
            throw new IllegalArgumentException("insert config_info fail");
        }
        return nu.longValue();
    } catch (CannotGetJdbcConnectionException e) {
        fatalLog.error("[db-error] " + e.toString(), e);
        throw e;
    }
}

private static String PATTERN_STR = "*"; private final static int QUERY_LIMIT_SIZE = 50; private JdbcTemplate jt; private NamedParameterJdbcTemplate namedParameterJdbcTemplate; private TransactionTemplate tjt;

@PostConstruct public void init() { dataSourceService = dynamicDataSource.getDataSource();

    jt = getJdbcTemplate();

    namedParameterJdbcTemplate = getNamedJdbcTemplate();
    tjt = getTransactionTemplate();
}
nkorange commented 5 years ago

oracle暂不支持