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) 2021-01-06 11:50:01.972 INFO 17540 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : The following profiles are active: common-dev,service-dev 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! 2021-01-06 11:50:05.608 INFO 17540 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode. 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. 2021-01-06 11:50:08.221 INFO 17540 --- [main] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource 2021-01-06 11:50:12.143 INFO 17540 --- [main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} inited 2021-01-06 11:50:17.117 INFO 17540 --- [main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor' 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] 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] 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) 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 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 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 2021-01-06 11:51:18.637 ERROR 17540 --- [main] c.h.z.s.impl.MeterReadRecordServiceImpl : 抄表失败 com.huaxu.zoniot.common.ServiceException: 抄表时间与上报时间不匹配 at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl.meterReading(MeterReadRecordServiceImpl.java:306) at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl.meterReading(MeterReadRecordServiceImpl.java:362) at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl$$FastClassBySpringCGLIB$$bb0fbb6b.invoke() at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:687) at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl$$EnhancerBySpringCGLIB$$9b965d51.meterReading() at com.huaxu.zoniot.MeterReadingServiceTests.meterReadingTest2(MeterReadingServiceTests.java:158) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:686) at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60) at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131) at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:149) at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:140) at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:84) at org.junit.jupiter.engine.execution.ExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(ExecutableInvoker.java:115) at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105) at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37) at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:104) at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:98) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$6(TestMethodTestDescriptor.java:212) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:208) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:137) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:71) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:135) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80) at java.util.ArrayList.forEach(ArrayList.java:1257) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80) at java.util.ArrayList.forEach(ArrayList.java:1257) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32) at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57) at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:248) at org.junit.platform.launcher.core.DefaultLauncher.lambda$execute$5(DefaultLauncher.java:211) at org.junit.platform.launcher.core.DefaultLauncher.withInterceptedStreams(DefaultLauncher.java:226) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:199) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:132) at com.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestRunner.java:69) at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70) 2021-01-06 11:51:27.962 INFO 17540 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Waiting for workers to finish. 2021-01-06 11:51:32.965 INFO 17540 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Workers not finished. 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 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 2021-01-06 11:51:32.974 INFO 17540 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Shutdown ignored - container is not active already 2021-01-06 11:51:37.543 INFO 17540 --- [SpringContextShutdownHook] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor' 2021-01-06 11:51:38.062 ERROR 17540 --- [org.springframework.amqp.rabbit.RabbitListenerEndpointContainer#0-1] c.h.z.s.impl.MeterReadRecordServiceImpl : 抄表失败 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 at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory$SharedConnection.getNativeConnection(LettuceConnectionFactory.java:1227) at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory$SharedConnection.getConnection(LettuceConnectionFactory.java:1206) at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory.getSharedConnection(LettuceConnectionFactory.java:970) at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory.getConnection(LettuceConnectionFactory.java:355) at org.springframework.data.redis.core.RedisConnectionUtils.doGetConnection(RedisConnectionUtils.java:134) at org.springframework.data.redis.core.RedisConnectionUtils.getConnection(RedisConnectionUtils.java:97) at org.springframework.data.redis.core.RedisConnectionUtils.getConnection(RedisConnectionUtils.java:84) at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:215) at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:188) at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:175) at com.huaxu.zoniot.utils.RedisUtil.set(RedisUtil.java:141) at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl.setMeterLastDataToCache(MeterReadRecordServiceImpl.java:279) at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl.meterReading(MeterReadRecordServiceImpl.java:344) at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl.meterReading(MeterReadRecordServiceImpl.java:362) at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl$$FastClassBySpringCGLIB$$bb0fbb6b.invoke() at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:687) at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl$$EnhancerBySpringCGLIB$$9b965d51.meterReading() at com.huaxu.zoniot.service.consumer.WaterMeterDataConsumer.handleMessage(WaterMeterDataConsumer.java:50) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:171) at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:120) at org.springframework.amqp.rabbit.listener.adapter.HandlerAdapter.invoke(HandlerAdapter.java:53) at org.springframework.amqp.rabbit.listener.adapter.MessagingMessageListenerAdapter.invokeHandler(MessagingMessageListenerAdapter.java:220) at org.springframework.amqp.rabbit.listener.adapter.MessagingMessageListenerAdapter.invokeHandlerAndProcessResult(MessagingMessageListenerAdapter.java:148) at org.springframework.amqp.rabbit.listener.adapter.MessagingMessageListenerAdapter.onMessage(MessagingMessageListenerAdapter.java:133) at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:1585) at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.actualInvokeListener(AbstractMessageListenerContainer.java:1504) at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:1492) at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:1483) at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.executeListener(AbstractMessageListenerContainer.java:1427) at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.doReceiveAndExecute(SimpleMessageListenerContainer.java:970) at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.receiveAndExecute(SimpleMessageListenerContainer.java:916) at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.access$1600(SimpleMessageListenerContainer.java:83) at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.mainLoop(SimpleMessageListenerContainer.java:1291) at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.run(SimpleMessageListenerContainer.java:1197) at java.lang.Thread.run(Thread.java:748) Caused by: io.lettuce.core.RedisConnectionException: Unable to connect to 114.135.61.188:26379 at io.lettuce.core.RedisConnectionException.create(RedisConnectionException.java:78) at io.lettuce.core.RedisConnectionException.create(RedisConnectionException.java:56) at io.lettuce.core.AbstractRedisClient.getConnection(AbstractRedisClient.java:234) at io.lettuce.core.RedisClient.connect(RedisClient.java:207) at org.springframework.data.redis.connection.lettuce.StandaloneConnectionProvider.lambda$getConnection$1(StandaloneConnectionProvider.java:115) at java.util.Optional.orElseGet(Optional.java:267) at org.springframework.data.redis.connection.lettuce.StandaloneConnectionProvider.getConnection(StandaloneConnectionProvider.java:115) at org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory$SharedConnection.getNativeConnection(LettuceConnectionFactory.java:1225) ... 39 common frames omitted Caused by: java.nio.channels.ClosedChannelException: null at io.netty.channel.nio.AbstractNioChannel.doClose(AbstractNioChannel.java:502) at io.netty.channel.socket.nio.NioSocketChannel.doClose(NioSocketChannel.java:342) at io.netty.channel.AbstractChannel$AbstractUnsafe.doClose0(AbstractChannel.java:759) at io.netty.channel.AbstractChannel$AbstractUnsafe.close(AbstractChannel.java:736) at io.netty.channel.AbstractChannel$AbstractUnsafe.close(AbstractChannel.java:607) at io.netty.channel.nio.NioEventLoop.closeAll(NioEventLoop.java:762) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:524) at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989) at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ... 1 common frames omitted 2021-01-06 11:51:38.065 ERROR 17540 --- [org.springframework.amqp.rabbit.RabbitListenerEndpointContainer#0-1] c.h.z.s.consumer.WaterMeterDataConsumer : 消费水表数据失败 org.springframework.amqp.AmqpApplicationContextClosedException: The ApplicationContext is closed and the ConnectionFactory can no longer create connections. at org.springframework.amqp.rabbit.connection.CachingConnectionFactory.createConnection(CachingConnectionFactory.java:745) at org.springframework.amqp.rabbit.connection.CachingConnectionFactory.createBareChannel(CachingConnectionFactory.java:702) at org.springframework.amqp.rabbit.connection.CachingConnectionFactory.access$700(CachingConnectionFactory.java:102) at org.springframework.amqp.rabbit.connection.CachingConnectionFactory$CachedChannelInvocationHandler.invoke(CachingConnectionFactory.java:1205) at com.sun.proxy.$Proxy100.basicAck(Unknown Source) at com.huaxu.zoniot.service.consumer.WaterMeterDataConsumer.handleMessage(WaterMeterDataConsumer.java:51) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:171) at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:120) at org.springframework.amqp.rabbit.listener.adapter.HandlerAdapter.invoke(HandlerAdapter.java:53) at org.springframework.amqp.rabbit.listener.adapter.MessagingMessageListenerAdapter.invokeHandler(MessagingMessageListenerAdapter.java:220) at org.springframework.amqp.rabbit.listener.adapter.MessagingMessageListenerAdapter.invokeHandlerAndProcessResult(MessagingMessageListenerAdapter.java:148) at org.springframework.amqp.rabbit.listener.adapter.MessagingMessageListenerAdapter.onMessage(MessagingMessageListenerAdapter.java:133) at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:1585) at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.actualInvokeListener(AbstractMessageListenerContainer.java:1504) at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:1492) at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:1483) at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.executeListener(AbstractMessageListenerContainer.java:1427) at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.doReceiveAndExecute(SimpleMessageListenerContainer.java:970) at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.receiveAndExecute(SimpleMessageListenerContainer.java:916) at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.access$1600(SimpleMessageListenerContainer.java:83) at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.mainLoop(SimpleMessageListenerContainer.java:1291) at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.run(SimpleMessageListenerContainer.java:1197) at java.lang.Thread.run(Thread.java:748) 2021-01-06 11:51:38.122 ERROR 17540 --- [org.springframework.amqp.rabbit.RabbitListenerEndpointContainer#0-2] c.h.z.s.impl.MeterReadRecordServiceImpl : 抄表失败 org.springframework.data.redis.RedisSystemException: Redis exception; nested exception is io.lettuce.core.RedisException: Connection is closed at org.springframework.data.redis.connection.lettuce.LettuceExceptionConverter.convert(LettuceExceptionConverter.java:74) at org.springframework.data.redis.connection.lettuce.LettuceExceptionConverter.convert(LettuceExceptionConverter.java:41) at org.springframework.data.redis.PassThroughExceptionTranslationStrategy.translate(PassThroughExceptionTranslationStrategy.java:44) at org.springframework.data.redis.FallbackExceptionTranslationStrategy.translate(FallbackExceptionTranslationStrategy.java:42) at org.springframework.data.redis.connection.lettuce.LettuceConnection.convertLettuceAccessException(LettuceConnection.java:273) at org.springframework.data.redis.connection.lettuce.LettuceStringCommands.convertLettuceAccessException(LettuceStringCommands.java:799) at org.springframework.data.redis.connection.lettuce.LettuceStringCommands.set(LettuceStringCommands.java:148) at org.springframework.data.redis.connection.DefaultedRedisConnection.set(DefaultedRedisConnection.java:287) at org.springframework.data.redis.connection.DefaultStringRedisConnection.set(DefaultStringRedisConnection.java:973) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.data.redis.core.CloseSuppressingInvocationHandler.invoke(CloseSuppressingInvocationHandler.java:61) at com.sun.proxy.$Proxy118.set(Unknown Source) at com.huaxu.zoniot.utils.RedisUtil.lambda$set$6(RedisUtil.java:145) at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:228) at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:188) at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:175) at com.huaxu.zoniot.utils.RedisUtil.set(RedisUtil.java:141) at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl.setMeterLastDataToCache(MeterReadRecordServiceImpl.java:279) at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl.meterReading(MeterReadRecordServiceImpl.java:344) at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl.meterReading(MeterReadRecordServiceImpl.java:362) at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl$$FastClassBySpringCGLIB$$bb0fbb6b.invoke() at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:687) at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl$$EnhancerBySpringCGLIB$$9b965d51.meterReading() at com.huaxu.zoniot.service.consumer.WaterMeterDataConsumer.handleMessage(WaterMeterDataConsumer.java:50) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:171) at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:120) at org.springframework.amqp.rabbit.listener.adapter.HandlerAdapter.invoke(HandlerAdapter.java:53) at org.springframework.amqp.rabbit.listener.adapter.MessagingMessageListenerAdapter.invokeHandler(MessagingMessageListenerAdapter.java:220) at org.springframework.amqp.rabbit.listener.adapter.MessagingMessageListenerAdapter.invokeHandlerAndProcessResult(MessagingMessageListenerAdapter.java:148) at org.springframework.amqp.rabbit.listener.adapter.MessagingMessageListenerAdapter.onMessage(MessagingMessageListenerAdapter.java:133) at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:1585) at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.actualInvokeListener(AbstractMessageListenerContainer.java:1504) at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:1492) at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:1483) at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.executeListener(AbstractMessageListenerContainer.java:1427) at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.doReceiveAndExecute(SimpleMessageListenerContainer.java:970) at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.receiveAndExecute(SimpleMessageListenerContainer.java:916) at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.access$1600(SimpleMessageListenerContainer.java:83) at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.mainLoop(SimpleMessageListenerContainer.java:1291) at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.run(SimpleMessageListenerContainer.java:1197) at java.lang.Thread.run(Thread.java:748) Caused by: io.lettuce.core.RedisException: Connection is closed at io.lettuce.core.protocol.DefaultEndpoint.validateWrite(DefaultEndpoint.java:230) at io.lettuce.core.protocol.DefaultEndpoint.write(DefaultEndpoint.java:138) at io.lettuce.core.protocol.CommandExpiryWriter.write(CommandExpiryWriter.java:112) at io.lettuce.core.RedisChannelHandler.dispatch(RedisChannelHandler.java:187) at io.lettuce.core.StatefulRedisConnectionImpl.dispatch(StatefulRedisConnectionImpl.java:169) at io.lettuce.core.AbstractRedisAsyncCommands.dispatch(AbstractRedisAsyncCommands.java:472) at io.lettuce.core.AbstractRedisAsyncCommands.set(AbstractRedisAsyncCommands.java:1218) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at io.lettuce.core.FutureSyncInvocationHandler.handleInvocation(FutureSyncInvocationHandler.java:57) at io.lettuce.core.internal.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:80) at com.sun.proxy.$Proxy115.set(Unknown Source) at org.springframework.data.redis.connection.lettuce.LettuceStringCommands.set(LettuceStringCommands.java:146) ... 42 common frames omitted 2021-01-06 11:51:38.123 ERROR 17540 --- [org.springframework.amqp.rabbit.RabbitListenerEndpointContainer#0-2] c.h.z.s.consumer.WaterMeterDataConsumer : 消费水表数据失败 org.springframework.amqp.AmqpApplicationContextClosedException: The ApplicationContext is closed and the ConnectionFactory can no longer create connections. at org.springframework.amqp.rabbit.connection.CachingConnectionFactory.createConnection(CachingConnectionFactory.java:745) at org.springframework.amqp.rabbit.connection.CachingConnectionFactory.createBareChannel(CachingConnectionFactory.java:702) at org.springframework.amqp.rabbit.connection.CachingConnectionFactory.access$700(CachingConnectionFactory.java:102) at org.springframework.amqp.rabbit.connection.CachingConnectionFactory$CachedChannelInvocationHandler.invoke(CachingConnectionFactory.java:1205) at com.sun.proxy.$Proxy100.basicAck(Unknown Source) at com.huaxu.zoniot.service.consumer.WaterMeterDataConsumer.handleMessage(WaterMeterDataConsumer.java:51) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:171) at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:120) at org.springframework.amqp.rabbit.listener.adapter.HandlerAdapter.invoke(HandlerAdapter.java:53) at org.springframework.amqp.rabbit.listener.adapter.MessagingMessageListenerAdapter.invokeHandler(MessagingMessageListenerAdapter.java:220) at org.springframework.amqp.rabbit.listener.adapter.MessagingMessageListenerAdapter.invokeHandlerAndProcessResult(MessagingMessageListenerAdapter.java:148) at org.springframework.amqp.rabbit.listener.adapter.MessagingMessageListenerAdapter.onMessage(MessagingMessageListenerAdapter.java:133) at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:1585) at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.actualInvokeListener(AbstractMessageListenerContainer.java:1504) at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:1492) at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:1483) at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.executeListener(AbstractMessageListenerContainer.java:1427) at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.doReceiveAndExecute(SimpleMessageListenerContainer.java:970) at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.receiveAndExecute(SimpleMessageListenerContainer.java:916) at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.access$1600(SimpleMessageListenerContainer.java:83) at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.mainLoop(SimpleMessageListenerContainer.java:1291) at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.run(SimpleMessageListenerContainer.java:1197) at java.lang.Thread.run(Thread.java:748) 2021-01-06 11:51:38.269 INFO 17540 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closing ... 2021-01-06 11:51:38.273 INFO 17540 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed 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) 2021-01-06 11:52:23.956 INFO 2368 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : The following profiles are active: common-dev,service-dev 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! 2021-01-06 11:52:26.701 INFO 2368 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode. 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. 2021-01-06 11:52:28.821 INFO 2368 --- [main] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource 2021-01-06 11:52:33.096 INFO 2368 --- [main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} inited 2021-01-06 11:52:35.979 INFO 2368 --- [main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor' 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] 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] 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) 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 2021-01-06 11:54:04.002 ERROR 2368 --- [main] c.h.z.s.impl.MeterReadRecordServiceImpl : 抄表失败 com.huaxu.zoniot.common.ServiceException: 抄表时间与上报时间不匹配 at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl.meterReading(MeterReadRecordServiceImpl.java:306) at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl.meterReading(MeterReadRecordServiceImpl.java:362) at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl$$FastClassBySpringCGLIB$$bb0fbb6b.invoke() at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:687) at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl$$EnhancerBySpringCGLIB$$67e60255.meterReading() at com.huaxu.zoniot.MeterReadingServiceTests.meterReadingTest2(MeterReadingServiceTests.java:158) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:686) at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60) at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131) at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:149) at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:140) at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:84) at org.junit.jupiter.engine.execution.ExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(ExecutableInvoker.java:115) at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105) at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37) at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:104) at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:98) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$6(TestMethodTestDescriptor.java:212) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:208) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:137) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:71) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:135) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80) at java.util.ArrayList.forEach(ArrayList.java:1257) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80) at java.util.ArrayList.forEach(ArrayList.java:1257) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32) at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57) at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:248) at org.junit.platform.launcher.core.DefaultLauncher.lambda$execute$5(DefaultLauncher.java:211) at org.junit.platform.launcher.core.DefaultLauncher.withInterceptedStreams(DefaultLauncher.java:226) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:199) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:132) at com.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestRunner.java:69) at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70) 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 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 2021-01-06 11:54:04.122 INFO 2368 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Waiting for workers to finish. 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 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 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 2021-01-06 11:54:09.124 INFO 2368 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Workers not finished. 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 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 2021-01-06 11:54:09.129 INFO 2368 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Shutdown ignored - container is not active already 2021-01-06 11:54:09.265 INFO 2368 --- [SpringContextShutdownHook] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor' 2021-01-06 11:54:09.286 INFO 2368 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closing ... 2021-01-06 11:54:09.287 INFO 2368 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed 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) 2021-01-06 11:57:31.199 INFO 22892 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : The following profiles are active: common-dev,service-dev 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! 2021-01-06 11:57:32.987 INFO 22892 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode. 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. 2021-01-06 11:57:35.889 INFO 22892 --- [main] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource 2021-01-06 11:57:39.796 INFO 22892 --- [main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} inited 2021-01-06 11:57:42.099 INFO 22892 --- [main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor' 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] 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] 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) 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 2021-01-06 11:58:36.168 ERROR 22892 --- [main] c.h.z.s.impl.MeterReadRecordServiceImpl : 抄表失败 com.huaxu.zoniot.common.ServiceException: 抄表时间与上报时间不匹配 at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl.meterReading(MeterReadRecordServiceImpl.java:307) at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl.meterReading(MeterReadRecordServiceImpl.java:363) at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl$$FastClassBySpringCGLIB$$bb0fbb6b.invoke() at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:687) at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl$$EnhancerBySpringCGLIB$$a521bee0.meterReading() at com.huaxu.zoniot.MeterReadingServiceTests.meterReadingTest2(MeterReadingServiceTests.java:158) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:686) at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60) at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131) at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:149) at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:140) at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:84) at org.junit.jupiter.engine.execution.ExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(ExecutableInvoker.java:115) at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105) at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37) at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:104) at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:98) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$6(TestMethodTestDescriptor.java:212) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:208) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:137) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:71) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:135) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80) at java.util.ArrayList.forEach(ArrayList.java:1257) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80) at java.util.ArrayList.forEach(ArrayList.java:1257) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32) at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57) at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:248) at org.junit.platform.launcher.core.DefaultLauncher.lambda$execute$5(DefaultLauncher.java:211) at org.junit.platform.launcher.core.DefaultLauncher.withInterceptedStreams(DefaultLauncher.java:226) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:199) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:132) at com.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestRunner.java:69) at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70) 2021-01-06 11:58:36.268 INFO 22892 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Waiting for workers to finish. 2021-01-06 11:58:37.166 INFO 22892 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Successfully waited for workers to finish. 2021-01-06 11:58:37.172 INFO 22892 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Shutdown ignored - container is not active already 2021-01-06 11:58:37.211 INFO 22892 --- [SpringContextShutdownHook] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor' 2021-01-06 11:58:37.234 INFO 22892 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closing ... 2021-01-06 11:58:37.248 INFO 22892 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed 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) 2021-01-06 11:59:09.648 INFO 21216 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : The following profiles are active: common-dev,service-dev 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! 2021-01-06 11:59:12.041 INFO 21216 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode. 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. 2021-01-06 11:59:13.785 INFO 21216 --- [main] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource 2021-01-06 11:59:16.607 INFO 21216 --- [main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} inited 2021-01-06 11:59:18.952 INFO 21216 --- [main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor' 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] 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] 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) 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 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) 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 2021-01-06 12:04:46.269 ERROR 21216 --- [main] c.h.z.s.impl.MeterReadRecordServiceImpl : 抄表失败 com.huaxu.zoniot.common.ServiceException: 抄表时间与上报时间不匹配 at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl.meterReading(MeterReadRecordServiceImpl.java:307) at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl.meterReading(MeterReadRecordServiceImpl.java:363) at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl$$FastClassBySpringCGLIB$$bb0fbb6b.invoke() at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:687) at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl$$EnhancerBySpringCGLIB$$3be6465.meterReading() at com.huaxu.zoniot.MeterReadingServiceTests.meterReadingTest2(MeterReadingServiceTests.java:158) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:686) at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60) at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131) at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:149) at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:140) at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:84) at org.junit.jupiter.engine.execution.ExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(ExecutableInvoker.java:115) at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105) at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37) at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:104) at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:98) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$6(TestMethodTestDescriptor.java:212) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:208) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:137) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:71) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:135) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80) at java.util.ArrayList.forEach(ArrayList.java:1257) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80) at java.util.ArrayList.forEach(ArrayList.java:1257) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32) at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57) at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:248) at org.junit.platform.launcher.core.DefaultLauncher.lambda$execute$5(DefaultLauncher.java:211) at org.junit.platform.launcher.core.DefaultLauncher.withInterceptedStreams(DefaultLauncher.java:226) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:199) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:132) at com.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestRunner.java:69) at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70) 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 2021-01-06 12:04:46.293 INFO 21216 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Waiting for workers to finish. 2021-01-06 12:04:46.294 INFO 21216 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Successfully waited for workers to finish. 2021-01-06 12:04:46.298 INFO 21216 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Shutdown ignored - container is not active already 2021-01-06 12:04:46.301 INFO 21216 --- [SpringContextShutdownHook] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor' 2021-01-06 12:04:46.319 INFO 21216 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closing ... 2021-01-06 12:04:46.330 INFO 21216 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed 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) 2021-01-06 12:05:38.224 INFO 22004 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : The following profiles are active: common-dev,service-dev 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! 2021-01-06 12:05:39.799 INFO 22004 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode. 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. 2021-01-06 12:05:41.045 INFO 22004 --- [main] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource 2021-01-06 12:05:43.662 INFO 22004 --- [main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} inited 2021-01-06 12:05:45.330 INFO 22004 --- [main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor' 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] 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] 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) 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 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 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 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 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 2021-01-06 12:09:20.820 INFO 22004 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Waiting for workers to finish. 2021-01-06 12:09:21.740 INFO 22004 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Successfully waited for workers to finish. 2021-01-06 12:09:21.745 INFO 22004 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Shutdown ignored - container is not active already 2021-01-06 12:09:21.791 INFO 22004 --- [SpringContextShutdownHook] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor' 2021-01-06 12:09:21.814 INFO 22004 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closing ... 2021-01-06 12:09:21.816 INFO 22004 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed 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) 2021-01-06 12:10:28.550 INFO 12172 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : The following profiles are active: common-dev,service-dev 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! 2021-01-06 12:10:30.738 INFO 12172 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode. 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. 2021-01-06 12:10:32.441 INFO 12172 --- [main] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource 2021-01-06 12:10:35.314 INFO 12172 --- [main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} inited 2021-01-06 12:10:37.859 INFO 12172 --- [main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor' 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] 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] 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) 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 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 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 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 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 2021-01-06 12:13:01.225 INFO 12172 --- [main] com.huaxu.zoniot.utils.RedisUtil : [redisTemplate redis]放入 缓存 url:LAST-METER-DATA:775700946759057408 2021-01-06 12:13:05.320 INFO 12172 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Waiting for workers to finish. 2021-01-06 12:13:06.119 INFO 12172 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Successfully waited for workers to finish. 2021-01-06 12:13:06.124 INFO 12172 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Shutdown ignored - container is not active already 2021-01-06 12:13:06.165 INFO 12172 --- [SpringContextShutdownHook] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor' 2021-01-06 12:13:06.384 INFO 12172 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closing ... 2021-01-06 12:13:06.386 INFO 12172 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed 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) 2021-01-06 12:18:45.141 INFO 272 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : The following profiles are active: common-dev,service-dev 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! 2021-01-06 12:18:46.838 INFO 272 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode. 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. 2021-01-06 12:18:49.688 INFO 272 --- [main] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource 2021-01-06 12:18:53.418 INFO 272 --- [main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} inited 2021-01-06 12:18:55.671 INFO 272 --- [main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor' 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] 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] 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) 2021-01-06 12:20:09.120 INFO 272 --- [main] com.huaxu.zoniot.utils.RedisUtil : [redisTemplate redis]放入 缓存 url:LAST-METER-DATA:775700946759057408 2021-01-06 12:20:11.006 INFO 272 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Waiting for workers to finish. 2021-01-06 12:20:11.919 INFO 272 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Successfully waited for workers to finish. 2021-01-06 12:20:11.922 INFO 272 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Shutdown ignored - container is not active already 2021-01-06 12:20:11.963 INFO 272 --- [SpringContextShutdownHook] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor' 2021-01-06 12:20:12.082 INFO 272 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closing ... 2021-01-06 12:20:12.092 INFO 272 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed 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) 2021-01-06 12:21:35.981 INFO 18544 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : The following profiles are active: common-dev,service-dev 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! 2021-01-06 12:21:37.648 INFO 18544 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode. 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. 2021-01-06 12:21:40.748 INFO 18544 --- [main] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource 2021-01-06 12:21:44.906 INFO 18544 --- [main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} inited 2021-01-06 12:21:47.113 INFO 18544 --- [main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor' 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] 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] 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) 2021-01-06 14:10:26.080 INFO 18544 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Waiting for workers to finish. 2021-01-06 14:10:26.789 INFO 18544 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Successfully waited for workers to finish. 2021-01-06 14:10:26.795 INFO 18544 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Shutdown ignored - container is not active already 2021-01-06 14:10:26.945 INFO 18544 --- [SpringContextShutdownHook] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor' 2021-01-06 14:10:26.967 INFO 18544 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closing ... 2021-01-06 14:10:26.981 INFO 18544 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed 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) 2021-01-06 14:10:47.618 INFO 3952 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : The following profiles are active: common-dev,service-dev 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! 2021-01-06 14:10:51.326 INFO 3952 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode. 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. 2021-01-06 14:10:52.402 INFO 3952 --- [main] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource 2021-01-06 14:10:55.235 INFO 3952 --- [main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} inited 2021-01-06 14:10:57.226 INFO 3952 --- [main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor' 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] 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] 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) 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 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 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 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 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 2021-01-06 14:13:01.122 INFO 3952 --- [main] com.huaxu.zoniot.utils.RedisUtil : [redisTemplate redis]放入 缓存 url:LAST-METER-DATA:775700946759057408 2021-01-06 14:13:03.958 INFO 3952 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Waiting for workers to finish. 2021-01-06 14:13:04.853 INFO 3952 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Successfully waited for workers to finish. 2021-01-06 14:13:04.856 INFO 3952 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Shutdown ignored - container is not active already 2021-01-06 14:13:04.906 INFO 3952 --- [SpringContextShutdownHook] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor' 2021-01-06 14:13:05.025 INFO 3952 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closing ... 2021-01-06 14:13:05.028 INFO 3952 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed 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) 2021-01-06 14:14:27.269 INFO 17276 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : The following profiles are active: common-dev,service-dev 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! 2021-01-06 14:14:29.431 INFO 17276 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode. 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. 2021-01-06 14:14:31.269 INFO 17276 --- [main] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource 2021-01-06 14:14:34.294 INFO 17276 --- [main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} inited 2021-01-06 14:14:36.943 INFO 17276 --- [main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor' 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] 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] 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) 2021-01-06 14:15:28.863 INFO 17276 --- [main] com.huaxu.zoniot.utils.RedisUtil : [redisTemplate redis]放入 缓存 url:LAST-METER-DATA:775700946759057408 2021-01-06 14:15:28.954 INFO 17276 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Waiting for workers to finish. 2021-01-06 14:15:29.644 INFO 17276 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Successfully waited for workers to finish. 2021-01-06 14:15:29.649 INFO 17276 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Shutdown ignored - container is not active already 2021-01-06 14:15:29.715 INFO 17276 --- [SpringContextShutdownHook] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor' 2021-01-06 14:15:29.841 INFO 17276 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closing ... 2021-01-06 14:15:29.854 INFO 17276 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed 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) 2021-01-06 20:13:46.622 INFO 4672 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : The following profiles are active: common-dev,service-dev 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! 2021-01-06 20:13:49.079 INFO 4672 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data MongoDB repositories in DEFAULT mode. 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. 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! 2021-01-06 20:13:49.762 INFO 4672 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode. 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. 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. 2021-01-06 20:13:52.306 INFO 4672 --- [main] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource 2021-01-06 20:13:54.967 INFO 4672 --- [main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} inited 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} 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 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. 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} 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. 2021-01-06 20:14:01.128 INFO 4672 --- [main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor' 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] 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] 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) 2021-01-06 20:14:32.498 INFO 4672 --- [main] io.lettuce.core.EpollProvider : Starting without optional epoll library 2021-01-06 20:14:32.510 INFO 4672 --- [main] io.lettuce.core.KqueueProvider : Starting without optional kqueue library 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] 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 2021-01-06 20:14:55.749 INFO 4672 --- [main] com.huaxu.zoniot.utils.RedisUtil : [redisTemplate redis]放入 缓存 url:LAST-METER-DATA:775700946759057408 2021-01-06 20:14:58.125 INFO 4672 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Waiting for workers to finish. 2021-01-06 20:14:59.037 INFO 4672 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Successfully waited for workers to finish. 2021-01-06 20:14:59.042 INFO 4672 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Shutdown ignored - container is not active already 2021-01-06 20:14:59.103 INFO 4672 --- [SpringContextShutdownHook] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor' 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. 2021-01-06 20:14:59.229 INFO 4672 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closing ... 2021-01-06 20:14:59.240 INFO 4672 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed 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) 2021-01-06 20:18:29.194 INFO 14888 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : The following profiles are active: common-dev,service-dev 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! 2021-01-06 20:18:31.149 INFO 14888 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data MongoDB repositories in DEFAULT mode. 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. 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! 2021-01-06 20:18:32.086 INFO 14888 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode. 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. 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. 2021-01-06 20:18:33.558 INFO 14888 --- [main] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource 2021-01-06 20:18:37.659 INFO 14888 --- [main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} inited 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} 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 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} 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. 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. 2021-01-06 20:18:43.759 INFO 14888 --- [main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor' 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] 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] 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) 2021-01-06 20:18:57.082 INFO 14888 --- [main] io.lettuce.core.EpollProvider : Starting without optional epoll library 2021-01-06 20:18:57.089 INFO 14888 --- [main] io.lettuce.core.KqueueProvider : Starting without optional kqueue library 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 2021-01-06 20:19:18.216 ERROR 14888 --- [main] c.h.z.s.impl.MeterReadRecordServiceImpl : 抄表失败 org.springframework.dao.DataIntegrityViolationException: ### Error updating database. Cause: java.sql.SQLIntegrityConstraintViolationException: Column 'id' cannot be null ### The error may exist in file [C:\Users\86159\git_repos\water-iot\meter-reading-common\target\classes\mapper\MeterReadRecordMapper.xml] ### The error may involve com.huaxu.zoniot.dao.MeterReadRecordMapper.insert-Inline ### The error occurred while setting parameters ### 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ### Cause: java.sql.SQLIntegrityConstraintViolationException: Column 'id' cannot be null ; Column 'id' cannot be null; nested exception is java.sql.SQLIntegrityConstraintViolationException: Column 'id' cannot be null at org.springframework.jdbc.support.SQLExceptionSubclassTranslator.doTranslate(SQLExceptionSubclassTranslator.java:87) at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:72) at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:81) at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:88) at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:440) at com.sun.proxy.$Proxy89.insert(Unknown Source) at org.mybatis.spring.SqlSessionTemplate.insert(SqlSessionTemplate.java:271) at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:62) at org.apache.ibatis.binding.MapperProxy$PlainMethodInvoker.invoke(MapperProxy.java:152) at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:85) at com.sun.proxy.$Proxy91.insert(Unknown Source) at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl.meterReading(MeterReadRecordServiceImpl.java:341) at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl.meterReading(MeterReadRecordServiceImpl.java:408) at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl$$FastClassBySpringCGLIB$$bb0fbb6b.invoke() at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:687) at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl$$EnhancerBySpringCGLIB$$8689af90.meterReading() at com.huaxu.zoniot.MeterReadingServiceTests.meterReadingTest2(MeterReadingServiceTests.java:158) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:675) at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60) at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:125) at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:132) at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:124) at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:74) at org.junit.jupiter.engine.execution.ExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(ExecutableInvoker.java:115) at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105) at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:104) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:62) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:43) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:35) at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:104) at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:98) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$6(TestMethodTestDescriptor.java:202) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:198) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:135) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:69) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:135) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80) at java.util.ArrayList.forEach(ArrayList.java:1257) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80) at java.util.ArrayList.forEach(ArrayList.java:1257) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32) at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57) at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:229) at org.junit.platform.launcher.core.DefaultLauncher.lambda$execute$6(DefaultLauncher.java:197) at org.junit.platform.launcher.core.DefaultLauncher.withInterceptedStreams(DefaultLauncher.java:211) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:191) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:128) at com.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestRunner.java:69) at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70) Caused by: java.sql.SQLIntegrityConstraintViolationException: Column 'id' cannot be null at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:117) at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97) at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122) at com.mysql.cj.jdbc.ClientPreparedStatement.executeInternal(ClientPreparedStatement.java:953) at com.mysql.cj.jdbc.ClientPreparedStatement.execute(ClientPreparedStatement.java:370) at com.alibaba.druid.filter.FilterChainImpl.preparedStatement_execute(FilterChainImpl.java:3461) at com.alibaba.druid.wall.WallFilter.preparedStatement_execute(WallFilter.java:626) at com.alibaba.druid.filter.FilterChainImpl.preparedStatement_execute(FilterChainImpl.java:3459) at com.alibaba.druid.filter.FilterEventAdapter.preparedStatement_execute(FilterEventAdapter.java:440) at com.alibaba.druid.filter.FilterChainImpl.preparedStatement_execute(FilterChainImpl.java:3459) at com.alibaba.druid.proxy.jdbc.PreparedStatementProxyImpl.execute(PreparedStatementProxyImpl.java:167) at com.alibaba.druid.pool.DruidPooledPreparedStatement.execute(DruidPooledPreparedStatement.java:497) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.ibatis.logging.jdbc.PreparedStatementLogger.invoke(PreparedStatementLogger.java:59) at com.sun.proxy.$Proxy127.execute(Unknown Source) at org.apache.ibatis.executor.statement.PreparedStatementHandler.update(PreparedStatementHandler.java:47) at org.apache.ibatis.executor.statement.RoutingStatementHandler.update(RoutingStatementHandler.java:74) at org.apache.ibatis.executor.SimpleExecutor.doUpdate(SimpleExecutor.java:50) at org.apache.ibatis.executor.BaseExecutor.update(BaseExecutor.java:117) at org.apache.ibatis.executor.CachingExecutor.update(CachingExecutor.java:76) at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:197) at org.apache.ibatis.session.defaults.DefaultSqlSession.insert(DefaultSqlSession.java:184) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:426) ... 76 common frames omitted 2021-01-06 20:19:18.319 INFO 14888 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Waiting for workers to finish. 2021-01-06 20:19:19.216 INFO 14888 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Successfully waited for workers to finish. 2021-01-06 20:19:19.219 INFO 14888 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Shutdown ignored - container is not active already 2021-01-06 20:19:19.265 INFO 14888 --- [SpringContextShutdownHook] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor' 2021-01-06 20:19:19.384 INFO 14888 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closing ... 2021-01-06 20:19:19.393 INFO 14888 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed 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) 2021-01-06 20:20:02.672 INFO 14296 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : The following profiles are active: common-dev,service-dev 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! 2021-01-06 20:20:04.340 INFO 14296 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data MongoDB repositories in DEFAULT mode. 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. 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! 2021-01-06 20:20:04.610 INFO 14296 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode. 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. 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. 2021-01-06 20:20:05.585 INFO 14296 --- [main] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource 2021-01-06 20:20:08.410 INFO 14296 --- [main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} inited 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} 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 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} 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. 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. 2021-01-06 20:20:13.081 INFO 14296 --- [main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor' 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] 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] 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) 2021-01-06 20:20:31.642 INFO 14296 --- [main] io.lettuce.core.EpollProvider : Starting without optional epoll library 2021-01-06 20:20:31.650 INFO 14296 --- [main] io.lettuce.core.KqueueProvider : Starting without optional kqueue library 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 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 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 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 2021-01-06 20:21:58.810 INFO 14296 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Waiting for workers to finish. 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 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 2021-01-06 20:21:59.370 ERROR 14296 --- [main] c.h.z.s.impl.MeterReadRecordServiceImpl : 抄表失败 org.springframework.dao.DataIntegrityViolationException: ### Error updating database. Cause: java.sql.SQLIntegrityConstraintViolationException: Column 'id' cannot be null ### The error may exist in file [C:\Users\86159\git_repos\water-iot\meter-reading-common\target\classes\mapper\MeterReadRecordMapper.xml] ### The error may involve com.huaxu.zoniot.dao.MeterReadRecordMapper.insert-Inline ### The error occurred while setting parameters ### 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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ### Cause: java.sql.SQLIntegrityConstraintViolationException: Column 'id' cannot be null ; Column 'id' cannot be null; nested exception is java.sql.SQLIntegrityConstraintViolationException: Column 'id' cannot be null at org.springframework.jdbc.support.SQLExceptionSubclassTranslator.doTranslate(SQLExceptionSubclassTranslator.java:87) at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:72) at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:81) at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:88) at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:440) at com.sun.proxy.$Proxy89.insert(Unknown Source) at org.mybatis.spring.SqlSessionTemplate.insert(SqlSessionTemplate.java:271) at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:62) at org.apache.ibatis.binding.MapperProxy$PlainMethodInvoker.invoke(MapperProxy.java:152) at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:85) at com.sun.proxy.$Proxy91.insert(Unknown Source) at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl.meterReading(MeterReadRecordServiceImpl.java:341) at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl.meterReading(MeterReadRecordServiceImpl.java:408) at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl$$FastClassBySpringCGLIB$$bb0fbb6b.invoke() at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:687) at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl$$EnhancerBySpringCGLIB$$ca58cad.meterReading() at com.huaxu.zoniot.MeterReadingServiceTests.meterReadingTest2(MeterReadingServiceTests.java:158) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:675) at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60) at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:125) at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:132) at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:124) at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:74) at org.junit.jupiter.engine.execution.ExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(ExecutableInvoker.java:115) at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105) at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:104) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:62) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:43) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:35) at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:104) at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:98) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$6(TestMethodTestDescriptor.java:202) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:198) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:135) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:69) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:135) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80) at java.util.ArrayList.forEach(ArrayList.java:1257) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80) at java.util.ArrayList.forEach(ArrayList.java:1257) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32) at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57) at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:229) at org.junit.platform.launcher.core.DefaultLauncher.lambda$execute$6(DefaultLauncher.java:197) at org.junit.platform.launcher.core.DefaultLauncher.withInterceptedStreams(DefaultLauncher.java:211) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:191) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:128) at com.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestRunner.java:69) at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70) Caused by: java.sql.SQLIntegrityConstraintViolationException: Column 'id' cannot be null at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:117) at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97) at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122) at com.mysql.cj.jdbc.ClientPreparedStatement.executeInternal(ClientPreparedStatement.java:953) at com.mysql.cj.jdbc.ClientPreparedStatement.execute(ClientPreparedStatement.java:370) at com.alibaba.druid.filter.FilterChainImpl.preparedStatement_execute(FilterChainImpl.java:3461) at com.alibaba.druid.wall.WallFilter.preparedStatement_execute(WallFilter.java:626) at com.alibaba.druid.filter.FilterChainImpl.preparedStatement_execute(FilterChainImpl.java:3459) at com.alibaba.druid.filter.FilterEventAdapter.preparedStatement_execute(FilterEventAdapter.java:440) at com.alibaba.druid.filter.FilterChainImpl.preparedStatement_execute(FilterChainImpl.java:3459) at com.alibaba.druid.proxy.jdbc.PreparedStatementProxyImpl.execute(PreparedStatementProxyImpl.java:167) at com.alibaba.druid.pool.DruidPooledPreparedStatement.execute(DruidPooledPreparedStatement.java:497) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.ibatis.logging.jdbc.PreparedStatementLogger.invoke(PreparedStatementLogger.java:59) at com.sun.proxy.$Proxy127.execute(Unknown Source) at org.apache.ibatis.executor.statement.PreparedStatementHandler.update(PreparedStatementHandler.java:47) at org.apache.ibatis.executor.statement.RoutingStatementHandler.update(RoutingStatementHandler.java:74) at org.apache.ibatis.executor.SimpleExecutor.doUpdate(SimpleExecutor.java:50) at org.apache.ibatis.executor.BaseExecutor.update(BaseExecutor.java:117) at org.apache.ibatis.executor.CachingExecutor.update(CachingExecutor.java:76) at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:197) at org.apache.ibatis.session.defaults.DefaultSqlSession.insert(DefaultSqlSession.java:184) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:426) ... 76 common frames omitted 2021-01-06 20:21:59.688 INFO 14296 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Successfully waited for workers to finish. 2021-01-06 20:21:59.692 INFO 14296 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Shutdown ignored - container is not active already 2021-01-06 20:21:59.739 INFO 14296 --- [SpringContextShutdownHook] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor' 2021-01-06 20:21:59.955 INFO 14296 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closing ... 2021-01-06 20:21:59.957 INFO 14296 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed 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) 2021-01-06 20:24:07.512 INFO 9040 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : The following profiles are active: common-dev,service-dev 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! 2021-01-06 20:24:09.448 INFO 9040 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data MongoDB repositories in DEFAULT mode. 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. 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! 2021-01-06 20:24:10.003 INFO 9040 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode. 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. 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. 2021-01-06 20:24:12.649 INFO 9040 --- [main] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource 2021-01-06 20:24:15.920 INFO 9040 --- [main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} inited 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} 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. 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 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. 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} 2021-01-06 20:24:21.774 INFO 9040 --- [main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor' 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] 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] 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) 2021-01-06 20:24:41.530 INFO 9040 --- [main] io.lettuce.core.EpollProvider : Starting without optional epoll library 2021-01-06 20:24:41.539 INFO 9040 --- [main] io.lettuce.core.KqueueProvider : Starting without optional kqueue library 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 2021-01-06 20:27:54.450 ERROR 9040 --- [main] c.h.z.s.impl.MeterReadRecordServiceImpl : 抄表失败 com.huaxu.zoniot.common.ServiceException: 抄表时间与上报时间错乱 at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl.meterReading(MeterReadRecordServiceImpl.java:347) at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl.meterReading(MeterReadRecordServiceImpl.java:414) at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl$$FastClassBySpringCGLIB$$bb0fbb6b.invoke() at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:687) at com.huaxu.zoniot.service.impl.MeterReadRecordServiceImpl$$EnhancerBySpringCGLIB$$68a68bd6.meterReading() at com.huaxu.zoniot.MeterReadingServiceTests.meterReadingTest2(MeterReadingServiceTests.java:158) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:675) at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60) at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:125) at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:132) at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:124) at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:74) at org.junit.jupiter.engine.execution.ExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(ExecutableInvoker.java:115) at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105) at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:104) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:62) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:43) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:35) at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:104) at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:98) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$6(TestMethodTestDescriptor.java:202) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:198) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:135) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:69) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:135) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80) at java.util.ArrayList.forEach(ArrayList.java:1257) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80) at java.util.ArrayList.forEach(ArrayList.java:1257) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32) at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57) at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:229) at org.junit.platform.launcher.core.DefaultLauncher.lambda$execute$6(DefaultLauncher.java:197) at org.junit.platform.launcher.core.DefaultLauncher.withInterceptedStreams(DefaultLauncher.java:211) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:191) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:128) at com.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestRunner.java:69) at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70) 2021-01-06 20:27:54.539 INFO 9040 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Waiting for workers to finish. 2021-01-06 20:27:55.452 INFO 9040 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Successfully waited for workers to finish. 2021-01-06 20:27:55.455 INFO 9040 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Shutdown ignored - container is not active already 2021-01-06 20:27:55.493 INFO 9040 --- [SpringContextShutdownHook] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor' 2021-01-06 20:27:55.614 INFO 9040 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closing ... 2021-01-06 20:27:55.623 INFO 9040 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed 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) 2021-01-06 20:29:36.744 INFO 23032 --- [main] c.huaxu.zoniot.MeterReadingServiceTests : The following profiles are active: common-dev,service-dev 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! 2021-01-06 20:29:39.148 INFO 23032 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data MongoDB repositories in DEFAULT mode. 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. 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! 2021-01-06 20:29:39.559 INFO 23032 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode. 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. 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. 2021-01-06 20:29:40.811 INFO 23032 --- [main] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource 2021-01-06 20:29:44.218 INFO 23032 --- [main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} inited 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} 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 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} 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. 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. 2021-01-06 20:29:49.748 INFO 23032 --- [main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor' 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] 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] 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) 2021-01-06 20:30:12.262 INFO 23032 --- [main] io.lettuce.core.EpollProvider : Starting without optional epoll library 2021-01-06 20:30:12.273 INFO 23032 --- [main] io.lettuce.core.KqueueProvider : Starting without optional kqueue library 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 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 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] 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. 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 2021-01-06 20:32:02.451 INFO 23032 --- [main] com.huaxu.zoniot.utils.RedisUtil : [redisTemplate redis]放入 缓存 url:LAST-METER-DATA:775700946759057408 2021-01-06 20:32:05.518 INFO 23032 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Waiting for workers to finish. 2021-01-06 20:32:06.435 INFO 23032 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Successfully waited for workers to finish. 2021-01-06 20:32:06.439 INFO 23032 --- [SpringContextShutdownHook] o.s.a.r.l.SimpleMessageListenerContainer : Shutdown ignored - container is not active already 2021-01-06 20:32:06.479 INFO 23032 --- [SpringContextShutdownHook] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor' 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. 2021-01-06 20:32:06.608 INFO 23032 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closing ... 2021-01-06 20:32:06.619 INFO 23032 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed