2024-09-19 20:42:09.927 [main] INFO com.muyu.VehicleSimulationApplication:50 - Starting VehicleSimulationApplication v1.0.4 using Java 17.0.12 with PID 36780 (E:\桌面\vehicle-simulation-1.0.4.jar started by 86188 in E:\桌面\cloud-server-master) 2024-09-19 20:42:09.933 [main] DEBUG com.muyu.VehicleSimulationApplication:51 - Running with Spring Boot v3.2.4, Spring v6.1.5 2024-09-19 20:42:09.934 [main] INFO com.muyu.VehicleSimulationApplication:654 - No active profile set, falling back to 1 default profile: "default" 2024-09-19 20:42:11.247 [main] WARN o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:429 - Bean 'com.dtflys.forest.springboot.ForestAutoConfiguration' of type [com.dtflys.forest.springboot.ForestAutoConfiguration$$SpringCGLIB$$0] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). The currently created BeanPostProcessor [forestBeanProcessor] is declared through a non-static factory method on that class; consider declaring it as static instead. 2024-09-19 20:42:11.265 [main] WARN o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:437 - Bean 'forestProperties' of type [com.dtflys.forest.config.SpringForestProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [forestBeanRegister]? Check the corresponding BeanPostProcessor declaration and its dependencies. 2024-09-19 20:42:11.268 [main] WARN o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:437 - Bean 'forestObjectFactory' of type [com.dtflys.forest.reflection.SpringForestObjectFactory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [forestBeanRegister]? Check the corresponding BeanPostProcessor declaration and its dependencies. 2024-09-19 20:42:11.271 [main] WARN o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:437 - Bean 'forestInterceptorFactory' of type [com.dtflys.forest.interceptor.SpringInterceptorFactory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [forestBeanRegister]? Check the corresponding BeanPostProcessor declaration and its dependencies. 2024-09-19 20:42:11.297 [main] WARN o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:437 - Bean 'forest-com.dtflys.forest.springboot.properties.ForestConfigurationProperties' of type [com.dtflys.forest.springboot.properties.ForestConfigurationProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [forestBeanRegister]? Check the corresponding BeanPostProcessor declaration and its dependencies. 2024-09-19 20:42:11.387 [main] WARN o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:437 - Bean 'forestConfiguration' of type [com.dtflys.forest.config.ForestConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [forestBeanRegister]? Check the corresponding BeanPostProcessor declaration and its dependencies. 2024-09-19 20:42:11.393 [main] WARN o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:437 - Bean 'forestConverterBeanListener' of type [com.dtflys.forest.spring.ConverterBeanListener] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [forestBeanRegister]? Check the corresponding BeanPostProcessor declaration and its dependencies. 2024-09-19 20:42:11.433 [main] INFO com.dtflys.forest.scanner.ClassPathClientScanner:153 - [Forest] Created Forest Client Bean with name 'clientAdmin' and Proxy of 'com.muyu.vehicle.api.ClientAdmin' client interface 2024-09-19 20:42:11.847 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer:109 - Tomcat initialized with port 81 (http) 2024-09-19 20:42:11.872 [main] INFO org.apache.catalina.core.StandardService:173 - Starting service [Tomcat] 2024-09-19 20:42:11.873 [main] INFO org.apache.catalina.core.StandardEngine:173 - Starting Servlet engine: [Apache Tomcat/10.1.19] 2024-09-19 20:42:11.954 [main] INFO o.a.c.core.ContainerBase.[Tomcat].[localhost].[/]:173 - Initializing Spring embedded WebApplicationContext 2024-09-19 20:42:11.955 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext:296 - Root WebApplicationContext: initialization completed in 1933 ms 2024-09-19 20:42:12.123 [main] INFO com.muyu.config.MyMetaObjectHandler:23 - 元数据填充初始化成功 2024-09-19 20:42:12.344 [main] INFO com.zaxxer.hikari.HikariDataSource:110 - HikariPool-1 - Starting... 2024-09-19 20:42:13.479 [main] INFO com.zaxxer.hikari.pool.HikariPool:565 - HikariPool-1 - Added connection com.mysql.cj.jdbc.ConnectionImpl@106c988 2024-09-19 20:42:13.483 [main] INFO com.zaxxer.hikari.HikariDataSource:123 - HikariPool-1 - Start completed. 2024-09-19 20:42:13.488 [main] INFO com.muyu.config.DataSourceConfig:36 - 数据源[vehicle-test-db]初始化成功 2024-09-19 20:42:14.752 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer:241 - Tomcat started on port 81 (http) with context path '' 2024-09-19 20:42:14.765 [main] INFO com.muyu.VehicleSimulationApplication:56 - Started VehicleSimulationApplication in 5.437 seconds (process running for 6.015) 2024-09-19 20:42:14.772 [main] INFO com.muyu.vehicle.core.VehicleConfiguration:40 - 初始开始,批量从数据库当中加载数据到内存当中,每次[10]条 2024-09-19 20:42:15.144 [main] DEBUG c.m.w.mapper.VehicleInfoMapper.selectList_mpCount:135 - ==> Preparing: SELECT COUNT(*) AS total FROM vehicle_info 2024-09-19 20:42:15.179 [main] DEBUG c.m.w.mapper.VehicleInfoMapper.selectList_mpCount:135 - ==> Parameters: 2024-09-19 20:42:15.262 [main] DEBUG c.m.w.mapper.VehicleInfoMapper.selectList_mpCount:135 - <== Total: 1 2024-09-19 20:42:15.276 [main] DEBUG com.muyu.web.mapper.VehicleInfoMapper.selectList:135 - ==> Preparing: SELECT id,vin,tenant_id,remaining_battery,battery_level,total_mileage,create_time FROM vehicle_info LIMIT ? 2024-09-19 20:42:15.277 [main] DEBUG com.muyu.web.mapper.VehicleInfoMapper.selectList:135 - ==> Parameters: 10(Long) 2024-09-19 20:42:15.362 [main] DEBUG com.muyu.web.mapper.VehicleInfoMapper.selectList:135 - <== Total: 10 2024-09-19 20:42:15.366 [main] DEBUG c.muyu.web.service.impl.VehicleInstanceServiceImpl:61 - 构建车辆对象: [VIN12345678912345] 2024-09-19 20:42:15.366 [main] DEBUG c.muyu.web.service.impl.VehicleInstanceServiceImpl:61 - 构建车辆对象: [VIN12345678912344] 2024-09-19 20:42:15.366 [main] DEBUG c.muyu.web.service.impl.VehicleInstanceServiceImpl:61 - 构建车辆对象: [5MY48TZNZ3A3NT83Z] 2024-09-19 20:42:15.367 [main] DEBUG c.muyu.web.service.impl.VehicleInstanceServiceImpl:61 - 构建车辆对象: [FBATKLXDQSN8JWR65] 2024-09-19 20:42:15.367 [main] DEBUG c.muyu.web.service.impl.VehicleInstanceServiceImpl:61 - 构建车辆对象: [J2TK3Q5GO5QD5U1I8] 2024-09-19 20:42:15.367 [main] DEBUG c.muyu.web.service.impl.VehicleInstanceServiceImpl:61 - 构建车辆对象: [6FEHSCO7WV7X6V92B] 2024-09-19 20:42:15.367 [main] DEBUG c.muyu.web.service.impl.VehicleInstanceServiceImpl:61 - 构建车辆对象: [G3UYG711ODT8MV6YX] 2024-09-19 20:42:15.367 [main] DEBUG c.muyu.web.service.impl.VehicleInstanceServiceImpl:61 - 构建车辆对象: [VIN12345678913245] 2024-09-19 20:42:15.367 [main] DEBUG c.muyu.web.service.impl.VehicleInstanceServiceImpl:61 - 构建车辆对象: [FRVHJXAK1V64GH3UQ] 2024-09-19 20:42:15.368 [main] DEBUG c.muyu.web.service.impl.VehicleInstanceServiceImpl:61 - 构建车辆对象: [63YCZDY6336C8H4CA] 2024-09-19 20:42:15.368 [main] DEBUG com.muyu.vehicle.core.VehicleConfiguration:45 - 第[1]页,[10]条 2024-09-19 20:42:15.370 [main] DEBUG c.m.w.mapper.VehicleInfoMapper.selectList_mpCount:135 - ==> Preparing: SELECT COUNT(*) AS total FROM vehicle_info 2024-09-19 20:42:15.370 [main] DEBUG c.m.w.mapper.VehicleInfoMapper.selectList_mpCount:135 - ==> Parameters: 2024-09-19 20:42:15.418 [main] DEBUG c.m.w.mapper.VehicleInfoMapper.selectList_mpCount:135 - <== Total: 1 2024-09-19 20:42:15.420 [main] DEBUG com.muyu.web.mapper.VehicleInfoMapper.selectList:135 - ==> Preparing: SELECT id,vin,tenant_id,remaining_battery,battery_level,total_mileage,create_time FROM vehicle_info LIMIT ? 2024-09-19 20:42:15.434 [main] DEBUG com.muyu.web.mapper.VehicleInfoMapper.selectList:135 - ==> Parameters: 10(Long) 2024-09-19 20:42:15.540 [main] DEBUG com.muyu.web.mapper.VehicleInfoMapper.selectList:135 - <== Total: 10 2024-09-19 20:42:15.543 [main] DEBUG c.muyu.web.service.impl.VehicleInstanceServiceImpl:61 - 构建车辆对象: [VIN12345678912345] 2024-09-19 20:42:15.543 [main] DEBUG c.muyu.web.service.impl.VehicleInstanceServiceImpl:61 - 构建车辆对象: [VIN12345678912344] 2024-09-19 20:42:15.543 [main] DEBUG c.muyu.web.service.impl.VehicleInstanceServiceImpl:61 - 构建车辆对象: [5MY48TZNZ3A3NT83Z] 2024-09-19 20:42:15.544 [main] DEBUG c.muyu.web.service.impl.VehicleInstanceServiceImpl:61 - 构建车辆对象: [FBATKLXDQSN8JWR65] 2024-09-19 20:42:15.544 [main] DEBUG c.muyu.web.service.impl.VehicleInstanceServiceImpl:61 - 构建车辆对象: [J2TK3Q5GO5QD5U1I8] 2024-09-19 20:42:15.544 [main] DEBUG c.muyu.web.service.impl.VehicleInstanceServiceImpl:61 - 构建车辆对象: [6FEHSCO7WV7X6V92B] 2024-09-19 20:42:15.544 [main] DEBUG c.muyu.web.service.impl.VehicleInstanceServiceImpl:61 - 构建车辆对象: [G3UYG711ODT8MV6YX] 2024-09-19 20:42:15.545 [main] DEBUG c.muyu.web.service.impl.VehicleInstanceServiceImpl:61 - 构建车辆对象: [VIN12345678913245] 2024-09-19 20:42:15.546 [main] DEBUG c.muyu.web.service.impl.VehicleInstanceServiceImpl:61 - 构建车辆对象: [FRVHJXAK1V64GH3UQ] 2024-09-19 20:42:15.546 [main] DEBUG c.muyu.web.service.impl.VehicleInstanceServiceImpl:61 - 构建车辆对象: [63YCZDY6336C8H4CA] 2024-09-19 20:42:15.547 [main] DEBUG com.muyu.vehicle.core.VehicleConfiguration:45 - 第[2]页,[10]条 2024-09-19 20:42:15.550 [main] DEBUG c.m.w.mapper.VehicleInfoMapper.selectList_mpCount:135 - ==> Preparing: SELECT COUNT(*) AS total FROM vehicle_info 2024-09-19 20:42:15.551 [main] DEBUG c.m.w.mapper.VehicleInfoMapper.selectList_mpCount:135 - ==> Parameters: 2024-09-19 20:42:15.692 [main] DEBUG c.m.w.mapper.VehicleInfoMapper.selectList_mpCount:135 - <== Total: 1 2024-09-19 20:42:15.694 [main] DEBUG com.muyu.web.mapper.VehicleInfoMapper.selectList:135 - ==> Preparing: SELECT id,vin,tenant_id,remaining_battery,battery_level,total_mileage,create_time FROM vehicle_info LIMIT ?,? 2024-09-19 20:42:15.695 [main] DEBUG com.muyu.web.mapper.VehicleInfoMapper.selectList:135 - ==> Parameters: 10(Long), 10(Long) 2024-09-19 20:42:15.757 [main] DEBUG com.muyu.web.mapper.VehicleInfoMapper.selectList:135 - <== Total: 2 2024-09-19 20:42:15.758 [main] DEBUG c.muyu.web.service.impl.VehicleInstanceServiceImpl:61 - 构建车辆对象: [34G3H6Y8AA9S3VM4K] 2024-09-19 20:42:15.758 [main] DEBUG c.muyu.web.service.impl.VehicleInstanceServiceImpl:61 - 构建车辆对象: [RYAMH5L3WZ5A7FUK4] 2024-09-19 20:42:15.758 [main] DEBUG com.muyu.vehicle.core.VehicleConfiguration:45 - 第[3]页,[2]条 2024-09-19 20:42:15.759 [main] INFO com.muyu.vehicle.core.VehicleConfiguration:50 - 数据加载完成,耗时:987 MS 2024-09-19 21:01:57.144 [SpringApplicationShutdownHook] INFO com.muyu.vehicle.core.VehicleConfiguration:65 - 数据库同步 2024-09-19 21:01:57.145 [SpringApplicationShutdownHook] INFO com.muyu.web.service.impl.VechileInfoServiceImpl:91 - 同步数据库开始 2024-09-19 21:01:57.145 [SpringApplicationShutdownHook] ERROR com.muyu.web.service.impl.VechileInfoServiceImpl:116 - 数据同步异常:Cannot invoke "com.muyu.system.domain.LoginUserInfo.getTenantId()" because the return value of "com.muyu.system.handle.SystemHandler.getUserInfo()" is null java.lang.NullPointerException: Cannot invoke "com.muyu.system.domain.LoginUserInfo.getTenantId()" because the return value of "com.muyu.system.handle.SystemHandler.getUserInfo()" is null at com.muyu.system.handle.SystemHandler.getTenantId(SystemHandler.java:67) at com.muyu.vehicle.core.LocalContainer.getTenantVehicleDataMap(LocalContainer.java:36) at com.muyu.vehicle.core.LocalContainer.getTenantOnlineVehicleInstance(LocalContainer.java:84) at com.muyu.web.service.impl.VechileInfoServiceImpl.syncDb(VechileInfoServiceImpl.java:93) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:351) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:713) at com.muyu.web.service.impl.VechileInfoServiceImpl$$SpringCGLIB$$0.syncDb() at com.muyu.vehicle.core.VehicleConfiguration.destroy(VehicleConfiguration.java:66) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMethod.invoke(InitDestroyAnnotationBeanPostProcessor.java:457) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeDestroyMethods(InitDestroyAnnotationBeanPostProcessor.java:415) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeDestruction(InitDestroyAnnotationBeanPostProcessor.java:239) at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:202) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:587) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:559) at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingleton(DefaultListableBeanFactory.java:1202) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:520) at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingletons(DefaultListableBeanFactory.java:1195) at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1186) at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1147) at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.doClose(ServletWebServerApplicationContext.java:174) at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:1093) at org.springframework.boot.SpringApplicationShutdownHook.closeAndWait(SpringApplicationShutdownHook.java:145) at java.base/java.lang.Iterable.forEach(Iterable.java:75) at org.springframework.boot.SpringApplicationShutdownHook.run(SpringApplicationShutdownHook.java:114) at java.base/java.lang.Thread.run(Thread.java:842) 2024-09-19 21:01:57.148 [SpringApplicationShutdownHook] INFO com.muyu.vehicle.core.VehicleConfiguration:68 - 下线所有车辆 2024-09-19 21:01:57.148 [SpringApplicationShutdownHook] WARN o.s.c.annotation.CommonAnnotationBeanPostProcessor:247 - Destroy method on bean with name 'vehicleConfiguration' threw an exception: java.lang.NullPointerException: Cannot invoke "com.muyu.system.domain.LoginUserInfo.getTenantId()" because the return value of "com.muyu.system.handle.SystemHandler.getUserInfo()" is null 2024-09-19 21:01:57.150 [SpringApplicationShutdownHook] INFO com.zaxxer.hikari.HikariDataSource:350 - HikariPool-1 - Shutdown initiated... 2024-09-19 21:01:58.198 [SpringApplicationShutdownHook] INFO com.zaxxer.hikari.HikariDataSource:352 - HikariPool-1 - Shutdown completed.