看看错误是什么?
Hibernate: insert into notification_switch (ctime, mtime, account_id, enable, type) values (?, ?, ?, ?, ?)
11-03-2025 11:32:24.772 INFO [main] [TID: N/A] c.t.n.c.a.s.i.StatServiceImpl: [STAT] {"service":"IndexServerApiImpl$MockitoMock$1163662474","method":"toString","exception":0,"exeMs":1,"statKey":"@ThirdPartyApiStat"}
11-03-2025 11:32:43.249 INFO [main] [TID: N/A] c.t.n.c.a.s.i.StatServiceImpl: [STAT] {"service":"IndexServerApiImpl$MockitoMock$1163662474","method":"toString","exception":0,"exeMs":0,"statKey":"@ThirdPartyApiStat"}
11-03-2025 11:32:46.654 INFO [main] [TID: N/A] c.t.n.c.a.s.i.StatServiceImpl: [STAT] {"service":"IndexServerApiImpl$MockitoMock$1163662474","method":"toString","exception":0,"exeMs":0,"statKey":"@ThirdPartyApiStat"}
Hibernate: select userprivac0_.id as id1_4_, userprivac0_.ctime as ctime2_4_, userprivac0_.mtime as mtime3_4_, userprivac0_.account_id as account_4_4_, userprivac0_.agreement_status as agreemen5_4_, userprivac0_.order_service_type as order_se6_4_, userprivac0_.privacy_code as privacy_7_4_, userprivac0_.region as region8_4_ from user_privacy_status userprivac0_ where userprivac0_.account_id=? and userprivac0_.privacy_code=?
11-03-2025 11:32:50.890 INFO [main] [TID: N/A] c.t.n.c.a.s.i.StatServiceImpl: [STAT] {"service":"IndexServerApiImpl$MockitoMock$1163662474","method":"toString","exception":0,"exeMs":0,"statKey":"@ThirdPartyApiStat"}
11-03-2025 11:32:54.677 INFO [main] [TID: N/A] c.t.n.c.a.s.i.StatServiceImpl: [STAT] {"service":"IndexServerApiImpl$MockitoMock$1163662474","method":"toString","exception":0,"exeMs":1,"statKey":"@ThirdPartyApiStat"}
11-03-2025 11:32:57.090 INFO [main] [TID: N/A] c.t.n.c.a.s.i.StatServiceImpl: [STAT] {"service":"IndexServerApiImpl$MockitoMock$1163662474","method":"toString","exception":0,"exeMs":0,"statKey":"@ThirdPartyApiStat"}
11-03-2025 11:32:57.586 INFO [main] [TID: N/A] c.t.n.c.a.s.i.StatServiceImpl: [STAT] {"service":"IndexServerApiImpl$MockitoMock$1163662474","method":"toString","exception":0,"exeMs":0,"statKey":"@ThirdPartyApiStat"}
11-03-2025 11:32:58.076 INFO [main] [TID: N/A] c.t.n.c.a.s.i.StatServiceImpl: [STAT] {"service":"IndexServerApiImpl$MockitoMock$1163662474","method":"toString","exception":0,"exeMs":0,"statKey":"@ThirdPartyApiStat"}
11-03-2025 11:33:01.421 WARN [main] [TID: N/A] c.t.n.c.a.s.i.StatServiceImpl: [STAT] {"accountId":"326006","weeklyReportMessage":"receive data from bigdata, but user does not agree for weekly report","tspSupported":true,"statKey":"@WeeklyReportStat"}
11-03-2025 11:33:01.567 INFO [main] [TID: N/A] c.t.n.c.a.s.i.StatServiceImpl: [STAT] {"service":"IndexServerApiImpl$MockitoMock$1163662474","method":"toString","exception":0,"exeMs":0,"statKey":"@ThirdPartyApiStat"}
11-03-2025 11:33:02.396 INFO [main] [TID: N/A] c.t.n.c.a.s.i.StatServiceImpl: [STAT] {"service":"IndexServerApiImpl$MockitoMock$1163662474","method":"toString","exception":0,"exeMs":0,"statKey":"@ThirdPartyApiStat"}
11-03-2025 11:33:03.910 INFO [main] [TID: N/A] c.t.n.c.a.s.i.StatServiceImpl: [STAT] {"service":"IndexServerApiImpl$MockitoMock$1163662474","method":"toString","exception":0,"exeMs":0,"statKey":"@ThirdPartyApiStat"}
11-03-2025 11:33:04.387 INFO [main] [TID: N/A] c.t.n.c.a.s.i.StatServiceImpl: [STAT] {"service":"IndexServerApiImpl$MockitoMock$1163662474","method":"toString","exception":0,"exeMs":0,"statKey":"@ThirdPartyApiStat"}
11-03-2025 11:33:04.719 INFO [main] [TID: N/A] c.t.n.c.a.s.i.StatServiceImpl: [STAT] {"service":"IndexServerApiImpl$MockitoMock$1163662474","method":"toString","exception":0,"exeMs":0,"statKey":"@ThirdPartyApiStat"}
11-03-2025 11:33:05.098 INFO [main] [TID: N/A] c.t.n.c.a.s.i.StatServiceImpl: [STAT] {"service":"IndexServerApiImpl$MockitoMock$1163662474","method":"toString","exception":0,"exeMs":0,"statKey":"@ThirdPartyApiStat"}
11-03-2025 11:33:05.598 WARN [Apollo-RemoteConfigLongPollService-1] [TID: N/A] c.c.f.a.i.RemoteConfigLongPollService: Long polling failed, will retry in 64 seconds. appId: tapocare_app, cluster: dev-aps1, namespaces: networkAcceleration__application.yaml, long polling url: null, reason: Get config services failed from https://apollo-configservice-alpha.i.tplinknbu.com/services/config?appId=tapocare_app&ip=192.168.131.1 [Cause: Could not complete get operation [Cause: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target [Cause: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target [Cause: unable to find valid certification path to requested target]]]]
11-03-2025 11:33:05.753 INFO [main] [TID: N/A] c.t.n.c.a.s.i.StatServiceImpl: [STAT] {"service":"IndexServerApiImpl$MockitoMock$1163662474","method":"toString","exception":0,"exeMs":0,"statKey":"@ThirdPartyApiStat"}
Hibernate: select userprivac0_.id as id1_4_, userprivac0_.ctime as ctime2_4_, userprivac0_.mtime as mtime3_4_, userprivac0_.account_id as account_4_4_, userprivac0_.agreement_status as agreemen5_4_, userprivac0_.order_service_type as order_se6_4_, userprivac0_.privacy_code as privacy_7_4_, userprivac0_.region as region8_4_ from user_privacy_status userprivac0_ where userprivac0_.account_id=? and userprivac0_.privacy_code=?
11-03-2025 11:33:06.364 INFO [main] [TID: N/A] c.t.n.c.a.s.i.StatServiceImpl: [STAT] {"service":"IndexServerApiImpl$MockitoMock$1163662474","method":"toString","exception":0,"exeMs":2,"statKey":"@ThirdPartyApiStat"}
11-03-2025 11:33:07.143 INFO [main] [TID: N/A] c.t.n.c.a.s.i.StatServiceImpl: [STAT] {"service":"IndexServerApiImpl$MockitoMock$1163662474","method":"toString","exception":0,"exeMs":0,"statKey":"@ThirdPartyApiStat"}
11-03-2025 11:33:07.498 INFO [main] [TID: N/A] c.t.n.c.a.s.i.StatServiceImpl: [STAT] {"service":"IndexServerApiImpl$MockitoMock$1163662474","method":"toString","exception":0,"exeMs":0,"statKey":"@ThirdPartyApiStat"}
11-03-2025 11:33:07.713 INFO [main] [TID: N/A] c.t.n.c.a.s.i.StatServiceImpl: [STAT] {"service":"IndexServerApiImpl$MockitoMock$1163662474","method":"toString","exception":0,"exeMs":0,"statKey":"@ThirdPartyApiStat"}
11-03-2025 11:33:07.982 INFO [main] [TID: N/A] c.t.n.c.a.s.i.StatServiceImpl: [STAT] {"service":"IndexServerApiImpl$MockitoMock$1163662474","method":"toString","exception":0,"exeMs":0,"statKey":"@ThirdPartyApiStat"}
11-03-2025 11:33:08.081 WARN [main] [TID: N/A] c.t.n.c.a.s.i.StatServiceImpl: [STAT] {"accountId":"20066661","weeklyReportMessage":"receive data from bigdata, but user does not agree for weekly report","tspSupported":true,"statKey":"@WeeklyReportStat"}
11-03-2025 11:33:08.247 INFO [main] [TID: N/A] c.t.n.c.a.s.i.StatServiceImpl: [STAT] {"service":"IndexServerApiImpl$MockitoMock$1163662474","method":"toString","exception":0,"exeMs":0,"statKey":"@ThirdPartyApiStat"}
11-03-2025 11:33:08.447 INFO [main] [TID: N/A] c.t.n.c.a.s.i.StatServiceImpl: [STAT] {"service":"IndexServerApiImpl$MockitoMock$1163662474","method":"toString","exception":0,"exeMs":0,"statKey":"@ThirdPartyApiStat"}
11-03-2025 11:33:09.070 INFO [main] [TID: N/A] c.t.n.c.a.s.i.StatServiceImpl: [STAT] {"service":"IndexServerApiImpl$MockitoMock$1163662474","method":"toString","exception":0,"exeMs":0,"statKey":"@ThirdPartyApiStat"}
Hibernate: select userprivac0_.id as id1_4_, userprivac0_.ctime as ctime2_4_, userprivac0_.mtime as mtime3_4_, userprivac0_.account_id as account_4_4_, userprivac0_.agreement_status as agreemen5_4_, userprivac0_.order_service_type as order_se6_4_, userprivac0_.privacy_code as privacy_7_4_, userprivac0_.region as region8_4_ from user_privacy_status userprivac0_ where userprivac0_.account_id=? and userprivac0_.privacy_code=?
11-03-2025 11:33:14.043 INFO [main] [TID: N/A] c.t.n.c.a.s.i.StatServiceImpl: [STAT] {"service":"IndexServerApiImpl$MockitoMock$1163662474","method":"toString","exception":0,"exeMs":1,"statKey":"@ThirdPartyApiStat"}
11-03-2025 11:33:20.394 INFO [main] [TID: N/A] c.t.n.c.a.s.i.StatServiceImpl: [STAT] {"service":"IndexServerApiImpl$MockitoMock$1163662474","method":"toString","exception":0,"exeMs":0,"statKey":"@ThirdPartyApiStat"}
11-03-2025 11:33:20.875 INFO [main] [TID: N/A] c.t.n.c.a.s.i.StatServiceImpl: [STAT] {"service":"IndexServerApiImpl$MockitoMock$1163662474","method":"toString","exception":0,"exeMs":0,"statKey":"@ThirdPartyApiStat"}
Hibernate: select userreport0_.id as id1_5_, userreport0_.ctime as ctime2_5_, userreport0_.mtime as mtime3_5_, userreport0_.account_id as account_4_5_, userreport0_.content as content5_5_, userreport0_.device_id as device_i6_5_, userreport0_.device_report as device_r7_5_, userreport0_.expired_time as expired_8_5_, userreport0_.order_service_type as order_se9_5_, userreport0_.report_date as report_10_5_, userreport0_.status as status11_5_, userreport0_.timezone as timezon12_5_, userreport0_.type as type13_5_ from user_report userreport0_ where userreport0_.account_id=? and userreport0_.type=? and userreport0_.report_date=? order by userreport0_.id DESC limit ?
11-03-2025 11:33:22.385 INFO [main] [TID: N/A] c.t.n.c.a.s.i.StatServiceImpl: [STAT] {"service":"IndexServerApiImpl$MockitoMock$1163662474","method":"toString","exception":0,"exeMs":0,"statKey":"@ThirdPartyApiStat"}
11-03-2025 11:33:52.382 INFO [main] [TID: N/A] c.t.n.c.a.s.i.StatServiceImpl: [STAT] {"service":"IndexServerApiImpl$MockitoMock$1163662474","method":"toString","exception":0,"exeMs":0,"statKey":"@ThirdPartyApiStat"}
11-03-2025 11:34:05.136 INFO [main] [TID: N/A] c.t.n.c.a.s.i.StatServiceImpl: [STAT] {"service":"IndexServerApiImpl$MockitoMock$1163662474","method":"toString","exception":0,"exeMs":0,"statKey":"@ThirdPartyApiStat"}
11-03-2025 11:34:31.234 DEBUG [main] [TID: N/A] c.t.n.c.a.a.i.IndexServerApiImpl: BatchQueryLastEventDeviceInfoRequest accountId: 20112672, deviceUniqueIdList: [000132D61EC76E9BCD3F83DD011F00C320011005]
11-03-2025 11:34:31.248 DEBUG [main] [TID: N/A] c.t.n.c.a.a.i.IndexServerApiImpl: can't extract brand from http request context because of the request not from web: null
java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request.
at org.springframework.web.context.request.RequestContextHolder.currentRequestAttributes(RequestContextHolder.java:131) ~[spring-web-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at com.tplink.nbu.cloudstorage.appserver.api.impl.IndexServerApiImpl.extractBrandFromContext(IndexServerApiImpl.java:407) ~[classes/:?]
at com.tplink.nbu.cloudstorage.appserver.api.impl.IndexServerApiImpl.addHeaders(IndexServerApiImpl.java:363) ~[classes/:?]
at com.tplink.nbu.cloudstorage.appserver.api.impl.IndexServerApiImpl.getLastEventDeviceBlockingStub(IndexServerApiImpl.java:321) ~[classes/:?]
at com.tplink.nbu.cloudstorage.appserver.api.impl.IndexServerApiImpl.batchQueryLastEventDeviceInfo(IndexServerApiImpl.java:932) ~[classes/:?]
at com.tplink.nbu.cloudstorage.appserver.api.impl.IndexServerApiImpl$MockitoMock$1163662474.batchQueryLastEventDeviceInfo$accessor$cLPa5k80(Unknown Source) ~[classes/:?]
at com.tplink.nbu.cloudstorage.appserver.api.impl.IndexServerApiImpl$MockitoMock$1163662474$auxiliary$vt4wFwho.call(Unknown Source) ~[classes/:?]
at org.mockito.internal.invocation.RealMethod$FromCallable$1.call(RealMethod.java:40) ~[mockito-core-3.1.0.jar:?]
at org.mockito.internal.invocation.RealMethod$FromBehavior.invoke(RealMethod.java:62) ~[mockito-core-3.1.0.jar:?]
at org.mockito.internal.invocation.InterceptedInvocation.callRealMethod(InterceptedInvocation.java:152) ~[mockito-core-3.1.0.jar:?]
at org.mockito.internal.stubbing.answers.CallsRealMethods.answer(CallsRealMethods.java:43) ~[mockito-core-3.1.0.jar:?]
at org.mockito.Answers.answer(Answers.java:100) ~[mockito-core-3.1.0.jar:?]
at org.mockito.internal.handler.MockHandlerImpl.handle(MockHandlerImpl.java:103) ~[mockito-core-3.1.0.jar:?]
at org.mockito.internal.handler.NullResultGuardian.handle(NullResultGuardian.java:29) ~[mockito-core-3.1.0.jar:?]
at org.mockito.internal.handler.InvocationNotifierHandler.handle(InvocationNotifierHandler.java:35) ~[mockito-core-3.1.0.jar:?]
at org.mockito.internal.creation.bytebuddy.MockMethodInterceptor.doIntercept(MockMethodInterceptor.java:61) ~[mockito-core-3.1.0.jar:?]
at org.mockito.internal.creation.bytebuddy.MockMethodInterceptor.doIntercept(MockMethodInterceptor.java:49) ~[mockito-core-3.1.0.jar:?]
at org.mockito.internal.creation.bytebuddy.MockMethodInterceptor$DispatcherDefaultingToRealMethod.interceptSuperCallable(MockMethodInterceptor.java:108) ~[mockito-core-3.1.0.jar:?]
at com.tplink.nbu.cloudstorage.appserver.api.impl.IndexServerApiImpl$MockitoMock$1163662474.batchQueryLastEventDeviceInfo(Unknown Source) ~[classes/:?]
at com.tplink.nbu.cloudstorage.appserver.api.impl.IndexServerApiImpl$MockitoMock$1163662474$$FastClassBySpringCGLIB$$af0f867b.invoke(<generated>) ~[classes/:?]
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) ~[spring-core-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:771) ~[spring-aop-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) ~[spring-aop-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:749) ~[spring-aop-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:88) ~[spring-aop-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at com.tplink.nbu.cloudstorage.appserver.aop.ThirdPartyApiLogAspect.logApiExeTime(ThirdPartyApiLogAspect.java:52) ~[classes/:?]
at jdk.internal.reflect.GeneratedMethodAccessor245.invoke(Unknown Source) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:644) ~[spring-aop-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:633) ~[spring-aop-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70) ~[spring-aop-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175) ~[spring-aop-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:749) ~[spring-aop-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:95) ~[spring-aop-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:749) ~[spring-aop-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:691) ~[spring-aop-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at com.tplink.nbu.cloudstorage.appserver.api.impl.IndexServerApiImpl$MockitoMock$1163662474$$EnhancerBySpringCGLIB$$81a9df8b.batchQueryLastEventDeviceInfo(<generated>) ~[classes/:?]
at com.tplink.nbu.cloudstorage.appserver.service.impl.WeeklyReportServiceImpl.tryFillAliasAndGetAgentNvrChannelDeviceId(WeeklyReportServiceImpl.java:966) ~[classes/:?]
at com.tplink.nbu.cloudstorage.appserver.service.impl.WeeklyReportServiceImpl.lambda$getUsefulDeviceReportsAndSum$14(WeeklyReportServiceImpl.java:884) ~[classes/:?]
at java.util.ArrayList.forEach(ArrayList.java:1541) ~[?:?]
at com.tplink.nbu.cloudstorage.appserver.service.impl.WeeklyReportServiceImpl.getUsefulDeviceReportsAndSum(WeeklyReportServiceImpl.java:874) ~[classes/:?]
at com.tplink.nbu.cloudstorage.appserver.service.impl.WeeklyReportServiceImpl.checkAndCalculate(WeeklyReportServiceImpl.java:831) ~[classes/:?]
at com.tplink.nbu.cloudstorage.appserver.service.impl.WeeklyReportServiceImpl.parseAndProcessReports(WeeklyReportServiceImpl.java:500) ~[classes/:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344) ~[spring-aop-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:205) ~[spring-aop-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at com.sun.proxy.$Proxy272.parseAndProcessReports(Unknown Source) ~[?:?]
at com.tplink.nbu.cloudstorage.appserver.service.impl.WeeklyReportServiceImplTest.lambda$testCalculate$7(WeeklyReportServiceImplTest.java:272) ~[test-classes/:?]
at org.junit.jupiter.api.AssertDoesNotThrow.assertDoesNotThrow(AssertDoesNotThrow.java:72) [junit-jupiter-api-5.5.2.jar:5.5.2]
at org.junit.jupiter.api.AssertDoesNotThrow.assertDoesNotThrow(AssertDoesNotThrow.java:59) [junit-jupiter-api-5.5.2.jar:5.5.2]
at org.junit.jupiter.api.Assertions.assertDoesNotThrow(Assertions.java:3065) [junit-jupiter-api-5.5.2.jar:5.5.2]
at com.tplink.nbu.cloudstorage.appserver.service.impl.WeeklyReportServiceImplTest.testCalculate(WeeklyReportServiceImplTest.java:272) [test-classes/:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) [junit-4.12.jar:4.12]
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) [junit-4.12.jar:4.12]
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) [junit-4.12.jar:4.12]
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) [junit-4.12.jar:4.12]
at org.springframework.test.context.junit4.statements.RunBeforeTestExecutionCallbacks.evaluate(RunBeforeTestExecutionCallbacks.java:74) [spring-test-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at org.springframework.test.context.junit4.statements.RunAfterTestExecutionCallbacks.evaluate(RunAfterTestExecutionCallbacks.java:84) [spring-test-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) [junit-4.12.jar:4.12]
at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:75) [spring-test-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86) [spring-test-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84) [spring-test-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) [junit-4.12.jar:4.12]
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:251) [spring-test-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:97) [spring-test-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) [junit-4.12.jar:4.12]
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) [junit-4.12.jar:4.12]
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) [junit-4.12.jar:4.12]
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) [junit-4.12.jar:4.12]
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) [junit-4.12.jar:4.12]
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61) [spring-test-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70) [spring-test-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at org.junit.runners.ParentRunner.run(ParentRunner.java:363) [junit-4.12.jar:4.12]
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:190) [spring-test-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at org.junit.runner.JUnitCore.run(JUnitCore.java:137) [junit-4.12.jar:4.12]
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69) [junit-rt.jar:?]
at com.intellij.rt.junit.IdeaTestRunner$Repeater$1.execute(IdeaTestRunner.java:38) [junit-rt.jar:?]
at com.intellij.rt.execution.junit.TestsRepeater.repeat(TestsRepeater.java:11) [idea_rt.jar:?]
at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:35) [junit-rt.jar:?]
at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:231) [junit-rt.jar:?]
at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:55) [junit-rt.jar:?]
11-03-2025 11:34:31.373 DEBUG [main] [TID: N/A] c.t.n.c.a.g.i.IdempotentHeaderClientInterceptor: [GRPC] Method: LastEventDevice/batchQueryLastEventDeviceInfo, NO_SIDE_EFFECTS
11-03-2025 11:34:31.373 DEBUG [main] [TID: N/A] c.t.n.c.a.c.i.GrpcClientInterceptor: headers: Metadata(serviceid=TAPOCARE_APP,requestdatabrand=TAPO,x-idempotency-level=1)
11-03-2025 11:34:31.428 DEBUG [main] [TID: N/A] c.t.n.c.a.c.i.GrpcClientInterceptor: request: account_id: "20112672" device_unique_ids: "000132D61EC76E9BCD3F83DD011F00C320011005"
11-03-2025 11:34:31.602 ERROR [main] [TID: N/A] c.t.n.c.a.s.i.StatServiceImpl: [STAT] {"service":"LastEventDevice","errorType":"UNAVAILABLE","path":"LastEventDevice/batchQueryLastEventDeviceInfo","errorMessage":"Unable to resolve host tapocare-index-aps1.app-ipc.svc.cluster.local","timestamp":1762140871600,"statKey":"@ThirdPartyApiError"}
11-03-2025 11:34:31.608 INFO [main] [TID: N/A] c.t.n.c.a.s.i.StatServiceImpl: [STAT] {"service":"IndexServerApiImpl$MockitoMock$1163662474","method":"batchQueryLastEventDeviceInfo","exception":1,"exeMs":374,"statKey":"@ThirdPartyApiStat"}
11-03-2025 11:34:31.854 ERROR [main] [TID: N/A] c.t.n.c.a.s.i.WeeklyReportServiceImpl: Failed to get alias for jtmUAPUDSkGAlfkWmYt7DikobqpXXAbWUAfasGbPU8M5b3TaVDhShUXPFHQMXMaQ
11-03-2025 11:34:31.855 ERROR [main] [TID: N/A] c.t.n.c.a.s.i.WeeklyReportServiceImpl: Empty alias for jtmUAPUDSkGAlfkWmYt7DikobqpXXAbWUAfasGbPU8M5b3TaVDhShUXPFHQMXMaQ
11-03-2025 11:34:31.859 DEBUG [main] [TID: N/A] c.t.n.c.a.a.i.IndexServerApiImpl: BatchQueryLastEventDeviceInfoRequest accountId: 20112672, deviceUniqueIdList: [FF81E73D7F900BA3710CC3864247F8EA1D34FCB9]
11-03-2025 11:34:31.860 DEBUG [main] [TID: N/A] c.t.n.c.a.a.i.IndexServerApiImpl: can't extract brand from http request context because of the request not from web: null
java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request.
at org.springframework.web.context.request.RequestContextHolder.currentRequestAttributes(RequestContextHolder.java:131) ~[spring-web-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at com.tplink.nbu.cloudstorage.appserver.api.impl.IndexServerApiImpl.extractBrandFromContext(IndexServerApiImpl.java:407) ~[classes/:?]
at com.tplink.nbu.cloudstorage.appserver.api.impl.IndexServerApiImpl.addHeaders(IndexServerApiImpl.java:363) ~[classes/:?]
at com.tplink.nbu.cloudstorage.appserver.api.impl.IndexServerApiImpl.getLastEventDeviceBlockingStub(IndexServerApiImpl.java:321) ~[classes/:?]
at com.tplink.nbu.cloudstorage.appserver.api.impl.IndexServerApiImpl.batchQueryLastEventDeviceInfo(IndexServerApiImpl.java:932) ~[classes/:?]
at com.tplink.nbu.cloudstorage.appserver.api.impl.IndexServerApiImpl$MockitoMock$1163662474.batchQueryLastEventDeviceInfo$accessor$cLPa5k80(Unknown Source) ~[classes/:?]
at com.tplink.nbu.cloudstorage.appserver.api.impl.IndexServerApiImpl$MockitoMock$1163662474$auxiliary$vt4wFwho.call(Unknown Source) ~[classes/:?]
at org.mockito.internal.invocation.RealMethod$FromCallable$1.call(RealMethod.java:40) ~[mockito-core-3.1.0.jar:?]
at org.mockito.internal.invocation.RealMethod$FromBehavior.invoke(RealMethod.java:62) ~[mockito-core-3.1.0.jar:?]
at org.mockito.internal.invocation.InterceptedInvocation.callRealMethod(InterceptedInvocation.java:152) ~[mockito-core-3.1.0.jar:?]
at org.mockito.internal.stubbing.answers.CallsRealMethods.answer(CallsRealMethods.java:43) ~[mockito-core-3.1.0.jar:?]
at org.mockito.Answers.answer(Answers.java:100) ~[mockito-core-3.1.0.jar:?]
at org.mockito.internal.handler.MockHandlerImpl.handle(MockHandlerImpl.java:103) ~[mockito-core-3.1.0.jar:?]
at org.mockito.internal.handler.NullResultGuardian.handle(NullResultGuardian.java:29) ~[mockito-core-3.1.0.jar:?]
at org.mockito.internal.handler.InvocationNotifierHandler.handle(InvocationNotifierHandler.java:35) ~[mockito-core-3.1.0.jar:?]
at org.mockito.internal.creation.bytebuddy.MockMethodInterceptor.doIntercept(MockMethodInterceptor.java:61) ~[mockito-core-3.1.0.jar:?]
at org.mockito.internal.creation.bytebuddy.MockMethodInterceptor.doIntercept(MockMethodInterceptor.java:49) ~[mockito-core-3.1.0.jar:?]
at org.mockito.internal.creation.bytebuddy.MockMethodInterceptor$DispatcherDefaultingToRealMethod.interceptSuperCallable(MockMethodInterceptor.java:108) ~[mockito-core-3.1.0.jar:?]
at com.tplink.nbu.cloudstorage.appserver.api.impl.IndexServerApiImpl$MockitoMock$1163662474.batchQueryLastEventDeviceInfo(Unknown Source) ~[classes/:?]
at com.tplink.nbu.cloudstorage.appserver.api.impl.IndexServerApiImpl$MockitoMock$1163662474$$FastClassBySpringCGLIB$$af0f867b.invoke(<generated>) ~[classes/:?]
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) ~[spring-core-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:771) ~[spring-aop-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) ~[spring-aop-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:749) ~[spring-aop-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:88) ~[spring-aop-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at com.tplink.nbu.cloudstorage.appserver.aop.ThirdPartyApiLogAspect.logApiExeTime(ThirdPartyApiLogAspect.java:52) ~[classes/:?]
at jdk.internal.reflect.GeneratedMethodAccessor245.invoke(Unknown Source) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:644) ~[spring-aop-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:633) ~[spring-aop-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70) ~[spring-aop-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175) ~[spring-aop-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:749) ~[spring-aop-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:95) ~[spring-aop-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:749) ~[spring-aop-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:691) ~[spring-aop-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at com.tplink.nbu.cloudstorage.appserver.api.impl.IndexServerApiImpl$MockitoMock$1163662474$$EnhancerBySpringCGLIB$$81a9df8b.batchQueryLastEventDeviceInfo(<generated>) ~[classes/:?]
at com.tplink.nbu.cloudstorage.appserver.service.impl.WeeklyReportServiceImpl.tryFillAliasAndGetAgentNvrChannelDeviceId(WeeklyReportServiceImpl.java:966) ~[classes/:?]
at com.tplink.nbu.cloudstorage.appserver.service.impl.WeeklyReportServiceImpl.lambda$getUsefulDeviceReportsAndSum$14(WeeklyReportServiceImpl.java:884) ~[classes/:?]
at java.util.ArrayList.forEach(ArrayList.java:1541) ~[?:?]
at com.tplink.nbu.cloudstorage.appserver.service.impl.WeeklyReportServiceImpl.getUsefulDeviceReportsAndSum(WeeklyReportServiceImpl.java:874) ~[classes/:?]
at com.tplink.nbu.cloudstorage.appserver.service.impl.WeeklyReportServiceImpl.checkAndCalculate(WeeklyReportServiceImpl.java:831) ~[classes/:?]
at com.tplink.nbu.cloudstorage.appserver.service.impl.WeeklyReportServiceImpl.parseAndProcessReports(WeeklyReportServiceImpl.java:500) ~[classes/:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344) ~[spring-aop-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:205) ~[spring-aop-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at com.sun.proxy.$Proxy272.parseAndProcessReports(Unknown Source) ~[?:?]
at com.tplink.nbu.cloudstorage.appserver.service.impl.WeeklyReportServiceImplTest.lambda$testCalculate$7(WeeklyReportServiceImplTest.java:272) ~[test-classes/:?]
at org.junit.jupiter.api.AssertDoesNotThrow.assertDoesNotThrow(AssertDoesNotThrow.java:72) [junit-jupiter-api-5.5.2.jar:5.5.2]
at org.junit.jupiter.api.AssertDoesNotThrow.assertDoesNotThrow(AssertDoesNotThrow.java:59) [junit-jupiter-api-5.5.2.jar:5.5.2]
at org.junit.jupiter.api.Assertions.assertDoesNotThrow(Assertions.java:3065) [junit-jupiter-api-5.5.2.jar:5.5.2]
at com.tplink.nbu.cloudstorage.appserver.service.impl.WeeklyReportServiceImplTest.testCalculate(WeeklyReportServiceImplTest.java:272) [test-classes/:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) [junit-4.12.jar:4.12]
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) [junit-4.12.jar:4.12]
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) [junit-4.12.jar:4.12]
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) [junit-4.12.jar:4.12]
at org.springframework.test.context.junit4.statements.RunBeforeTestExecutionCallbacks.evaluate(RunBeforeTestExecutionCallbacks.java:74) [spring-test-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at org.springframework.test.context.junit4.statements.RunAfterTestExecutionCallbacks.evaluate(RunAfterTestExecutionCallbacks.java:84) [spring-test-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) [junit-4.12.jar:4.12]
at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:75) [spring-test-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86) [spring-test-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84) [spring-test-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) [junit-4.12.jar:4.12]
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:251) [spring-test-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:97) [spring-test-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) [junit-4.12.jar:4.12]
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) [junit-4.12.jar:4.12]
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) [junit-4.12.jar:4.12]
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) [junit-4.12.jar:4.12]
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) [junit-4.12.jar:4.12]
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61) [spring-test-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70) [spring-test-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at org.junit.runners.ParentRunner.run(ParentRunner.java:363) [junit-4.12.jar:4.12]
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:190) [spring-test-5.2.9.RELEASE.jar:5.2.9.RELEASE]
at org.junit.runner.JUnitCore.run(JUnitCore.java:137) [junit-4.12.jar:4.12]
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69) [junit-rt.jar:?]
at com.intellij.rt.junit.IdeaTestRunner$Repeater$1.execute(IdeaTestRunner.java:38) [junit-rt.jar:?]
at com.intellij.rt.execution.junit.TestsRepeater.repeat(TestsRepeater.java:11) [idea_rt.jar:?]
at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:35) [junit-rt.jar:?]
at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:231) [junit-rt.jar:?]
at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:55) [junit-rt.jar:?]
11-03-2025 11:34:31.868 DEBUG [main] [TID: N/A] c.t.n.c.a.g.i.IdempotentHeaderClientInterceptor: [GRPC] Method: LastEventDevice/batchQueryLastEventDeviceInfo, NO_SIDE_EFFECTS
11-03-2025 11:34:31.868 DEBUG [main] [TID: N/A] c.t.n.c.a.c.i.GrpcClientInterceptor: headers: Metadata(serviceid=TAPOCARE_APP,requestdatabrand=TAPO,x-idempotency-level=1)
11-03-2025 11:34:31.869 DEBUG [main] [TID: N/A] c.t.n.c.a.c.i.GrpcClientInterceptor: request: account_id: "20112672" device_unique_ids: "FF81E73D7F900BA3710CC3864247F8EA1D34FCB9"
11-03-2025 11:34:31.869 ERROR [main] [TID: N/A] c.t.n.c.a.s.i.StatServiceImpl: [STAT] {"service":"LastEventDevice","errorType":"UNAVAILABLE","path":"LastEventDevice/batchQueryLastEventDeviceInfo","errorMessage":"Unable to resolve host tapocare-index-aps1.app-ipc.svc.cluster.local","timestamp":1762140871869,"statKey":"@ThirdPartyApiError"}
11-03-2025 11:34:31.871 INFO [main] [TID: N/A] c.t.n.c.a.s.i.StatServiceImpl: [STAT] {"service":"IndexServerApiImpl$MockitoMock$1163662474","method":"batchQueryLastEventDeviceInfo","exception":1,"exeMs":12,"statKey":"@ThirdPartyApiStat"}
11-03-2025 11:34:31.872 ERROR [main] [TID: N/A] c.t.n.c.a.s.i.WeeklyReportServiceImpl: Failed to get alias for ykby1YtyW/I/uyf93jAH1ufG5cTWE2gxNTlXy6+PZt8PvCobWulQWi0lxzBKmOSr
11-03-2025 11:34:31.872 ERROR [main] [TID: N/A] c.t.n.c.a.s.i.WeeklyReportServiceImpl: Empty alias for ykby1YtyW/I/uyf93jAH1ufG5cTWE2gxNTlXy6+PZt8PvCobWulQWi0lxzBKmOSr
11-03-2025 11:34:32.054 INFO [main] [TID: N/A] c.t.n.c.a.s.i.StatServiceImpl: [STAT] {"accountId":"20112672","weeklyReportMessage":"receive data from bigdata","tspSupported":true,"statKey":"@WeeklyReportStat"}
11-03-2025 11:34:32.211 INFO [main] [TID: N/A] c.t.n.c.a.s.i.StatServiceImpl: [STAT] {"service":"IndexServerApiImpl$MockitoMock$1163662474","method":"toString","exception":0,"exeMs":0,"statKey":"@ThirdPartyApiStat"}
11-03-2025 11:34:50.776 INFO [main] [TID: N/A] c.t.n.c.a.s.i.StatServiceImpl: [STAT] {"service":"IndexServerApiImpl$MockitoMock$1163662474","method":"toString","exception":0,"exeMs":1,"statKey":"@ThirdPartyApiStat"}
Hibernate: insert into user_report (ctime, mtime, account_id, content, device_id, device_report, expired_time, order_service_type, report_date, status, timezone, type, id) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: insert into user_report (ctime, mtime, account_id, content, device_id, device_report, expired_time, order_service_type, report_date, status, timezone, type, id) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
11-03-2025 11:34:53.601 WARN [main] [TID: N/A] o.h.e.j.s.SqlExceptionHelper: SQL Error: 1062, SQLState: 23000
11-03-2025 11:34:53.601 ERROR [main] [TID: N/A] o.h.e.j.s.SqlExceptionHelper: Duplicate entry '20112672-WEEKLY-6824-04-14' for key 'user_report.account_id_type_report_date_index'
11-03-2025 11:34:53.609 INFO [main] [TID: N/A] c.t.n.c.a.s.i.StatServiceImpl: [STAT] {"service":"IndexServerApiImpl$MockitoMock$1163662474","method":"getMockitoInterceptor","exception":0,"exeMs":0,"statKey":"@ThirdPartyApiStat"}
11-03-2025 11:34:53.610 INFO [main] [TID: N/A] c.t.n.c.a.s.i.StatServiceImpl: [STAT] {"service":"IndexServerApiImpl$MockitoMock$1163662474","method":"getMockitoInterceptor","exception":0,"exeMs":0,"statKey":"@ThirdPartyApiStat"}
11-03-2025 11:34:53.610 INFO [main] [TID: N/A] c.t.n.c.a.s.i.StatServiceImpl: [STAT] {"service":"IndexServerApiImpl$MockitoMock$1163662474","method":"getMockitoInterceptor","exception":0,"exeMs":0,"statKey":"@ThirdPartyApiStat"}
11-03-2025 11:34:53.610 INFO [main] [TID: N/A] c.t.n.c.a.s.i.StatServiceImpl: [STAT] {"service":"IndexServerApiImpl$MockitoMock$1163662474","method":"getMockitoInterceptor","exception":0,"exeMs":0,"statKey":"@ThirdPartyApiStat"}
11-03-2025 11:34:53.610 INFO [main] [TID: N/A] c.t.n.c.a.s.i.StatServiceImpl: [STAT] {"service":"IndexServerApiImpl$MockitoMock$1163662474","method":"getMockitoInterceptor","exception":0,"exeMs":0,"statKey":"@ThirdPartyApiStat"}
11-03-2025 11:34:53.610 INFO [main] [TID: N/A] c.t.n.c.a.s.i.StatServiceImpl: [STAT] {"service":"IndexServerApiImpl$MockitoMock$1163662474","method":"getMockitoInterceptor","exception":0,"exeMs":0,"statKey":"@ThirdPartyApiStat"}
11-03-2025 11:34:53.610 INFO [main] [TID: N/A] c.t.n.c.a.s.i.StatServiceImpl: [STAT] {"service":"IndexServerApiImpl$MockitoMock$1163662474","method":"setMockitoInterceptor","exception":0,"exeMs":0,"statKey":"@ThirdPartyApiStat"}
org.springframework.dao.DataIntegrityViolationException: could not execute statement; SQL [n/a]; constraint [user_report.account_id_type_report_date_index]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement
at org.springframework.orm.jpa.vendor.HibernateJpaDialect.convertHibernateAccessException(HibernateJpaDialect.java:298)
at org.springframework.orm.jpa.vendor.HibernateJpaDialect.translateExceptionIfPossible(HibernateJpaDialect.java:255)
at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.translateExceptionIfPossible(AbstractEntityManagerFactoryBean.java:528)
at org.springframework.dao.support.ChainedPersistenceExceptionTranslator.translateExceptionIfPossible(ChainedPersistenceExceptionTranslator.java:61)
at org.springframework.dao.support.DataAccessUtils.translateIfNecessary(DataAccessUtils.java:242)
at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:154)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.data.jpa.repository.support.CrudMethodMetadataPostProcessor$CrudMethodMetadataPopulatingMethodInterceptor.invoke(CrudMethodMetadataPostProcessor.java:149)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:95)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
at com.sun.proxy.$Proxy275.pageFindByAccountIdAndTypeAndReportDate(Unknown Source)
at com.tplink.nbu.cloudstorage.appserver.service.impl.WeeklyReportServiceImpl.getUserReportByDeviceIds(WeeklyReportServiceImpl.java:321)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:205)
at com.sun.proxy.$Proxy272.getUserReportByDeviceIds(Unknown Source)
at com.tplink.nbu.cloudstorage.appserver.service.impl.WeeklyReportServiceImplTest.testCalculate(WeeklyReportServiceImplTest.java:273)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.springframework.test.context.junit4.statements.RunBeforeTestExecutionCallbacks.evaluate(RunBeforeTestExecutionCallbacks.java:74)
at org.springframework.test.context.junit4.statements.RunAfterTestExecutionCallbacks.evaluate(RunAfterTestExecutionCallbacks.java:84)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:75)
at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86)
at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:251)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:97)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:190)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69)
at com.intellij.rt.junit.IdeaTestRunner$Repeater$1.execute(IdeaTestRunner.java:38)
at com.intellij.rt.execution.junit.TestsRepeater.repeat(TestsRepeater.java:11)
at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:35)
at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:231)
at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:55)
Caused by: org.hibernate.exception.ConstraintViolationException: could not execute statement
at org.hibernate.exception.internal.SQLExceptionTypeDelegate.convert(SQLExceptionTypeDelegate.java:59)
at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:42)
at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:113)
at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:99)
at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:200)
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3255)
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:3782)
at org.hibernate.action.internal.EntityInsertAction.execute(EntityInsertAction.java:107)
at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:604)
at org.hibernate.engine.spi.ActionQueue.lambda$executeActions$1(ActionQueue.java:478)
at java.base/java.util.LinkedHashMap.forEach(LinkedHashMap.java:684)
at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:475)
at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:348)
at org.hibernate.event.internal.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:57)
at org.hibernate.event.service.internal.EventListenerGroupImpl.fireEventOnEachListener(EventListenerGroupImpl.java:102)
at org.hibernate.internal.SessionImpl.autoFlushIfRequired(SessionImpl.java:1328)
at org.hibernate.internal.SessionImpl.list(SessionImpl.java:1408)
at org.hibernate.query.internal.AbstractProducedQuery.doList(AbstractProducedQuery.java:1565)
at org.hibernate.query.internal.AbstractProducedQuery.list(AbstractProducedQuery.java:1533)
at org.hibernate.query.Query.getResultList(Query.java:165)
at org.springframework.data.jpa.repository.query.JpaQueryExecution$CollectionExecution.doExecute(JpaQueryExecution.java:126)
at org.springframework.data.jpa.repository.query.JpaQueryExecution.execute(JpaQueryExecution.java:88)
at org.springframework.data.jpa.repository.query.AbstractJpaQuery.doExecute(AbstractJpaQuery.java:154)
at org.springframework.data.jpa.repository.query.AbstractJpaQuery.execute(AbstractJpaQuery.java:142)
at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:618)
at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:605)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.data.projection.DefaultMethodInvokingMethodInterceptor.invoke(DefaultMethodInvokingMethodInterceptor.java:80)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:367)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:118)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:139)
... 49 more
Caused by: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry '20112672-WEEKLY-6824-04-14' for key 'user_report.account_id_type_report_date_index'
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.executeUpdateInternal(ClientPreparedStatement.java:1092)
at com.mysql.cj.jdbc.ClientPreparedStatement.executeUpdateInternal(ClientPreparedStatement.java:1040)
at com.mysql.cj.jdbc.ClientPreparedStatement.executeLargeUpdate(ClientPreparedStatement.java:1347)
at com.mysql.cj.jdbc.ClientPreparedStatement.executeUpdate(ClientPreparedStatement.java:1025)
at com.zaxxer.hikari.pool.ProxyPreparedStatement.executeUpdate(ProxyPreparedStatement.java:61)
at com.zaxxer.hikari.pool.HikariProxyPreparedStatement.executeUpdate(HikariProxyPreparedStatement.java)
at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate(ResultSetReturnImpl.java:197)
... 77 more
11-03-2025 11:34:54.279 WARN [Apollo-RemoteConfigLongPollService-1] [TID: N/A] c.c.f.a.i.RemoteConfigLongPollService: Long polling failed, will retry in 120 seconds. appId: tapocare_app, cluster: dev-aps1, namespaces: networkAcceleration__application.yaml, long polling url: null, reason: Get config services failed from https://apollo-configservice-alpha.i.tplinknbu.com/services/config?appId=tapocare_app&ip=192.168.131.1 [Cause: Could not complete get operation [Cause: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target [Cause: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target [Cause: unable to find valid certification path to requested target]]]]
11-03-2025 11:35:04.221 WARN [Thread-4] [TID: N/A] c.t.n.c.c.m.i.RegionUrlMonitorImpl: MonitorThread Thread-4 is interrupted
11-03-2025 11:35:04.221 ERROR [Thread-4] [TID: N/A] c.t.n.c.c.m.i.RegionUrlMonitorImpl: MonitorThread Thread-4 stopped
11-03-2025 11:35:06.306 WARN [SpringContextShutdownHook] [TID: N/A] c.t.n.c.h.r.s.SyncHttpClientImpl: Destroy the SyncHttpClient!!
11-03-2025 11:35:06.307 DEBUG [SpringContextShutdownHook] [TID: N/A] c.t.n.c.h.r.a.AsyncHttpClientImpl: Destroy the AsyncHttpClient!!
11-03-2025 11:35:07.113 INFO [SpringContextShutdownHook] [TID: N/A] c.z.h.HikariDataSource: HikariCP-TapoCare - Shutdown initiated...
11-03-2025 11:35:07.114 INFO [SpringContextShutdownHook] [TID: N/A] c.z.h.HikariDataSource: HikariCP-TapoCare - Shutdown completed.
已与地址为 ''127.0.0.1:56903',传输: '套接字'' 的目标虚拟机断开连接
最新发布