meter-reading-service.2021-01-06.0.log 154 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182
  1. 2021-01-06 11:50:01.965 INFO 17540 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : Starting MeterReadingServiceTests on pengdi with PID 17540 (started by pengdi in C:\Users\86159\git_repos\water-iot\meter-reading-service)
  2. 2021-01-06 11:50:01.972 INFO 17540 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : The following profiles are active: common-dev,service-dev
  3. 2021-01-06 11:50:05.593 INFO 17540 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
  4. 2021-01-06 11:50:05.608 INFO 17540 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode.
  5. 2021-01-06 11:50:05.730 INFO 17540 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 60ms. Found 0 Redis repository interfaces.
  6. 2021-01-06 11:50:08.221 INFO 17540 --- [main] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource
  7. 2021-01-06 11:50:12.143 INFO 17540 --- [main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} inited
  8. 2021-01-06 11:50:17.117 INFO 17540 --- [main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
  9. 2021-01-06 11:50:22.836 INFO 17540 --- [main] o.s.a.r.c.CachingConnectionFactory : Attempting to connect to: [114.135.61.188:55672]
  10. 2021-01-06 11:50:23.239 INFO 17540 --- [main] o.s.a.r.c.CachingConnectionFactory : Created new connection: rabbitConnectionFactory#32513dea:0/SimpleConnection@718ad3a6 [delegate=amqp://zoniot@114.135.61.188:55672/, localPort= 54614]
  11. 2021-01-06 11:50:23.929 INFO 17540 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : Started MeterReadingServiceTests in 25.12 seconds (JVM running for 32.589)
  12. 2021-01-06 11:51:18.569 ERROR 17540 --- [org.springframework.amqp.rabbit.RabbitListenerEndpointContainer#0-1] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, lastPacketReceivedIdleMillis : 67512
  13. 2021-01-06 11:51:18.601 ERROR 17540 --- [main] c.h.z.s.impl.MeterReadRecordServiceImpl : 表775700946759057408数据异常,抄表时间与上报时间不匹配,上报时间Tue Jan 05 10:21:20 CST 2021 != 本次抄表时间2021-01-06 00:00:00
  14. 2021-01-06 11:51:18.608 ERROR 17540 --- [org.springframework.amqp.rabbit.RabbitListenerEndpointContainer#0-1] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, lastPacketReceivedIdleMillis : 68145
  15. 2021-01-06 11:51:18.637 ERROR 17540 --- [main] c.h.z.s.impl.MeterReadRecordServiceImpl : 抄表失败
  16. com.huaxu.zoniot.common.ServiceException: 抄表时间与上报时间不匹配
  17. at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl.meterReading(MeterReadRecordServiceImpl.java:306)
  18. at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl.meterReading(MeterReadRecordServiceImpl.java:362)
  19. at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl$$FastClassBySpringCGLIB$$bb0fbb6b.invoke(<generated>)
  20. at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
  21. at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:687)
  22. at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl$$EnhancerBySpringCGLIB$$9b965d51.meterReading(<generated>)
  23. at com.huaxu.zoniot.MeterReadingServiceTests.meterReadingTest2(MeterReadingServiceTests.java:158)
  24. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  25. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  26. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  27. at java.lang.reflect.Method.invoke(Method.java:498)
  28. at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:686)
  29. at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
  30. at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
  31. at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:149)
  32. at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:140)
  33. at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:84)
  34. at org.junit.jupiter.engine.execution.ExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(ExecutableInvoker.java:115)
  35. at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105)
  36. at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
  37. at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
  38. at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
  39. at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
  40. at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:104)
  41. at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:98)
  42. at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$6(TestMethodTestDescriptor.java:212)
  43. at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
  44. at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:208)
  45. at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:137)
  46. at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:71)
  47. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:135)
  48. at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
  49. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125)
  50. at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135)
  51. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123)
  52. at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
  53. at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122)
  54. at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80)
  55. at java.util.ArrayList.forEach(ArrayList.java:1257)
  56. at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38)
  57. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139)
  58. at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
  59. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125)
  60. at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135)
  61. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123)
  62. at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
  63. at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122)
  64. at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80)
  65. at java.util.ArrayList.forEach(ArrayList.java:1257)
  66. at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38)
  67. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139)
  68. at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
  69. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125)
  70. at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135)
  71. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123)
  72. at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
  73. at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122)
  74. at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80)
  75. at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32)
  76. at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
  77. at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51)
  78. at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:248)
  79. at org.junit.platform.launcher.core.DefaultLauncher.lambda$execute$5(DefaultLauncher.java:211)
  80. at org.junit.platform.launcher.core.DefaultLauncher.withInterceptedStreams(DefaultLauncher.java:226)
  81. at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:199)
  82. at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:132)
  83. at com.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestRunner.java:69)
  84. at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
  85. at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
  86. at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
  87. 2021-01-06 11:51:27.962 INFO 17540 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Waiting for workers to finish.
  88. 2021-01-06 11:51:32.965 INFO 17540 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Workers not finished.
  89. 2021-01-06 11:51:32.966 WARN 17540 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Closing channel for unresponsive consumer: Consumer@24c84e65: tags=[[amq.ctag-Fs3hfeqbwAGzbpVmE4xWqQ]], channel=Cached Rabbit Channel: PublisherCallbackChannelImpl: AMQChannel(amqp://zoniot@114.135.61.188:55672/,2), conn: Proxy@5a06eeef Shared Rabbit Connection: SimpleConnection@718ad3a6 [delegate=amqp://zoniot@114.135.61.188:55672/, localPort= 54614], acknowledgeMode=MANUAL local queue size=0
  90. 2021-01-06 11:51:32.969 WARN 17540 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Closing channel for unresponsive consumer: Consumer@7337bd2e: tags=[[amq.ctag-JdNxUplHxw9MfW0qHxBkpg]], channel=Cached Rabbit Channel: PublisherCallbackChannelImpl: AMQChannel(amqp://zoniot@114.135.61.188:55672/,1), conn: Proxy@5a06eeef Shared Rabbit Connection: SimpleConnection@718ad3a6 [delegate=amqp://zoniot@114.135.61.188:55672/, localPort= 54614], acknowledgeMode=MANUAL local queue size=1
  91. 2021-01-06 11:51:32.974 INFO 17540 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Shutdown ignored - container is not active already
  92. 2021-01-06 11:51:37.543 INFO 17540 --- [SpringContextShutdownHook] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor'
  93. 2021-01-06 11:51:38.062 ERROR 17540 --- [org.springframework.amqp.rabbit.RabbitListenerEndpointContainer#0-1] c.h.z.s.impl.MeterReadRecordServiceImpl : 抄表失败
  94. org.springframework.data.redis.RedisConnectionFailureException: Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to 114.135.61.188:26379
  95. at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory$SharedConnection.getNativeConnection(LettuceConnectionFactory.java:1227)
  96. at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory$SharedConnection.getConnection(LettuceConnectionFactory.java:1206)
  97. at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory.getSharedConnection(LettuceConnectionFactory.java:970)
  98. at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory.getConnection(LettuceConnectionFactory.java:355)
  99. at org.springframework.data.redis.core.RedisConnectionUtils.doGetConnection(RedisConnectionUtils.java:134)
  100. at org.springframework.data.redis.core.RedisConnectionUtils.getConnection(RedisConnectionUtils.java:97)
  101. at org.springframework.data.redis.core.RedisConnectionUtils.getConnection(RedisConnectionUtils.java:84)
  102. at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:215)
  103. at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:188)
  104. at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:175)
  105. at com.huaxu.zoniot.utils.RedisUtil.set(RedisUtil.java:141)
  106. at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl.setMeterLastDataToCache(MeterReadRecordServiceImpl.java:279)
  107. at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl.meterReading(MeterReadRecordServiceImpl.java:344)
  108. at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl.meterReading(MeterReadRecordServiceImpl.java:362)
  109. at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl$$FastClassBySpringCGLIB$$bb0fbb6b.invoke(<generated>)
  110. at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
  111. at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:687)
  112. at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl$$EnhancerBySpringCGLIB$$9b965d51.meterReading(<generated>)
  113. at com.huaxu.zoniot.service.consumer.WaterMeterDataConsumer.handleMessage(WaterMeterDataConsumer.java:50)
  114. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  115. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  116. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  117. at java.lang.reflect.Method.invoke(Method.java:498)
  118. at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:171)
  119. at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:120)
  120. at org.springframework.amqp.rabbit.listener.adapter.HandlerAdapter.invoke(HandlerAdapter.java:53)
  121. at org.springframework.amqp.rabbit.listener.adapter.MessagingMessageListenerAdapter.invokeHandler(MessagingMessageListenerAdapter.java:220)
  122. at org.springframework.amqp.rabbit.listener.adapter.MessagingMessageListenerAdapter.invokeHandlerAndProcessResult(MessagingMessageListenerAdapter.java:148)
  123. at org.springframework.amqp.rabbit.listener.adapter.MessagingMessageListenerAdapter.onMessage(MessagingMessageListenerAdapter.java:133)
  124. at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:1585)
  125. at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.actualInvokeListener(AbstractMessageListenerContainer.java:1504)
  126. at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:1492)
  127. at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:1483)
  128. at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.executeListener(AbstractMessageListenerContainer.java:1427)
  129. at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.doReceiveAndExecute(SimpleMessageListenerContainer.java:970)
  130. at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.receiveAndExecute(SimpleMessageListenerContainer.java:916)
  131. at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.access$1600(SimpleMessageListenerContainer.java:83)
  132. at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.mainLoop(SimpleMessageListenerContainer.java:1291)
  133. at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.run(SimpleMessageListenerContainer.java:1197)
  134. at java.lang.Thread.run(Thread.java:748)
  135. Caused by: io.lettuce.core.RedisConnectionException: Unable to connect to 114.135.61.188:26379
  136. at io.lettuce.core.RedisConnectionException.create(RedisConnectionException.java:78)
  137. at io.lettuce.core.RedisConnectionException.create(RedisConnectionException.java:56)
  138. at io.lettuce.core.AbstractRedisClient.getConnection(AbstractRedisClient.java:234)
  139. at io.lettuce.core.RedisClient.connect(RedisClient.java:207)
  140. at org.springframework.data.redis.connection.lettuce.StandaloneConnectionProvider.lambda$getConnection$1(StandaloneConnectionProvider.java:115)
  141. at java.util.Optional.orElseGet(Optional.java:267)
  142. at org.springframework.data.redis.connection.lettuce.StandaloneConnectionProvider.getConnection(StandaloneConnectionProvider.java:115)
  143. at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory$SharedConnection.getNativeConnection(LettuceConnectionFactory.java:1225)
  144. ... 39 common frames omitted
  145. Caused by: java.nio.channels.ClosedChannelException: null
  146. at io.netty.channel.nio.AbstractNioChannel.doClose(AbstractNioChannel.java:502)
  147. at io.netty.channel.socket.nio.NioSocketChannel.doClose(NioSocketChannel.java:342)
  148. at io.netty.channel.AbstractChannel$AbstractUnsafe.doClose0(AbstractChannel.java:759)
  149. at io.netty.channel.AbstractChannel$AbstractUnsafe.close(AbstractChannel.java:736)
  150. at io.netty.channel.AbstractChannel$AbstractUnsafe.close(AbstractChannel.java:607)
  151. at io.netty.channel.nio.NioEventLoop.closeAll(NioEventLoop.java:762)
  152. at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:524)
  153. at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
  154. at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
  155. at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
  156. ... 1 common frames omitted
  157. 2021-01-06 11:51:38.065 ERROR 17540 --- [org.springframework.amqp.rabbit.RabbitListenerEndpointContainer#0-1] c.h.z.s.consumer.WaterMeterDataConsumer : 消费水表数据失败
  158. org.springframework.amqp.AmqpApplicationContextClosedException: The ApplicationContext is closed and the ConnectionFactory can no longer create connections.
  159. at org.springframework.amqp.rabbit.connection.CachingConnectionFactory.createConnection(CachingConnectionFactory.java:745)
  160. at org.springframework.amqp.rabbit.connection.CachingConnectionFactory.createBareChannel(CachingConnectionFactory.java:702)
  161. at org.springframework.amqp.rabbit.connection.CachingConnectionFactory.access$700(CachingConnectionFactory.java:102)
  162. at org.springframework.amqp.rabbit.connection.CachingConnectionFactory$CachedChannelInvocationHandler.invoke(CachingConnectionFactory.java:1205)
  163. at com.sun.proxy.$Proxy100.basicAck(Unknown Source)
  164. at com.huaxu.zoniot.service.consumer.WaterMeterDataConsumer.handleMessage(WaterMeterDataConsumer.java:51)
  165. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  166. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  167. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  168. at java.lang.reflect.Method.invoke(Method.java:498)
  169. at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:171)
  170. at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:120)
  171. at org.springframework.amqp.rabbit.listener.adapter.HandlerAdapter.invoke(HandlerAdapter.java:53)
  172. at org.springframework.amqp.rabbit.listener.adapter.MessagingMessageListenerAdapter.invokeHandler(MessagingMessageListenerAdapter.java:220)
  173. at org.springframework.amqp.rabbit.listener.adapter.MessagingMessageListenerAdapter.invokeHandlerAndProcessResult(MessagingMessageListenerAdapter.java:148)
  174. at org.springframework.amqp.rabbit.listener.adapter.MessagingMessageListenerAdapter.onMessage(MessagingMessageListenerAdapter.java:133)
  175. at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:1585)
  176. at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.actualInvokeListener(AbstractMessageListenerContainer.java:1504)
  177. at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:1492)
  178. at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:1483)
  179. at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.executeListener(AbstractMessageListenerContainer.java:1427)
  180. at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.doReceiveAndExecute(SimpleMessageListenerContainer.java:970)
  181. at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.receiveAndExecute(SimpleMessageListenerContainer.java:916)
  182. at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.access$1600(SimpleMessageListenerContainer.java:83)
  183. at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.mainLoop(SimpleMessageListenerContainer.java:1291)
  184. at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.run(SimpleMessageListenerContainer.java:1197)
  185. at java.lang.Thread.run(Thread.java:748)
  186. 2021-01-06 11:51:38.122 ERROR 17540 --- [org.springframework.amqp.rabbit.RabbitListenerEndpointContainer#0-2] c.h.z.s.impl.MeterReadRecordServiceImpl : 抄表失败
  187. org.springframework.data.redis.RedisSystemException: Redis exception; nested exception is io.lettuce.core.RedisException: Connection is closed
  188. at org.springframework.data.redis.connection.lettuce.LettuceExceptionConverter.convert(LettuceExceptionConverter.java:74)
  189. at org.springframework.data.redis.connection.lettuce.LettuceExceptionConverter.convert(LettuceExceptionConverter.java:41)
  190. at org.springframework.data.redis.PassThroughExceptionTranslationStrategy.translate(PassThroughExceptionTranslationStrategy.java:44)
  191. at org.springframework.data.redis.FallbackExceptionTranslationStrategy.translate(FallbackExceptionTranslationStrategy.java:42)
  192. at org.springframework.data.redis.connection.lettuce.LettuceConnection.convertLettuceAccessException(LettuceConnection.java:273)
  193. at org.springframework.data.redis.connection.lettuce.LettuceStringCommands.convertLettuceAccessException(LettuceStringCommands.java:799)
  194. at org.springframework.data.redis.connection.lettuce.LettuceStringCommands.set(LettuceStringCommands.java:148)
  195. at org.springframework.data.redis.connection.DefaultedRedisConnection.set(DefaultedRedisConnection.java:287)
  196. at org.springframework.data.redis.connection.DefaultStringRedisConnection.set(DefaultStringRedisConnection.java:973)
  197. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  198. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  199. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  200. at java.lang.reflect.Method.invoke(Method.java:498)
  201. at org.springframework.data.redis.core.CloseSuppressingInvocationHandler.invoke(CloseSuppressingInvocationHandler.java:61)
  202. at com.sun.proxy.$Proxy118.set(Unknown Source)
  203. at com.huaxu.zoniot.utils.RedisUtil.lambda$set$6(RedisUtil.java:145)
  204. at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:228)
  205. at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:188)
  206. at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:175)
  207. at com.huaxu.zoniot.utils.RedisUtil.set(RedisUtil.java:141)
  208. at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl.setMeterLastDataToCache(MeterReadRecordServiceImpl.java:279)
  209. at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl.meterReading(MeterReadRecordServiceImpl.java:344)
  210. at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl.meterReading(MeterReadRecordServiceImpl.java:362)
  211. at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl$$FastClassBySpringCGLIB$$bb0fbb6b.invoke(<generated>)
  212. at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
  213. at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:687)
  214. at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl$$EnhancerBySpringCGLIB$$9b965d51.meterReading(<generated>)
  215. at com.huaxu.zoniot.service.consumer.WaterMeterDataConsumer.handleMessage(WaterMeterDataConsumer.java:50)
  216. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  217. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  218. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  219. at java.lang.reflect.Method.invoke(Method.java:498)
  220. at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:171)
  221. at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:120)
  222. at org.springframework.amqp.rabbit.listener.adapter.HandlerAdapter.invoke(HandlerAdapter.java:53)
  223. at org.springframework.amqp.rabbit.listener.adapter.MessagingMessageListenerAdapter.invokeHandler(MessagingMessageListenerAdapter.java:220)
  224. at org.springframework.amqp.rabbit.listener.adapter.MessagingMessageListenerAdapter.invokeHandlerAndProcessResult(MessagingMessageListenerAdapter.java:148)
  225. at org.springframework.amqp.rabbit.listener.adapter.MessagingMessageListenerAdapter.onMessage(MessagingMessageListenerAdapter.java:133)
  226. at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:1585)
  227. at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.actualInvokeListener(AbstractMessageListenerContainer.java:1504)
  228. at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:1492)
  229. at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:1483)
  230. at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.executeListener(AbstractMessageListenerContainer.java:1427)
  231. at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.doReceiveAndExecute(SimpleMessageListenerContainer.java:970)
  232. at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.receiveAndExecute(SimpleMessageListenerContainer.java:916)
  233. at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.access$1600(SimpleMessageListenerContainer.java:83)
  234. at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.mainLoop(SimpleMessageListenerContainer.java:1291)
  235. at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.run(SimpleMessageListenerContainer.java:1197)
  236. at java.lang.Thread.run(Thread.java:748)
  237. Caused by: io.lettuce.core.RedisException: Connection is closed
  238. at io.lettuce.core.protocol.DefaultEndpoint.validateWrite(DefaultEndpoint.java:230)
  239. at io.lettuce.core.protocol.DefaultEndpoint.write(DefaultEndpoint.java:138)
  240. at io.lettuce.core.protocol.CommandExpiryWriter.write(CommandExpiryWriter.java:112)
  241. at io.lettuce.core.RedisChannelHandler.dispatch(RedisChannelHandler.java:187)
  242. at io.lettuce.core.StatefulRedisConnectionImpl.dispatch(StatefulRedisConnectionImpl.java:169)
  243. at io.lettuce.core.AbstractRedisAsyncCommands.dispatch(AbstractRedisAsyncCommands.java:472)
  244. at io.lettuce.core.AbstractRedisAsyncCommands.set(AbstractRedisAsyncCommands.java:1218)
  245. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  246. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  247. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  248. at java.lang.reflect.Method.invoke(Method.java:498)
  249. at io.lettuce.core.FutureSyncInvocationHandler.handleInvocation(FutureSyncInvocationHandler.java:57)
  250. at io.lettuce.core.internal.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:80)
  251. at com.sun.proxy.$Proxy115.set(Unknown Source)
  252. at org.springframework.data.redis.connection.lettuce.LettuceStringCommands.set(LettuceStringCommands.java:146)
  253. ... 42 common frames omitted
  254. 2021-01-06 11:51:38.123 ERROR 17540 --- [org.springframework.amqp.rabbit.RabbitListenerEndpointContainer#0-2] c.h.z.s.consumer.WaterMeterDataConsumer : 消费水表数据失败
  255. org.springframework.amqp.AmqpApplicationContextClosedException: The ApplicationContext is closed and the ConnectionFactory can no longer create connections.
  256. at org.springframework.amqp.rabbit.connection.CachingConnectionFactory.createConnection(CachingConnectionFactory.java:745)
  257. at org.springframework.amqp.rabbit.connection.CachingConnectionFactory.createBareChannel(CachingConnectionFactory.java:702)
  258. at org.springframework.amqp.rabbit.connection.CachingConnectionFactory.access$700(CachingConnectionFactory.java:102)
  259. at org.springframework.amqp.rabbit.connection.CachingConnectionFactory$CachedChannelInvocationHandler.invoke(CachingConnectionFactory.java:1205)
  260. at com.sun.proxy.$Proxy100.basicAck(Unknown Source)
  261. at com.huaxu.zoniot.service.consumer.WaterMeterDataConsumer.handleMessage(WaterMeterDataConsumer.java:51)
  262. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  263. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  264. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  265. at java.lang.reflect.Method.invoke(Method.java:498)
  266. at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:171)
  267. at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:120)
  268. at org.springframework.amqp.rabbit.listener.adapter.HandlerAdapter.invoke(HandlerAdapter.java:53)
  269. at org.springframework.amqp.rabbit.listener.adapter.MessagingMessageListenerAdapter.invokeHandler(MessagingMessageListenerAdapter.java:220)
  270. at org.springframework.amqp.rabbit.listener.adapter.MessagingMessageListenerAdapter.invokeHandlerAndProcessResult(MessagingMessageListenerAdapter.java:148)
  271. at org.springframework.amqp.rabbit.listener.adapter.MessagingMessageListenerAdapter.onMessage(MessagingMessageListenerAdapter.java:133)
  272. at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:1585)
  273. at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.actualInvokeListener(AbstractMessageListenerContainer.java:1504)
  274. at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:1492)
  275. at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:1483)
  276. at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.executeListener(AbstractMessageListenerContainer.java:1427)
  277. at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.doReceiveAndExecute(SimpleMessageListenerContainer.java:970)
  278. at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.receiveAndExecute(SimpleMessageListenerContainer.java:916)
  279. at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.access$1600(SimpleMessageListenerContainer.java:83)
  280. at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.mainLoop(SimpleMessageListenerContainer.java:1291)
  281. at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.run(SimpleMessageListenerContainer.java:1197)
  282. at java.lang.Thread.run(Thread.java:748)
  283. 2021-01-06 11:51:38.269 INFO 17540 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closing ...
  284. 2021-01-06 11:51:38.273 INFO 17540 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed
  285. 2021-01-06 11:52:23.949 INFO 2368 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : Starting MeterReadingServiceTests on pengdi with PID 2368 (started by pengdi in C:\Users\86159\git_repos\water-iot\meter-reading-service)
  286. 2021-01-06 11:52:23.956 INFO 2368 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : The following profiles are active: common-dev,service-dev
  287. 2021-01-06 11:52:26.692 INFO 2368 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
  288. 2021-01-06 11:52:26.701 INFO 2368 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode.
  289. 2021-01-06 11:52:26.784 INFO 2368 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 42ms. Found 0 Redis repository interfaces.
  290. 2021-01-06 11:52:28.821 INFO 2368 --- [main] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource
  291. 2021-01-06 11:52:33.096 INFO 2368 --- [main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} inited
  292. 2021-01-06 11:52:35.979 INFO 2368 --- [main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
  293. 2021-01-06 11:52:41.042 INFO 2368 --- [main] o.s.a.r.c.CachingConnectionFactory : Attempting to connect to: [114.135.61.188:55672]
  294. 2021-01-06 11:52:41.381 INFO 2368 --- [main] o.s.a.r.c.CachingConnectionFactory : Created new connection: rabbitConnectionFactory#1dbc607d:0/SimpleConnection@6159fb3c [delegate=amqp://zoniot@114.135.61.188:55672/, localPort= 55422]
  295. 2021-01-06 11:52:41.876 INFO 2368 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : Started MeterReadingServiceTests in 20.066 seconds (JVM running for 23.646)
  296. 2021-01-06 11:54:03.996 ERROR 2368 --- [main] c.h.z.s.impl.MeterReadRecordServiceImpl : 表775700946759057408数据异常,抄表时间与上报时间不匹配,上报时间Tue Jan 05 10:21:20 CST 2021 != 本次抄表时间2021-01-06 00:00:00
  297. 2021-01-06 11:54:04.002 ERROR 2368 --- [main] c.h.z.s.impl.MeterReadRecordServiceImpl : 抄表失败
  298. com.huaxu.zoniot.common.ServiceException: 抄表时间与上报时间不匹配
  299. at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl.meterReading(MeterReadRecordServiceImpl.java:306)
  300. at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl.meterReading(MeterReadRecordServiceImpl.java:362)
  301. at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl$$FastClassBySpringCGLIB$$bb0fbb6b.invoke(<generated>)
  302. at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
  303. at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:687)
  304. at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl$$EnhancerBySpringCGLIB$$67e60255.meterReading(<generated>)
  305. at com.huaxu.zoniot.MeterReadingServiceTests.meterReadingTest2(MeterReadingServiceTests.java:158)
  306. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  307. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  308. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  309. at java.lang.reflect.Method.invoke(Method.java:498)
  310. at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:686)
  311. at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
  312. at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
  313. at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:149)
  314. at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:140)
  315. at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:84)
  316. at org.junit.jupiter.engine.execution.ExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(ExecutableInvoker.java:115)
  317. at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105)
  318. at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
  319. at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
  320. at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
  321. at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
  322. at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:104)
  323. at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:98)
  324. at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$6(TestMethodTestDescriptor.java:212)
  325. at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
  326. at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:208)
  327. at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:137)
  328. at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:71)
  329. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:135)
  330. at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
  331. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125)
  332. at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135)
  333. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123)
  334. at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
  335. at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122)
  336. at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80)
  337. at java.util.ArrayList.forEach(ArrayList.java:1257)
  338. at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38)
  339. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139)
  340. at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
  341. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125)
  342. at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135)
  343. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123)
  344. at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
  345. at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122)
  346. at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80)
  347. at java.util.ArrayList.forEach(ArrayList.java:1257)
  348. at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38)
  349. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139)
  350. at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
  351. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125)
  352. at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135)
  353. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123)
  354. at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
  355. at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122)
  356. at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80)
  357. at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32)
  358. at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
  359. at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51)
  360. at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:248)
  361. at org.junit.platform.launcher.core.DefaultLauncher.lambda$execute$5(DefaultLauncher.java:211)
  362. at org.junit.platform.launcher.core.DefaultLauncher.withInterceptedStreams(DefaultLauncher.java:226)
  363. at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:199)
  364. at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:132)
  365. at com.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestRunner.java:69)
  366. at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
  367. at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
  368. at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
  369. 2021-01-06 11:54:04.110 ERROR 2368 --- [org.springframework.amqp.rabbit.RabbitListenerEndpointContainer#0-2] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, lastPacketReceivedIdleMillis : 76545
  370. 2021-01-06 11:54:04.110 ERROR 2368 --- [org.springframework.amqp.rabbit.RabbitListenerEndpointContainer#0-1] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, lastPacketReceivedIdleMillis : 91737
  371. 2021-01-06 11:54:04.122 INFO 2368 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Waiting for workers to finish.
  372. 2021-01-06 11:54:04.144 ERROR 2368 --- [org.springframework.amqp.rabbit.RabbitListenerEndpointContainer#0-1] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, lastPacketReceivedIdleMillis : 92845
  373. 2021-01-06 11:54:04.147 ERROR 2368 --- [org.springframework.amqp.rabbit.RabbitListenerEndpointContainer#0-2] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, lastPacketReceivedIdleMillis : 92254
  374. 2021-01-06 11:54:04.181 ERROR 2368 --- [org.springframework.amqp.rabbit.RabbitListenerEndpointContainer#0-1] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, lastPacketReceivedIdleMillis : 93744
  375. 2021-01-06 11:54:09.124 INFO 2368 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Workers not finished.
  376. 2021-01-06 11:54:09.124 WARN 2368 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Closing channel for unresponsive consumer: Consumer@70bc3a9c: tags=[[amq.ctag-XfupuoVLz2jEItzn7yjgOQ]], channel=Cached Rabbit Channel: PublisherCallbackChannelImpl: AMQChannel(amqp://zoniot@114.135.61.188:55672/,2), conn: Proxy@1031c1a0 Shared Rabbit Connection: SimpleConnection@6159fb3c [delegate=amqp://zoniot@114.135.61.188:55672/, localPort= 55422], acknowledgeMode=MANUAL local queue size=1
  377. 2021-01-06 11:54:09.125 WARN 2368 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Closing channel for unresponsive consumer: Consumer@771cbd13: tags=[[amq.ctag-0svuSG3YGhMcyYFCABqQAg]], channel=Cached Rabbit Channel: PublisherCallbackChannelImpl: AMQChannel(amqp://zoniot@114.135.61.188:55672/,1), conn: Proxy@1031c1a0 Shared Rabbit Connection: SimpleConnection@6159fb3c [delegate=amqp://zoniot@114.135.61.188:55672/, localPort= 55422], acknowledgeMode=MANUAL local queue size=2
  378. 2021-01-06 11:54:09.129 INFO 2368 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Shutdown ignored - container is not active already
  379. 2021-01-06 11:54:09.265 INFO 2368 --- [SpringContextShutdownHook] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor'
  380. 2021-01-06 11:54:09.286 INFO 2368 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closing ...
  381. 2021-01-06 11:54:09.287 INFO 2368 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed
  382. 2021-01-06 11:57:31.195 INFO 22892 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : Starting MeterReadingServiceTests on pengdi with PID 22892 (started by pengdi in C:\Users\86159\git_repos\water-iot\meter-reading-service)
  383. 2021-01-06 11:57:31.199 INFO 22892 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : The following profiles are active: common-dev,service-dev
  384. 2021-01-06 11:57:32.979 INFO 22892 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
  385. 2021-01-06 11:57:32.987 INFO 22892 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode.
  386. 2021-01-06 11:57:33.073 INFO 22892 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 42ms. Found 0 Redis repository interfaces.
  387. 2021-01-06 11:57:35.889 INFO 22892 --- [main] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource
  388. 2021-01-06 11:57:39.796 INFO 22892 --- [main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} inited
  389. 2021-01-06 11:57:42.099 INFO 22892 --- [main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
  390. 2021-01-06 11:57:46.347 INFO 22892 --- [main] o.s.a.r.c.CachingConnectionFactory : Attempting to connect to: [114.135.61.188:55672]
  391. 2021-01-06 11:57:46.643 INFO 22892 --- [main] o.s.a.r.c.CachingConnectionFactory : Created new connection: rabbitConnectionFactory#41026e5c:0/SimpleConnection@2d2af12e [delegate=amqp://zoniot@114.135.61.188:55672/, localPort= 57099]
  392. 2021-01-06 11:57:47.444 INFO 22892 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : Started MeterReadingServiceTests in 17.52 seconds (JVM running for 20.463)
  393. 2021-01-06 11:58:36.164 ERROR 22892 --- [main] c.h.z.s.impl.MeterReadRecordServiceImpl : 表775700946759057408数据异常,抄表时间与上报时间不匹配,上报时间Tue Jan 05 23:21:20 CST 2021 != 本次抄表时间2021-01-06 00:00:00
  394. 2021-01-06 11:58:36.168 ERROR 22892 --- [main] c.h.z.s.impl.MeterReadRecordServiceImpl : 抄表失败
  395. com.huaxu.zoniot.common.ServiceException: 抄表时间与上报时间不匹配
  396. at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl.meterReading(MeterReadRecordServiceImpl.java:307)
  397. at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl.meterReading(MeterReadRecordServiceImpl.java:363)
  398. at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl$$FastClassBySpringCGLIB$$bb0fbb6b.invoke(<generated>)
  399. at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
  400. at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:687)
  401. at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl$$EnhancerBySpringCGLIB$$a521bee0.meterReading(<generated>)
  402. at com.huaxu.zoniot.MeterReadingServiceTests.meterReadingTest2(MeterReadingServiceTests.java:158)
  403. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  404. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  405. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  406. at java.lang.reflect.Method.invoke(Method.java:498)
  407. at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:686)
  408. at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
  409. at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
  410. at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:149)
  411. at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:140)
  412. at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:84)
  413. at org.junit.jupiter.engine.execution.ExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(ExecutableInvoker.java:115)
  414. at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105)
  415. at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
  416. at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
  417. at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
  418. at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
  419. at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:104)
  420. at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:98)
  421. at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$6(TestMethodTestDescriptor.java:212)
  422. at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
  423. at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:208)
  424. at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:137)
  425. at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:71)
  426. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:135)
  427. at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
  428. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125)
  429. at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135)
  430. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123)
  431. at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
  432. at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122)
  433. at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80)
  434. at java.util.ArrayList.forEach(ArrayList.java:1257)
  435. at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38)
  436. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139)
  437. at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
  438. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125)
  439. at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135)
  440. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123)
  441. at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
  442. at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122)
  443. at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80)
  444. at java.util.ArrayList.forEach(ArrayList.java:1257)
  445. at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38)
  446. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139)
  447. at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
  448. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125)
  449. at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135)
  450. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123)
  451. at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
  452. at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122)
  453. at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80)
  454. at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32)
  455. at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
  456. at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51)
  457. at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:248)
  458. at org.junit.platform.launcher.core.DefaultLauncher.lambda$execute$5(DefaultLauncher.java:211)
  459. at org.junit.platform.launcher.core.DefaultLauncher.withInterceptedStreams(DefaultLauncher.java:226)
  460. at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:199)
  461. at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:132)
  462. at com.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestRunner.java:69)
  463. at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
  464. at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
  465. at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
  466. 2021-01-06 11:58:36.268 INFO 22892 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Waiting for workers to finish.
  467. 2021-01-06 11:58:37.166 INFO 22892 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Successfully waited for workers to finish.
  468. 2021-01-06 11:58:37.172 INFO 22892 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Shutdown ignored - container is not active already
  469. 2021-01-06 11:58:37.211 INFO 22892 --- [SpringContextShutdownHook] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor'
  470. 2021-01-06 11:58:37.234 INFO 22892 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closing ...
  471. 2021-01-06 11:58:37.248 INFO 22892 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed
  472. 2021-01-06 11:59:09.642 INFO 21216 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : Starting MeterReadingServiceTests on pengdi with PID 21216 (started by pengdi in C:\Users\86159\git_repos\water-iot\meter-reading-service)
  473. 2021-01-06 11:59:09.648 INFO 21216 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : The following profiles are active: common-dev,service-dev
  474. 2021-01-06 11:59:12.034 INFO 21216 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
  475. 2021-01-06 11:59:12.041 INFO 21216 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode.
  476. 2021-01-06 11:59:12.121 INFO 21216 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 43ms. Found 0 Redis repository interfaces.
  477. 2021-01-06 11:59:13.785 INFO 21216 --- [main] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource
  478. 2021-01-06 11:59:16.607 INFO 21216 --- [main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} inited
  479. 2021-01-06 11:59:18.952 INFO 21216 --- [main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
  480. 2021-01-06 11:59:23.517 INFO 21216 --- [main] o.s.a.r.c.CachingConnectionFactory : Attempting to connect to: [114.135.61.188:55672]
  481. 2021-01-06 11:59:23.874 INFO 21216 --- [main] o.s.a.r.c.CachingConnectionFactory : Created new connection: rabbitConnectionFactory#33356666:0/SimpleConnection@756200d1 [delegate=amqp://zoniot@114.135.61.188:55672/, localPort= 57827]
  482. 2021-01-06 11:59:24.522 INFO 21216 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : Started MeterReadingServiceTests in 17.082 seconds (JVM running for 20.502)
  483. 2021-01-06 12:04:46.264 ERROR 21216 --- [main] c.h.z.s.impl.MeterReadRecordServiceImpl : 表775700946759057408数据异常,抄表时间与上报时间不匹配,上报时间Tue Jan 05 23:21:20 CST 2021 != 本次抄表时间2021-01-06 00:00:00
  484. 2021-01-06 12:04:46.265 WARN 21216 --- [AMQP Connection 114.135.61.188:55672] c.r.c.impl.ForgivingExceptionHandler : An unexpected connection driver error occured (Exception message: Connection reset)
  485. 2021-01-06 12:04:46.269 ERROR 21216 --- [AMQP Connection 114.135.61.188:55672] o.s.a.r.c.CachingConnectionFactory : Channel shutdown: connection error
  486. 2021-01-06 12:04:46.269 ERROR 21216 --- [main] c.h.z.s.impl.MeterReadRecordServiceImpl : 抄表失败
  487. com.huaxu.zoniot.common.ServiceException: 抄表时间与上报时间不匹配
  488. at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl.meterReading(MeterReadRecordServiceImpl.java:307)
  489. at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl.meterReading(MeterReadRecordServiceImpl.java:363)
  490. at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl$$FastClassBySpringCGLIB$$bb0fbb6b.invoke(<generated>)
  491. at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
  492. at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:687)
  493. at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl$$EnhancerBySpringCGLIB$$3be6465.meterReading(<generated>)
  494. at com.huaxu.zoniot.MeterReadingServiceTests.meterReadingTest2(MeterReadingServiceTests.java:158)
  495. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  496. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  497. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  498. at java.lang.reflect.Method.invoke(Method.java:498)
  499. at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:686)
  500. at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
  501. at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
  502. at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:149)
  503. at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:140)
  504. at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:84)
  505. at org.junit.jupiter.engine.execution.ExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(ExecutableInvoker.java:115)
  506. at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105)
  507. at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
  508. at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
  509. at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
  510. at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
  511. at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:104)
  512. at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:98)
  513. at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$6(TestMethodTestDescriptor.java:212)
  514. at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
  515. at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:208)
  516. at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:137)
  517. at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:71)
  518. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:135)
  519. at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
  520. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125)
  521. at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135)
  522. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123)
  523. at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
  524. at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122)
  525. at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80)
  526. at java.util.ArrayList.forEach(ArrayList.java:1257)
  527. at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38)
  528. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139)
  529. at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
  530. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125)
  531. at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135)
  532. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123)
  533. at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
  534. at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122)
  535. at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80)
  536. at java.util.ArrayList.forEach(ArrayList.java:1257)
  537. at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38)
  538. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139)
  539. at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
  540. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125)
  541. at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135)
  542. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123)
  543. at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
  544. at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122)
  545. at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80)
  546. at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32)
  547. at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
  548. at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51)
  549. at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:248)
  550. at org.junit.platform.launcher.core.DefaultLauncher.lambda$execute$5(DefaultLauncher.java:211)
  551. at org.junit.platform.launcher.core.DefaultLauncher.withInterceptedStreams(DefaultLauncher.java:226)
  552. at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:199)
  553. at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:132)
  554. at com.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestRunner.java:69)
  555. at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
  556. at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
  557. at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
  558. 2021-01-06 12:04:46.270 ERROR 21216 --- [AMQP Connection 114.135.61.188:55672] o.s.a.r.c.CachingConnectionFactory : Channel shutdown: connection error
  559. 2021-01-06 12:04:46.293 INFO 21216 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Waiting for workers to finish.
  560. 2021-01-06 12:04:46.294 INFO 21216 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Successfully waited for workers to finish.
  561. 2021-01-06 12:04:46.298 INFO 21216 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Shutdown ignored - container is not active already
  562. 2021-01-06 12:04:46.301 INFO 21216 --- [SpringContextShutdownHook] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor'
  563. 2021-01-06 12:04:46.319 INFO 21216 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closing ...
  564. 2021-01-06 12:04:46.330 INFO 21216 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed
  565. 2021-01-06 12:05:38.221 INFO 22004 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : Starting MeterReadingServiceTests on pengdi with PID 22004 (started by pengdi in C:\Users\86159\git_repos\water-iot\meter-reading-service)
  566. 2021-01-06 12:05:38.224 INFO 22004 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : The following profiles are active: common-dev,service-dev
  567. 2021-01-06 12:05:39.794 INFO 22004 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
  568. 2021-01-06 12:05:39.799 INFO 22004 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode.
  569. 2021-01-06 12:05:39.852 INFO 22004 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 25ms. Found 0 Redis repository interfaces.
  570. 2021-01-06 12:05:41.045 INFO 22004 --- [main] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource
  571. 2021-01-06 12:05:43.662 INFO 22004 --- [main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} inited
  572. 2021-01-06 12:05:45.330 INFO 22004 --- [main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
  573. 2021-01-06 12:05:48.386 INFO 22004 --- [main] o.s.a.r.c.CachingConnectionFactory : Attempting to connect to: [114.135.61.188:55672]
  574. 2021-01-06 12:05:48.753 INFO 22004 --- [main] o.s.a.r.c.CachingConnectionFactory : Created new connection: rabbitConnectionFactory#57839834:0/SimpleConnection@6d7bb5cc [delegate=amqp://zoniot@114.135.61.188:55672/, localPort= 60191]
  575. 2021-01-06 12:05:49.434 INFO 22004 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : Started MeterReadingServiceTests in 12.439 seconds (JVM running for 14.619)
  576. 2021-01-06 12:06:56.701 ERROR 22004 --- [main] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, lastPacketReceivedIdleMillis : 66356
  577. 2021-01-06 12:06:56.736 ERROR 22004 --- [main] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, lastPacketReceivedIdleMillis : 73534
  578. 2021-01-06 12:06:56.865 ERROR 22004 --- [main] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, lastPacketReceivedIdleMillis : 74042
  579. 2021-01-06 12:06:56.898 ERROR 22004 --- [main] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, lastPacketReceivedIdleMillis : 74457
  580. 2021-01-06 12:06:56.938 ERROR 22004 --- [main] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, lastPacketReceivedIdleMillis : 74868
  581. 2021-01-06 12:09:20.820 INFO 22004 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Waiting for workers to finish.
  582. 2021-01-06 12:09:21.740 INFO 22004 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Successfully waited for workers to finish.
  583. 2021-01-06 12:09:21.745 INFO 22004 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Shutdown ignored - container is not active already
  584. 2021-01-06 12:09:21.791 INFO 22004 --- [SpringContextShutdownHook] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor'
  585. 2021-01-06 12:09:21.814 INFO 22004 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closing ...
  586. 2021-01-06 12:09:21.816 INFO 22004 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed
  587. 2021-01-06 12:10:28.545 INFO 12172 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : Starting MeterReadingServiceTests on pengdi with PID 12172 (started by pengdi in C:\Users\86159\git_repos\water-iot\meter-reading-service)
  588. 2021-01-06 12:10:28.550 INFO 12172 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : The following profiles are active: common-dev,service-dev
  589. 2021-01-06 12:10:30.728 INFO 12172 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
  590. 2021-01-06 12:10:30.738 INFO 12172 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode.
  591. 2021-01-06 12:10:30.836 INFO 12172 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 51ms. Found 0 Redis repository interfaces.
  592. 2021-01-06 12:10:32.441 INFO 12172 --- [main] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource
  593. 2021-01-06 12:10:35.314 INFO 12172 --- [main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} inited
  594. 2021-01-06 12:10:37.859 INFO 12172 --- [main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
  595. 2021-01-06 12:10:41.991 INFO 12172 --- [main] o.s.a.r.c.CachingConnectionFactory : Attempting to connect to: [114.135.61.188:55672]
  596. 2021-01-06 12:10:42.264 INFO 12172 --- [main] o.s.a.r.c.CachingConnectionFactory : Created new connection: rabbitConnectionFactory#1592e540:0/SimpleConnection@3c3cd7a5 [delegate=amqp://zoniot@114.135.61.188:55672/, localPort= 61727]
  597. 2021-01-06 12:10:42.952 INFO 12172 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : Started MeterReadingServiceTests in 15.965 seconds (JVM running for 18.664)
  598. 2021-01-06 12:12:54.210 ERROR 12172 --- [main] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, lastPacketReceivedIdleMillis : 106105
  599. 2021-01-06 12:12:54.247 ERROR 12172 --- [main] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, lastPacketReceivedIdleMillis : 139419
  600. 2021-01-06 12:12:54.280 ERROR 12172 --- [main] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, lastPacketReceivedIdleMillis : 139823
  601. 2021-01-06 12:12:54.318 ERROR 12172 --- [main] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, lastPacketReceivedIdleMillis : 140221
  602. 2021-01-06 12:12:54.354 ERROR 12172 --- [main] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, lastPacketReceivedIdleMillis : 140666
  603. 2021-01-06 12:13:01.225 INFO 12172 --- [main] com.huaxu.zoniot.utils.RedisUtil : [redisTemplate redis]放入 缓存 url:LAST-METER-DATA:775700946759057408
  604. 2021-01-06 12:13:05.320 INFO 12172 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Waiting for workers to finish.
  605. 2021-01-06 12:13:06.119 INFO 12172 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Successfully waited for workers to finish.
  606. 2021-01-06 12:13:06.124 INFO 12172 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Shutdown ignored - container is not active already
  607. 2021-01-06 12:13:06.165 INFO 12172 --- [SpringContextShutdownHook] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor'
  608. 2021-01-06 12:13:06.384 INFO 12172 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closing ...
  609. 2021-01-06 12:13:06.386 INFO 12172 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed
  610. 2021-01-06 12:18:45.138 INFO 272 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : Starting MeterReadingServiceTests on pengdi with PID 272 (started by pengdi in C:\Users\86159\git_repos\water-iot\meter-reading-service)
  611. 2021-01-06 12:18:45.141 INFO 272 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : The following profiles are active: common-dev,service-dev
  612. 2021-01-06 12:18:46.828 INFO 272 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
  613. 2021-01-06 12:18:46.838 INFO 272 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode.
  614. 2021-01-06 12:18:46.918 INFO 272 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 38ms. Found 0 Redis repository interfaces.
  615. 2021-01-06 12:18:49.688 INFO 272 --- [main] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource
  616. 2021-01-06 12:18:53.418 INFO 272 --- [main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} inited
  617. 2021-01-06 12:18:55.671 INFO 272 --- [main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
  618. 2021-01-06 12:18:59.743 INFO 272 --- [main] o.s.a.r.c.CachingConnectionFactory : Attempting to connect to: [114.135.61.188:55672]
  619. 2021-01-06 12:19:00.030 INFO 272 --- [main] o.s.a.r.c.CachingConnectionFactory : Created new connection: rabbitConnectionFactory#2e44cb34:0/SimpleConnection@33373f70 [delegate=amqp://zoniot@114.135.61.188:55672/, localPort= 64428]
  620. 2021-01-06 12:19:00.538 INFO 272 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : Started MeterReadingServiceTests in 16.586 seconds (JVM running for 19.439)
  621. 2021-01-06 12:20:09.120 INFO 272 --- [main] com.huaxu.zoniot.utils.RedisUtil : [redisTemplate redis]放入 缓存 url:LAST-METER-DATA:775700946759057408
  622. 2021-01-06 12:20:11.006 INFO 272 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Waiting for workers to finish.
  623. 2021-01-06 12:20:11.919 INFO 272 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Successfully waited for workers to finish.
  624. 2021-01-06 12:20:11.922 INFO 272 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Shutdown ignored - container is not active already
  625. 2021-01-06 12:20:11.963 INFO 272 --- [SpringContextShutdownHook] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor'
  626. 2021-01-06 12:20:12.082 INFO 272 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closing ...
  627. 2021-01-06 12:20:12.092 INFO 272 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed
  628. 2021-01-06 12:21:35.977 INFO 18544 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : Starting MeterReadingServiceTests on pengdi with PID 18544 (started by pengdi in C:\Users\86159\git_repos\water-iot\meter-reading-service)
  629. 2021-01-06 12:21:35.981 INFO 18544 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : The following profiles are active: common-dev,service-dev
  630. 2021-01-06 12:21:37.641 INFO 18544 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
  631. 2021-01-06 12:21:37.648 INFO 18544 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode.
  632. 2021-01-06 12:21:37.724 INFO 18544 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 39ms. Found 0 Redis repository interfaces.
  633. 2021-01-06 12:21:40.748 INFO 18544 --- [main] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource
  634. 2021-01-06 12:21:44.906 INFO 18544 --- [main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} inited
  635. 2021-01-06 12:21:47.113 INFO 18544 --- [main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
  636. 2021-01-06 12:21:51.175 INFO 18544 --- [main] o.s.a.r.c.CachingConnectionFactory : Attempting to connect to: [114.135.61.188:55672]
  637. 2021-01-06 12:21:51.517 INFO 18544 --- [main] o.s.a.r.c.CachingConnectionFactory : Created new connection: rabbitConnectionFactory#2ca1e49a:0/SimpleConnection@5c0272e0 [delegate=amqp://zoniot@114.135.61.188:55672/, localPort= 65360]
  638. 2021-01-06 12:21:52.197 INFO 18544 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : Started MeterReadingServiceTests in 17.319 seconds (JVM running for 20.057)
  639. 2021-01-06 14:10:26.080 INFO 18544 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Waiting for workers to finish.
  640. 2021-01-06 14:10:26.789 INFO 18544 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Successfully waited for workers to finish.
  641. 2021-01-06 14:10:26.795 INFO 18544 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Shutdown ignored - container is not active already
  642. 2021-01-06 14:10:26.945 INFO 18544 --- [SpringContextShutdownHook] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor'
  643. 2021-01-06 14:10:26.967 INFO 18544 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closing ...
  644. 2021-01-06 14:10:26.981 INFO 18544 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed
  645. 2021-01-06 14:10:47.613 INFO 3952 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : Starting MeterReadingServiceTests on pengdi with PID 3952 (started by pengdi in C:\Users\86159\git_repos\water-iot\meter-reading-service)
  646. 2021-01-06 14:10:47.618 INFO 3952 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : The following profiles are active: common-dev,service-dev
  647. 2021-01-06 14:10:51.322 INFO 3952 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
  648. 2021-01-06 14:10:51.326 INFO 3952 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode.
  649. 2021-01-06 14:10:51.374 INFO 3952 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 21ms. Found 0 Redis repository interfaces.
  650. 2021-01-06 14:10:52.402 INFO 3952 --- [main] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource
  651. 2021-01-06 14:10:55.235 INFO 3952 --- [main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} inited
  652. 2021-01-06 14:10:57.226 INFO 3952 --- [main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
  653. 2021-01-06 14:11:00.517 INFO 3952 --- [main] o.s.a.r.c.CachingConnectionFactory : Attempting to connect to: [114.135.61.188:55672]
  654. 2021-01-06 14:11:00.999 INFO 3952 --- [main] o.s.a.r.c.CachingConnectionFactory : Created new connection: rabbitConnectionFactory#5d9d8e46:0/SimpleConnection@67ecf7ed [delegate=amqp://zoniot@114.135.61.188:55672/, localPort= 54731]
  655. 2021-01-06 14:11:01.742 INFO 3952 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : Started MeterReadingServiceTests in 15.428 seconds (JVM running for 17.478)
  656. 2021-01-06 14:12:31.539 ERROR 3952 --- [main] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, lastPacketReceivedIdleMillis : 77452
  657. 2021-01-06 14:12:31.585 ERROR 3952 --- [main] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, lastPacketReceivedIdleMillis : 96990
  658. 2021-01-06 14:12:31.619 ERROR 3952 --- [main] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, lastPacketReceivedIdleMillis : 97471
  659. 2021-01-06 14:12:31.650 ERROR 3952 --- [main] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, lastPacketReceivedIdleMillis : 97853
  660. 2021-01-06 14:12:31.690 ERROR 3952 --- [main] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, lastPacketReceivedIdleMillis : 98265
  661. 2021-01-06 14:13:01.122 INFO 3952 --- [main] com.huaxu.zoniot.utils.RedisUtil : [redisTemplate redis]放入 缓存 url:LAST-METER-DATA:775700946759057408
  662. 2021-01-06 14:13:03.958 INFO 3952 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Waiting for workers to finish.
  663. 2021-01-06 14:13:04.853 INFO 3952 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Successfully waited for workers to finish.
  664. 2021-01-06 14:13:04.856 INFO 3952 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Shutdown ignored - container is not active already
  665. 2021-01-06 14:13:04.906 INFO 3952 --- [SpringContextShutdownHook] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor'
  666. 2021-01-06 14:13:05.025 INFO 3952 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closing ...
  667. 2021-01-06 14:13:05.028 INFO 3952 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed
  668. 2021-01-06 14:14:27.265 INFO 17276 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : Starting MeterReadingServiceTests on pengdi with PID 17276 (started by pengdi in C:\Users\86159\git_repos\water-iot\meter-reading-service)
  669. 2021-01-06 14:14:27.269 INFO 17276 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : The following profiles are active: common-dev,service-dev
  670. 2021-01-06 14:14:29.419 INFO 17276 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
  671. 2021-01-06 14:14:29.431 INFO 17276 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode.
  672. 2021-01-06 14:14:29.512 INFO 17276 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 38ms. Found 0 Redis repository interfaces.
  673. 2021-01-06 14:14:31.269 INFO 17276 --- [main] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource
  674. 2021-01-06 14:14:34.294 INFO 17276 --- [main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} inited
  675. 2021-01-06 14:14:36.943 INFO 17276 --- [main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
  676. 2021-01-06 14:14:41.486 INFO 17276 --- [main] o.s.a.r.c.CachingConnectionFactory : Attempting to connect to: [114.135.61.188:55672]
  677. 2021-01-06 14:14:41.933 INFO 17276 --- [main] o.s.a.r.c.CachingConnectionFactory : Created new connection: rabbitConnectionFactory#949d347:0/SimpleConnection@12532e37 [delegate=amqp://zoniot@114.135.61.188:55672/, localPort= 55924]
  678. 2021-01-06 14:14:42.514 INFO 17276 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : Started MeterReadingServiceTests in 17.327 seconds (JVM running for 20.296)
  679. 2021-01-06 14:15:28.863 INFO 17276 --- [main] com.huaxu.zoniot.utils.RedisUtil : [redisTemplate redis]放入 缓存 url:LAST-METER-DATA:775700946759057408
  680. 2021-01-06 14:15:28.954 INFO 17276 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Waiting for workers to finish.
  681. 2021-01-06 14:15:29.644 INFO 17276 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Successfully waited for workers to finish.
  682. 2021-01-06 14:15:29.649 INFO 17276 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Shutdown ignored - container is not active already
  683. 2021-01-06 14:15:29.715 INFO 17276 --- [SpringContextShutdownHook] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor'
  684. 2021-01-06 14:15:29.841 INFO 17276 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closing ...
  685. 2021-01-06 14:15:29.854 INFO 17276 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed
  686. 2021-01-06 20:13:46.618 INFO 4672 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : Starting MeterReadingServiceTests on pengdi with PID 4672 (started by pengdi in C:\Users\86159\git_repos\water-iot\meter-reading-service)
  687. 2021-01-06 20:13:46.622 INFO 4672 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : The following profiles are active: common-dev,service-dev
  688. 2021-01-06 20:13:49.073 INFO 4672 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
  689. 2021-01-06 20:13:49.079 INFO 4672 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data MongoDB repositories in DEFAULT mode.
  690. 2021-01-06 20:13:49.694 INFO 4672 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 597ms. Found 1 MongoDB repository interfaces.
  691. 2021-01-06 20:13:49.755 INFO 4672 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
  692. 2021-01-06 20:13:49.762 INFO 4672 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode.
  693. 2021-01-06 20:13:49.859 INFO 4672 --- [main] .RepositoryConfigurationExtensionSupport : Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.huaxu.zoniot.repository.MeterReadRecordRepository. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
  694. 2021-01-06 20:13:49.860 INFO 4672 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 47ms. Found 0 Redis repository interfaces.
  695. 2021-01-06 20:13:52.306 INFO 4672 --- [main] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource
  696. 2021-01-06 20:13:54.967 INFO 4672 --- [main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} inited
  697. 2021-01-06 20:13:58.427 INFO 4672 --- [main] org.mongodb.driver.cluster : Cluster created with settings {hosts=[114.135.61.188:17017], mode=SINGLE, requiredClusterType=UNKNOWN, serverSelectionTimeout='30000 ms', maxWaitQueueSize=500}
  698. 2021-01-06 20:13:58.882 INFO 4672 --- [cluster-ClusterId{value='5ff5a986a9db996d7e9d31f1', description='null'}-114.135.61.188:17017] org.mongodb.driver.connection : Opened connection [connectionId{localValue:1}] to 114.135.61.188:17017
  699. 2021-01-06 20:13:58.911 DEBUG 4672 --- [main] .m.c.i.MongoPersistentEntityIndexCreator : Analyzing class class com.huaxu.zoniot.entity.MeterReadRecord for index information.
  700. 2021-01-06 20:13:58.920 INFO 4672 --- [cluster-ClusterId{value='5ff5a986a9db996d7e9d31f1', description='null'}-114.135.61.188:17017] org.mongodb.driver.cluster : Monitor thread successfully connected to server with description ServerDescription{address=114.135.61.188:17017, type=SHARD_ROUTER, state=CONNECTED, ok=true, version=ServerVersion{versionList=[3, 4, 23]}, minWireVersion=0, maxWireVersion=5, maxDocumentSize=16777216, logicalSessionTimeoutMinutes=null, roundTripTimeNanos=33855500}
  701. 2021-01-06 20:13:58.937 DEBUG 4672 --- [main] .m.c.i.MongoPersistentEntityIndexCreator : Analyzing class class com.huaxu.zoniot.entity.MeasuringData for index information.
  702. 2021-01-06 20:14:01.128 INFO 4672 --- [main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
  703. 2021-01-06 20:14:03.820 INFO 4672 --- [main] o.s.a.r.c.CachingConnectionFactory : Attempting to connect to: [114.135.61.188:55672]
  704. 2021-01-06 20:14:04.434 INFO 4672 --- [main] o.s.a.r.c.CachingConnectionFactory : Created new connection: rabbitConnectionFactory#4c114687:0/SimpleConnection@6c1a63f7 [delegate=amqp://zoniot@114.135.61.188:55672/, localPort= 53068]
  705. 2021-01-06 20:14:05.189 INFO 4672 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : Started MeterReadingServiceTests in 19.821 seconds (JVM running for 22.74)
  706. 2021-01-06 20:14:32.498 INFO 4672 --- [main] io.lettuce.core.EpollProvider : Starting without optional epoll library
  707. 2021-01-06 20:14:32.510 INFO 4672 --- [main] io.lettuce.core.KqueueProvider : Starting without optional kqueue library
  708. 2021-01-06 20:14:53.572 DEBUG 4672 --- [main] o.s.data.mongodb.core.MongoTemplate : Saving Document containing fields: [_id, readDate, siteId, sysId, province, city, region, community, customerId, buildingId, location, deviceTypeId, deviceId, deviceNo, meterNo, readTime, readStatus, readData, lastValid, lastCost, status, dateCreate, dateUpdate, createBy, updateBy, lastSendData]
  709. 2021-01-06 20:14:53.990 INFO 4672 --- [main] org.mongodb.driver.connection : Opened connection [connectionId{localValue:2}] to 114.135.61.188:17017
  710. 2021-01-06 20:14:55.749 INFO 4672 --- [main] com.huaxu.zoniot.utils.RedisUtil : [redisTemplate redis]放入 缓存 url:LAST-METER-DATA:775700946759057408
  711. 2021-01-06 20:14:58.125 INFO 4672 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Waiting for workers to finish.
  712. 2021-01-06 20:14:59.037 INFO 4672 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Successfully waited for workers to finish.
  713. 2021-01-06 20:14:59.042 INFO 4672 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Shutdown ignored - container is not active already
  714. 2021-01-06 20:14:59.103 INFO 4672 --- [SpringContextShutdownHook] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor'
  715. 2021-01-06 20:14:59.105 INFO 4672 --- [SpringContextShutdownHook] org.mongodb.driver.connection : Closed connection [connectionId{localValue:2}] to 114.135.61.188:17017 because the pool has been closed.
  716. 2021-01-06 20:14:59.229 INFO 4672 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closing ...
  717. 2021-01-06 20:14:59.240 INFO 4672 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed
  718. 2021-01-06 20:18:29.191 INFO 14888 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : Starting MeterReadingServiceTests on pengdi with PID 14888 (started by pengdi in C:\Users\86159\git_repos\water-iot\meter-reading-service)
  719. 2021-01-06 20:18:29.194 INFO 14888 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : The following profiles are active: common-dev,service-dev
  720. 2021-01-06 20:18:31.097 INFO 14888 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
  721. 2021-01-06 20:18:31.149 INFO 14888 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data MongoDB repositories in DEFAULT mode.
  722. 2021-01-06 20:18:32.048 INFO 14888 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 871ms. Found 1 MongoDB repository interfaces.
  723. 2021-01-06 20:18:32.084 INFO 14888 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
  724. 2021-01-06 20:18:32.086 INFO 14888 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode.
  725. 2021-01-06 20:18:32.115 INFO 14888 --- [main] .RepositoryConfigurationExtensionSupport : Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.huaxu.zoniot.repository.MeterReadRecordRepository. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
  726. 2021-01-06 20:18:32.116 INFO 14888 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 18ms. Found 0 Redis repository interfaces.
  727. 2021-01-06 20:18:33.558 INFO 14888 --- [main] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource
  728. 2021-01-06 20:18:37.659 INFO 14888 --- [main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} inited
  729. 2021-01-06 20:18:42.033 INFO 14888 --- [main] org.mongodb.driver.cluster : Cluster created with settings {hosts=[114.135.61.188:17017], mode=SINGLE, requiredClusterType=UNKNOWN, serverSelectionTimeout='30000 ms', maxWaitQueueSize=500}
  730. 2021-01-06 20:18:42.313 INFO 14888 --- [cluster-ClusterId{value='5ff5aaa2eba12123172d1764', description='null'}-114.135.61.188:17017] org.mongodb.driver.connection : Opened connection [connectionId{localValue:1}] to 114.135.61.188:17017
  731. 2021-01-06 20:18:42.352 INFO 14888 --- [cluster-ClusterId{value='5ff5aaa2eba12123172d1764', description='null'}-114.135.61.188:17017] org.mongodb.driver.cluster : Monitor thread successfully connected to server with description ServerDescription{address=114.135.61.188:17017, type=SHARD_ROUTER, state=CONNECTED, ok=true, version=ServerVersion{versionList=[3, 4, 23]}, minWireVersion=0, maxWireVersion=5, maxDocumentSize=16777216, logicalSessionTimeoutMinutes=null, roundTripTimeNanos=34656800}
  732. 2021-01-06 20:18:42.510 DEBUG 14888 --- [main] .m.c.i.MongoPersistentEntityIndexCreator : Analyzing class class com.huaxu.zoniot.entity.MeterReadRecord for index information.
  733. 2021-01-06 20:18:42.532 DEBUG 14888 --- [main] .m.c.i.MongoPersistentEntityIndexCreator : Analyzing class class com.huaxu.zoniot.entity.MeasuringData for index information.
  734. 2021-01-06 20:18:43.759 INFO 14888 --- [main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
  735. 2021-01-06 20:18:44.918 INFO 14888 --- [main] o.s.a.r.c.CachingConnectionFactory : Attempting to connect to: [114.135.61.188:55672]
  736. 2021-01-06 20:18:45.208 INFO 14888 --- [main] o.s.a.r.c.CachingConnectionFactory : Created new connection: rabbitConnectionFactory#346330b6:0/SimpleConnection@58679ff [delegate=amqp://zoniot@114.135.61.188:55672/, localPort= 54617]
  737. 2021-01-06 20:18:45.771 INFO 14888 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : Started MeterReadingServiceTests in 17.776 seconds (JVM running for 19.108)
  738. 2021-01-06 20:18:57.082 INFO 14888 --- [main] io.lettuce.core.EpollProvider : Starting without optional epoll library
  739. 2021-01-06 20:18:57.089 INFO 14888 --- [main] io.lettuce.core.KqueueProvider : Starting without optional kqueue library
  740. 2021-01-06 20:18:59.434 WARN 14888 --- [main] c.h.z.s.impl.MeterReadRecordServiceImpl : Don't Need Create UnRead Record , Device = 775700946759057408,Last Send Time = Wed Jan 06 12:25:20 CST 2021
  741. 2021-01-06 20:19:18.216 ERROR 14888 --- [main] c.h.z.s.impl.MeterReadRecordServiceImpl : 抄表失败
  742. org.springframework.dao.DataIntegrityViolationException:
  743. ### Error updating database. Cause: java.sql.SQLIntegrityConstraintViolationException: Column 'id' cannot be null
  744. ### The error may exist in file [C:\Users\86159\git_repos\water-iot\meter-reading-common\target\classes\mapper\MeterReadRecordMapper.xml]
  745. ### The error may involve com.huaxu.zoniot.dao.MeterReadRecordMapper.insert-Inline
  746. ### The error occurred while setting parameters
  747. ### SQL: insert into sc_meter_read_record (id, read_date, site_id, sys_id, province, city, region, community, customer_id, concentrator_id, collector_id, building_id, `location`, device_type_id, device_id, device_no, meter_no, meter_file_no, read_time, read_status, read_data, last_valid, last_cost, `status`, date_create, date_update, create_by, update_by) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
  748. ### Cause: java.sql.SQLIntegrityConstraintViolationException: Column 'id' cannot be null
  749. ; Column 'id' cannot be null; nested exception is java.sql.SQLIntegrityConstraintViolationException: Column 'id' cannot be null
  750. at org.springframework.jdbc.support.SQLExceptionSubclassTranslator.doTranslate(SQLExceptionSubclassTranslator.java:87)
  751. at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:72)
  752. at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:81)
  753. at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:88)
  754. at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:440)
  755. at com.sun.proxy.$Proxy89.insert(Unknown Source)
  756. at org.mybatis.spring.SqlSessionTemplate.insert(SqlSessionTemplate.java:271)
  757. at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:62)
  758. at org.apache.ibatis.binding.MapperProxy$PlainMethodInvoker.invoke(MapperProxy.java:152)
  759. at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:85)
  760. at com.sun.proxy.$Proxy91.insert(Unknown Source)
  761. at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl.meterReading(MeterReadRecordServiceImpl.java:341)
  762. at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl.meterReading(MeterReadRecordServiceImpl.java:408)
  763. at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl$$FastClassBySpringCGLIB$$bb0fbb6b.invoke(<generated>)
  764. at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
  765. at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:687)
  766. at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl$$EnhancerBySpringCGLIB$$8689af90.meterReading(<generated>)
  767. at com.huaxu.zoniot.MeterReadingServiceTests.meterReadingTest2(MeterReadingServiceTests.java:158)
  768. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  769. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  770. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  771. at java.lang.reflect.Method.invoke(Method.java:498)
  772. at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:675)
  773. at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
  774. at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:125)
  775. at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:132)
  776. at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:124)
  777. at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:74)
  778. at org.junit.jupiter.engine.execution.ExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(ExecutableInvoker.java:115)
  779. at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105)
  780. at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:104)
  781. at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:62)
  782. at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:43)
  783. at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:35)
  784. at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:104)
  785. at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:98)
  786. at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$6(TestMethodTestDescriptor.java:202)
  787. at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
  788. at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:198)
  789. at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:135)
  790. at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:69)
  791. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:135)
  792. at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
  793. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125)
  794. at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135)
  795. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123)
  796. at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
  797. at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122)
  798. at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80)
  799. at java.util.ArrayList.forEach(ArrayList.java:1257)
  800. at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38)
  801. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139)
  802. at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
  803. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125)
  804. at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135)
  805. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123)
  806. at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
  807. at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122)
  808. at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80)
  809. at java.util.ArrayList.forEach(ArrayList.java:1257)
  810. at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38)
  811. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139)
  812. at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
  813. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125)
  814. at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135)
  815. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123)
  816. at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
  817. at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122)
  818. at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80)
  819. at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32)
  820. at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
  821. at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51)
  822. at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:229)
  823. at org.junit.platform.launcher.core.DefaultLauncher.lambda$execute$6(DefaultLauncher.java:197)
  824. at org.junit.platform.launcher.core.DefaultLauncher.withInterceptedStreams(DefaultLauncher.java:211)
  825. at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:191)
  826. at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:128)
  827. at com.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestRunner.java:69)
  828. at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
  829. at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
  830. at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
  831. Caused by: java.sql.SQLIntegrityConstraintViolationException: Column 'id' cannot be null
  832. at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:117)
  833. at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97)
  834. at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122)
  835. at com.mysql.cj.jdbc.ClientPreparedStatement.executeInternal(ClientPreparedStatement.java:953)
  836. at com.mysql.cj.jdbc.ClientPreparedStatement.execute(ClientPreparedStatement.java:370)
  837. at com.alibaba.druid.filter.FilterChainImpl.preparedStatement_execute(FilterChainImpl.java:3461)
  838. at com.alibaba.druid.wall.WallFilter.preparedStatement_execute(WallFilter.java:626)
  839. at com.alibaba.druid.filter.FilterChainImpl.preparedStatement_execute(FilterChainImpl.java:3459)
  840. at com.alibaba.druid.filter.FilterEventAdapter.preparedStatement_execute(FilterEventAdapter.java:440)
  841. at com.alibaba.druid.filter.FilterChainImpl.preparedStatement_execute(FilterChainImpl.java:3459)
  842. at com.alibaba.druid.proxy.jdbc.PreparedStatementProxyImpl.execute(PreparedStatementProxyImpl.java:167)
  843. at com.alibaba.druid.pool.DruidPooledPreparedStatement.execute(DruidPooledPreparedStatement.java:497)
  844. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  845. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  846. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  847. at java.lang.reflect.Method.invoke(Method.java:498)
  848. at org.apache.ibatis.logging.jdbc.PreparedStatementLogger.invoke(PreparedStatementLogger.java:59)
  849. at com.sun.proxy.$Proxy127.execute(Unknown Source)
  850. at org.apache.ibatis.executor.statement.PreparedStatementHandler.update(PreparedStatementHandler.java:47)
  851. at org.apache.ibatis.executor.statement.RoutingStatementHandler.update(RoutingStatementHandler.java:74)
  852. at org.apache.ibatis.executor.SimpleExecutor.doUpdate(SimpleExecutor.java:50)
  853. at org.apache.ibatis.executor.BaseExecutor.update(BaseExecutor.java:117)
  854. at org.apache.ibatis.executor.CachingExecutor.update(CachingExecutor.java:76)
  855. at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:197)
  856. at org.apache.ibatis.session.defaults.DefaultSqlSession.insert(DefaultSqlSession.java:184)
  857. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  858. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  859. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  860. at java.lang.reflect.Method.invoke(Method.java:498)
  861. at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:426)
  862. ... 76 common frames omitted
  863. 2021-01-06 20:19:18.319 INFO 14888 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Waiting for workers to finish.
  864. 2021-01-06 20:19:19.216 INFO 14888 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Successfully waited for workers to finish.
  865. 2021-01-06 20:19:19.219 INFO 14888 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Shutdown ignored - container is not active already
  866. 2021-01-06 20:19:19.265 INFO 14888 --- [SpringContextShutdownHook] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor'
  867. 2021-01-06 20:19:19.384 INFO 14888 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closing ...
  868. 2021-01-06 20:19:19.393 INFO 14888 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed
  869. 2021-01-06 20:20:02.668 INFO 14296 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : Starting MeterReadingServiceTests on pengdi with PID 14296 (started by pengdi in C:\Users\86159\git_repos\water-iot\meter-reading-service)
  870. 2021-01-06 20:20:02.672 INFO 14296 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : The following profiles are active: common-dev,service-dev
  871. 2021-01-06 20:20:04.337 INFO 14296 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
  872. 2021-01-06 20:20:04.340 INFO 14296 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data MongoDB repositories in DEFAULT mode.
  873. 2021-01-06 20:20:04.587 INFO 14296 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 240ms. Found 1 MongoDB repository interfaces.
  874. 2021-01-06 20:20:04.608 INFO 14296 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
  875. 2021-01-06 20:20:04.610 INFO 14296 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode.
  876. 2021-01-06 20:20:04.633 INFO 14296 --- [main] .RepositoryConfigurationExtensionSupport : Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.huaxu.zoniot.repository.MeterReadRecordRepository. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
  877. 2021-01-06 20:20:04.633 INFO 14296 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 13ms. Found 0 Redis repository interfaces.
  878. 2021-01-06 20:20:05.585 INFO 14296 --- [main] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource
  879. 2021-01-06 20:20:08.410 INFO 14296 --- [main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} inited
  880. 2021-01-06 20:20:11.364 INFO 14296 --- [main] org.mongodb.driver.cluster : Cluster created with settings {hosts=[114.135.61.188:17017], mode=SINGLE, requiredClusterType=UNKNOWN, serverSelectionTimeout='30000 ms', maxWaitQueueSize=500}
  881. 2021-01-06 20:20:11.669 INFO 14296 --- [cluster-ClusterId{value='5ff5aafbf203b85c0299c29a', description='null'}-114.135.61.188:17017] org.mongodb.driver.connection : Opened connection [connectionId{localValue:1}] to 114.135.61.188:17017
  882. 2021-01-06 20:20:11.726 INFO 14296 --- [cluster-ClusterId{value='5ff5aafbf203b85c0299c29a', description='null'}-114.135.61.188:17017] org.mongodb.driver.cluster : Monitor thread successfully connected to server with description ServerDescription{address=114.135.61.188:17017, type=SHARD_ROUTER, state=CONNECTED, ok=true, version=ServerVersion{versionList=[3, 4, 23]}, minWireVersion=0, maxWireVersion=5, maxDocumentSize=16777216, logicalSessionTimeoutMinutes=null, roundTripTimeNanos=53215200}
  883. 2021-01-06 20:20:11.789 DEBUG 14296 --- [main] .m.c.i.MongoPersistentEntityIndexCreator : Analyzing class class com.huaxu.zoniot.entity.MeterReadRecord for index information.
  884. 2021-01-06 20:20:11.806 DEBUG 14296 --- [main] .m.c.i.MongoPersistentEntityIndexCreator : Analyzing class class com.huaxu.zoniot.entity.MeasuringData for index information.
  885. 2021-01-06 20:20:13.081 INFO 14296 --- [main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
  886. 2021-01-06 20:20:14.349 INFO 14296 --- [main] o.s.a.r.c.CachingConnectionFactory : Attempting to connect to: [114.135.61.188:55672]
  887. 2021-01-06 20:20:14.647 INFO 14296 --- [main] o.s.a.r.c.CachingConnectionFactory : Created new connection: rabbitConnectionFactory#53a16dd6:0/SimpleConnection@64829470 [delegate=amqp://zoniot@114.135.61.188:55672/, localPort= 55121]
  888. 2021-01-06 20:20:15.153 INFO 14296 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : Started MeterReadingServiceTests in 13.895 seconds (JVM running for 15.736)
  889. 2021-01-06 20:20:31.642 INFO 14296 --- [main] io.lettuce.core.EpollProvider : Starting without optional epoll library
  890. 2021-01-06 20:20:31.650 INFO 14296 --- [main] io.lettuce.core.KqueueProvider : Starting without optional kqueue library
  891. 2021-01-06 20:20:44.744 WARN 14296 --- [main] c.h.z.s.impl.MeterReadRecordServiceImpl : Don't Need Create UnRead Record , Device = 775700946759057408,Last Send Time = Wed Jan 06 12:25:20 CST 2021
  892. 2021-01-06 20:21:58.734 ERROR 14296 --- [main] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, lastPacketReceivedIdleMillis : 95200
  893. 2021-01-06 20:21:58.773 ERROR 14296 --- [main] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, lastPacketReceivedIdleMillis : 110868
  894. 2021-01-06 20:21:58.806 ERROR 14296 --- [main] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, lastPacketReceivedIdleMillis : 111305
  895. 2021-01-06 20:21:58.810 INFO 14296 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Waiting for workers to finish.
  896. 2021-01-06 20:21:58.839 ERROR 14296 --- [main] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, lastPacketReceivedIdleMillis : 111888
  897. 2021-01-06 20:21:58.869 ERROR 14296 --- [main] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, jdbcUrl : jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull, lastPacketReceivedIdleMillis : 112499
  898. 2021-01-06 20:21:59.370 ERROR 14296 --- [main] c.h.z.s.impl.MeterReadRecordServiceImpl : 抄表失败
  899. org.springframework.dao.DataIntegrityViolationException:
  900. ### Error updating database. Cause: java.sql.SQLIntegrityConstraintViolationException: Column 'id' cannot be null
  901. ### The error may exist in file [C:\Users\86159\git_repos\water-iot\meter-reading-common\target\classes\mapper\MeterReadRecordMapper.xml]
  902. ### The error may involve com.huaxu.zoniot.dao.MeterReadRecordMapper.insert-Inline
  903. ### The error occurred while setting parameters
  904. ### SQL: insert into sc_meter_read_record (id, read_date, site_id, sys_id, province, city, region, community, customer_id, concentrator_id, collector_id, building_id, `location`, device_type_id, device_id, device_no, meter_no, meter_file_no, read_time, read_status, read_data, last_valid, last_cost, `status`, date_create, date_update, create_by, update_by) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
  905. ### Cause: java.sql.SQLIntegrityConstraintViolationException: Column 'id' cannot be null
  906. ; Column 'id' cannot be null; nested exception is java.sql.SQLIntegrityConstraintViolationException: Column 'id' cannot be null
  907. at org.springframework.jdbc.support.SQLExceptionSubclassTranslator.doTranslate(SQLExceptionSubclassTranslator.java:87)
  908. at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:72)
  909. at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:81)
  910. at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:88)
  911. at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:440)
  912. at com.sun.proxy.$Proxy89.insert(Unknown Source)
  913. at org.mybatis.spring.SqlSessionTemplate.insert(SqlSessionTemplate.java:271)
  914. at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:62)
  915. at org.apache.ibatis.binding.MapperProxy$PlainMethodInvoker.invoke(MapperProxy.java:152)
  916. at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:85)
  917. at com.sun.proxy.$Proxy91.insert(Unknown Source)
  918. at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl.meterReading(MeterReadRecordServiceImpl.java:341)
  919. at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl.meterReading(MeterReadRecordServiceImpl.java:408)
  920. at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl$$FastClassBySpringCGLIB$$bb0fbb6b.invoke(<generated>)
  921. at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
  922. at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:687)
  923. at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl$$EnhancerBySpringCGLIB$$ca58cad.meterReading(<generated>)
  924. at com.huaxu.zoniot.MeterReadingServiceTests.meterReadingTest2(MeterReadingServiceTests.java:158)
  925. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  926. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  927. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  928. at java.lang.reflect.Method.invoke(Method.java:498)
  929. at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:675)
  930. at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
  931. at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:125)
  932. at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:132)
  933. at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:124)
  934. at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:74)
  935. at org.junit.jupiter.engine.execution.ExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(ExecutableInvoker.java:115)
  936. at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105)
  937. at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:104)
  938. at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:62)
  939. at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:43)
  940. at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:35)
  941. at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:104)
  942. at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:98)
  943. at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$6(TestMethodTestDescriptor.java:202)
  944. at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
  945. at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:198)
  946. at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:135)
  947. at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:69)
  948. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:135)
  949. at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
  950. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125)
  951. at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135)
  952. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123)
  953. at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
  954. at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122)
  955. at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80)
  956. at java.util.ArrayList.forEach(ArrayList.java:1257)
  957. at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38)
  958. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139)
  959. at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
  960. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125)
  961. at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135)
  962. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123)
  963. at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
  964. at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122)
  965. at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80)
  966. at java.util.ArrayList.forEach(ArrayList.java:1257)
  967. at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38)
  968. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139)
  969. at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
  970. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125)
  971. at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135)
  972. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123)
  973. at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
  974. at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122)
  975. at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80)
  976. at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32)
  977. at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
  978. at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51)
  979. at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:229)
  980. at org.junit.platform.launcher.core.DefaultLauncher.lambda$execute$6(DefaultLauncher.java:197)
  981. at org.junit.platform.launcher.core.DefaultLauncher.withInterceptedStreams(DefaultLauncher.java:211)
  982. at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:191)
  983. at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:128)
  984. at com.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestRunner.java:69)
  985. at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
  986. at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
  987. at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
  988. Caused by: java.sql.SQLIntegrityConstraintViolationException: Column 'id' cannot be null
  989. at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:117)
  990. at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97)
  991. at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122)
  992. at com.mysql.cj.jdbc.ClientPreparedStatement.executeInternal(ClientPreparedStatement.java:953)
  993. at com.mysql.cj.jdbc.ClientPreparedStatement.execute(ClientPreparedStatement.java:370)
  994. at com.alibaba.druid.filter.FilterChainImpl.preparedStatement_execute(FilterChainImpl.java:3461)
  995. at com.alibaba.druid.wall.WallFilter.preparedStatement_execute(WallFilter.java:626)
  996. at com.alibaba.druid.filter.FilterChainImpl.preparedStatement_execute(FilterChainImpl.java:3459)
  997. at com.alibaba.druid.filter.FilterEventAdapter.preparedStatement_execute(FilterEventAdapter.java:440)
  998. at com.alibaba.druid.filter.FilterChainImpl.preparedStatement_execute(FilterChainImpl.java:3459)
  999. at com.alibaba.druid.proxy.jdbc.PreparedStatementProxyImpl.execute(PreparedStatementProxyImpl.java:167)
  1000. at com.alibaba.druid.pool.DruidPooledPreparedStatement.execute(DruidPooledPreparedStatement.java:497)
  1001. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  1002. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  1003. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  1004. at java.lang.reflect.Method.invoke(Method.java:498)
  1005. at org.apache.ibatis.logging.jdbc.PreparedStatementLogger.invoke(PreparedStatementLogger.java:59)
  1006. at com.sun.proxy.$Proxy127.execute(Unknown Source)
  1007. at org.apache.ibatis.executor.statement.PreparedStatementHandler.update(PreparedStatementHandler.java:47)
  1008. at org.apache.ibatis.executor.statement.RoutingStatementHandler.update(RoutingStatementHandler.java:74)
  1009. at org.apache.ibatis.executor.SimpleExecutor.doUpdate(SimpleExecutor.java:50)
  1010. at org.apache.ibatis.executor.BaseExecutor.update(BaseExecutor.java:117)
  1011. at org.apache.ibatis.executor.CachingExecutor.update(CachingExecutor.java:76)
  1012. at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:197)
  1013. at org.apache.ibatis.session.defaults.DefaultSqlSession.insert(DefaultSqlSession.java:184)
  1014. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  1015. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  1016. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  1017. at java.lang.reflect.Method.invoke(Method.java:498)
  1018. at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:426)
  1019. ... 76 common frames omitted
  1020. 2021-01-06 20:21:59.688 INFO 14296 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Successfully waited for workers to finish.
  1021. 2021-01-06 20:21:59.692 INFO 14296 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Shutdown ignored - container is not active already
  1022. 2021-01-06 20:21:59.739 INFO 14296 --- [SpringContextShutdownHook] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor'
  1023. 2021-01-06 20:21:59.955 INFO 14296 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closing ...
  1024. 2021-01-06 20:21:59.957 INFO 14296 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed
  1025. 2021-01-06 20:24:07.509 INFO 9040 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : Starting MeterReadingServiceTests on pengdi with PID 9040 (started by pengdi in C:\Users\86159\git_repos\water-iot\meter-reading-service)
  1026. 2021-01-06 20:24:07.512 INFO 9040 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : The following profiles are active: common-dev,service-dev
  1027. 2021-01-06 20:24:09.444 INFO 9040 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
  1028. 2021-01-06 20:24:09.448 INFO 9040 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data MongoDB repositories in DEFAULT mode.
  1029. 2021-01-06 20:24:09.946 INFO 9040 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 480ms. Found 1 MongoDB repository interfaces.
  1030. 2021-01-06 20:24:09.998 INFO 9040 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
  1031. 2021-01-06 20:24:10.003 INFO 9040 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode.
  1032. 2021-01-06 20:24:10.053 INFO 9040 --- [main] .RepositoryConfigurationExtensionSupport : Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.huaxu.zoniot.repository.MeterReadRecordRepository. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
  1033. 2021-01-06 20:24:10.054 INFO 9040 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 32ms. Found 0 Redis repository interfaces.
  1034. 2021-01-06 20:24:12.649 INFO 9040 --- [main] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource
  1035. 2021-01-06 20:24:15.920 INFO 9040 --- [main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} inited
  1036. 2021-01-06 20:24:19.496 INFO 9040 --- [main] org.mongodb.driver.cluster : Cluster created with settings {hosts=[114.135.61.188:17017], mode=SINGLE, requiredClusterType=UNKNOWN, serverSelectionTimeout='30000 ms', maxWaitQueueSize=500}
  1037. 2021-01-06 20:24:19.979 DEBUG 9040 --- [main] .m.c.i.MongoPersistentEntityIndexCreator : Analyzing class class com.huaxu.zoniot.entity.MeterReadRecord for index information.
  1038. 2021-01-06 20:24:19.989 INFO 9040 --- [cluster-ClusterId{value='5ff5abf3b7a69a1d2c3aae63', description='null'}-114.135.61.188:17017] org.mongodb.driver.connection : Opened connection [connectionId{localValue:1}] to 114.135.61.188:17017
  1039. 2021-01-06 20:24:20.001 DEBUG 9040 --- [main] .m.c.i.MongoPersistentEntityIndexCreator : Analyzing class class com.huaxu.zoniot.entity.MeasuringData for index information.
  1040. 2021-01-06 20:24:20.032 INFO 9040 --- [cluster-ClusterId{value='5ff5abf3b7a69a1d2c3aae63', description='null'}-114.135.61.188:17017] org.mongodb.driver.cluster : Monitor thread successfully connected to server with description ServerDescription{address=114.135.61.188:17017, type=SHARD_ROUTER, state=CONNECTED, ok=true, version=ServerVersion{versionList=[3, 4, 23]}, minWireVersion=0, maxWireVersion=5, maxDocumentSize=16777216, logicalSessionTimeoutMinutes=null, roundTripTimeNanos=39698900}
  1041. 2021-01-06 20:24:21.774 INFO 9040 --- [main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
  1042. 2021-01-06 20:24:23.610 INFO 9040 --- [main] o.s.a.r.c.CachingConnectionFactory : Attempting to connect to: [114.135.61.188:55672]
  1043. 2021-01-06 20:24:23.938 INFO 9040 --- [main] o.s.a.r.c.CachingConnectionFactory : Created new connection: rabbitConnectionFactory#67a3dd86:0/SimpleConnection@6b576ff8 [delegate=amqp://zoniot@114.135.61.188:55672/, localPort= 56464]
  1044. 2021-01-06 20:24:24.428 INFO 9040 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : Started MeterReadingServiceTests in 18.26 seconds (JVM running for 21.008)
  1045. 2021-01-06 20:24:41.530 INFO 9040 --- [main] io.lettuce.core.EpollProvider : Starting without optional epoll library
  1046. 2021-01-06 20:24:41.539 INFO 9040 --- [main] io.lettuce.core.KqueueProvider : Starting without optional kqueue library
  1047. 2021-01-06 20:27:47.841 WARN 9040 --- [main] c.h.z.s.impl.MeterReadRecordServiceImpl : Don't Need Create UnRead Record , Device = 775700946759057408,Last Send Time = Wed Jan 06 12:25:20 CST 2021
  1048. 2021-01-06 20:27:54.450 ERROR 9040 --- [main] c.h.z.s.impl.MeterReadRecordServiceImpl : 抄表失败
  1049. com.huaxu.zoniot.common.ServiceException: 抄表时间与上报时间错乱
  1050. at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl.meterReading(MeterReadRecordServiceImpl.java:347)
  1051. at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl.meterReading(MeterReadRecordServiceImpl.java:414)
  1052. at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl$$FastClassBySpringCGLIB$$bb0fbb6b.invoke(<generated>)
  1053. at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
  1054. at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:687)
  1055. at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl$$EnhancerBySpringCGLIB$$68a68bd6.meterReading(<generated>)
  1056. at com.huaxu.zoniot.MeterReadingServiceTests.meterReadingTest2(MeterReadingServiceTests.java:158)
  1057. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  1058. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  1059. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  1060. at java.lang.reflect.Method.invoke(Method.java:498)
  1061. at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:675)
  1062. at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
  1063. at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:125)
  1064. at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:132)
  1065. at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:124)
  1066. at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:74)
  1067. at org.junit.jupiter.engine.execution.ExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(ExecutableInvoker.java:115)
  1068. at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105)
  1069. at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:104)
  1070. at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:62)
  1071. at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:43)
  1072. at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:35)
  1073. at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:104)
  1074. at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:98)
  1075. at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$6(TestMethodTestDescriptor.java:202)
  1076. at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
  1077. at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:198)
  1078. at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:135)
  1079. at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:69)
  1080. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:135)
  1081. at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
  1082. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125)
  1083. at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135)
  1084. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123)
  1085. at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
  1086. at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122)
  1087. at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80)
  1088. at java.util.ArrayList.forEach(ArrayList.java:1257)
  1089. at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38)
  1090. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139)
  1091. at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
  1092. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125)
  1093. at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135)
  1094. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123)
  1095. at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
  1096. at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122)
  1097. at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80)
  1098. at java.util.ArrayList.forEach(ArrayList.java:1257)
  1099. at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38)
  1100. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139)
  1101. at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
  1102. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125)
  1103. at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135)
  1104. at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123)
  1105. at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
  1106. at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122)
  1107. at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80)
  1108. at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32)
  1109. at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
  1110. at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51)
  1111. at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:229)
  1112. at org.junit.platform.launcher.core.DefaultLauncher.lambda$execute$6(DefaultLauncher.java:197)
  1113. at org.junit.platform.launcher.core.DefaultLauncher.withInterceptedStreams(DefaultLauncher.java:211)
  1114. at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:191)
  1115. at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:128)
  1116. at com.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestRunner.java:69)
  1117. at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
  1118. at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
  1119. at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
  1120. 2021-01-06 20:27:54.539 INFO 9040 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Waiting for workers to finish.
  1121. 2021-01-06 20:27:55.452 INFO 9040 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Successfully waited for workers to finish.
  1122. 2021-01-06 20:27:55.455 INFO 9040 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Shutdown ignored - container is not active already
  1123. 2021-01-06 20:27:55.493 INFO 9040 --- [SpringContextShutdownHook] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor'
  1124. 2021-01-06 20:27:55.614 INFO 9040 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closing ...
  1125. 2021-01-06 20:27:55.623 INFO 9040 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed
  1126. 2021-01-06 20:29:36.739 INFO 23032 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : Starting MeterReadingServiceTests on pengdi with PID 23032 (started by pengdi in C:\Users\86159\git_repos\water-iot\meter-reading-service)
  1127. 2021-01-06 20:29:36.744 INFO 23032 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : The following profiles are active: common-dev,service-dev
  1128. 2021-01-06 20:29:39.144 INFO 23032 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
  1129. 2021-01-06 20:29:39.148 INFO 23032 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data MongoDB repositories in DEFAULT mode.
  1130. 2021-01-06 20:29:39.528 INFO 23032 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 367ms. Found 1 MongoDB repository interfaces.
  1131. 2021-01-06 20:29:39.557 INFO 23032 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
  1132. 2021-01-06 20:29:39.559 INFO 23032 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode.
  1133. 2021-01-06 20:29:39.593 INFO 23032 --- [main] .RepositoryConfigurationExtensionSupport : Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.huaxu.zoniot.repository.MeterReadRecordRepository. If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository.
  1134. 2021-01-06 20:29:39.594 INFO 23032 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 20ms. Found 0 Redis repository interfaces.
  1135. 2021-01-06 20:29:40.811 INFO 23032 --- [main] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource
  1136. 2021-01-06 20:29:44.218 INFO 23032 --- [main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} inited
  1137. 2021-01-06 20:29:47.604 INFO 23032 --- [main] org.mongodb.driver.cluster : Cluster created with settings {hosts=[114.135.61.188:17017], mode=SINGLE, requiredClusterType=UNKNOWN, serverSelectionTimeout='30000 ms', maxWaitQueueSize=500}
  1138. 2021-01-06 20:29:47.938 INFO 23032 --- [cluster-ClusterId{value='5ff5ad3bc487253d9d5326fd', description='null'}-114.135.61.188:17017] org.mongodb.driver.connection : Opened connection [connectionId{localValue:1}] to 114.135.61.188:17017
  1139. 2021-01-06 20:29:48.080 INFO 23032 --- [cluster-ClusterId{value='5ff5ad3bc487253d9d5326fd', description='null'}-114.135.61.188:17017] org.mongodb.driver.cluster : Monitor thread successfully connected to server with description ServerDescription{address=114.135.61.188:17017, type=SHARD_ROUTER, state=CONNECTED, ok=true, version=ServerVersion{versionList=[3, 4, 23]}, minWireVersion=0, maxWireVersion=5, maxDocumentSize=16777216, logicalSessionTimeoutMinutes=null, roundTripTimeNanos=137648100}
  1140. 2021-01-06 20:29:48.098 DEBUG 23032 --- [main] .m.c.i.MongoPersistentEntityIndexCreator : Analyzing class class com.huaxu.zoniot.entity.MeterReadRecord for index information.
  1141. 2021-01-06 20:29:48.119 DEBUG 23032 --- [main] .m.c.i.MongoPersistentEntityIndexCreator : Analyzing class class com.huaxu.zoniot.entity.MeasuringData for index information.
  1142. 2021-01-06 20:29:49.748 INFO 23032 --- [main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
  1143. 2021-01-06 20:29:51.356 INFO 23032 --- [main] o.s.a.r.c.CachingConnectionFactory : Attempting to connect to: [114.135.61.188:55672]
  1144. 2021-01-06 20:29:51.626 INFO 23032 --- [main] o.s.a.r.c.CachingConnectionFactory : Created new connection: rabbitConnectionFactory#74844216:0/SimpleConnection@43549c6c [delegate=amqp://zoniot@114.135.61.188:55672/, localPort= 58750]
  1145. 2021-01-06 20:29:52.084 INFO 23032 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : Started MeterReadingServiceTests in 17.293 seconds (JVM running for 20.062)
  1146. 2021-01-06 20:30:12.262 INFO 23032 --- [main] io.lettuce.core.EpollProvider : Starting without optional epoll library
  1147. 2021-01-06 20:30:12.273 INFO 23032 --- [main] io.lettuce.core.KqueueProvider : Starting without optional kqueue library
  1148. 2021-01-06 20:30:58.357 DEBUG 23032 --- [main] o.s.data.mongodb.core.MongoTemplate : Inserting Document containing fields: [_id, readDate, siteId, sysId, province, city, region, community, customerId, buildingId, location, deviceTypeId, deviceId, deviceNo, meterNo, readStatus, lastValid, lastCost, status, dateCreate, createBy, communityName, buildingName, customerName, provinceName, cityName, regionName, deviceTypeName, manufacturerId, manufacturerName] in collection: sc_meter_read_record
  1149. 2021-01-06 20:30:58.623 INFO 23032 --- [main] org.mongodb.driver.connection : Opened connection [connectionId{localValue:2}] to 114.135.61.188:17017
  1150. 2021-01-06 20:31:59.912 DEBUG 23032 --- [main] o.s.data.mongodb.core.MongoTemplate : Saving Document containing fields: [_id, readDate, siteId, sysId, province, city, region, community, customerId, buildingId, location, deviceTypeId, deviceId, deviceNo, meterNo, readTime, readStatus, readData, lastValid, lastCost, status, dateCreate, dateUpdate, createBy, updateBy, communityName, buildingName, customerName, provinceName, cityName, regionName, deviceTypeName, manufacturerId, manufacturerName, lastSendData]
  1151. 2021-01-06 20:31:59.936 INFO 23032 --- [main] org.mongodb.driver.connection : Closed connection [connectionId{localValue:2}] to 114.135.61.188:17017 because it is past its maximum allowed idle time.
  1152. 2021-01-06 20:32:00.077 INFO 23032 --- [main] org.mongodb.driver.connection : Opened connection [connectionId{localValue:3}] to 114.135.61.188:17017
  1153. 2021-01-06 20:32:02.451 INFO 23032 --- [main] com.huaxu.zoniot.utils.RedisUtil : [redisTemplate redis]放入 缓存 url:LAST-METER-DATA:775700946759057408
  1154. 2021-01-06 20:32:05.518 INFO 23032 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Waiting for workers to finish.
  1155. 2021-01-06 20:32:06.435 INFO 23032 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Successfully waited for workers to finish.
  1156. 2021-01-06 20:32:06.439 INFO 23032 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Shutdown ignored - container is not active already
  1157. 2021-01-06 20:32:06.479 INFO 23032 --- [SpringContextShutdownHook] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor'
  1158. 2021-01-06 20:32:06.480 INFO 23032 --- [SpringContextShutdownHook] org.mongodb.driver.connection : Closed connection [connectionId{localValue:3}] to 114.135.61.188:17017 because the pool has been closed.
  1159. 2021-01-06 20:32:06.608 INFO 23032 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closing ...
  1160. 2021-01-06 20:32:06.619 INFO 23032 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed