bladex 打成war发布至中间件

Java 未结 1 547
bandit_club
bandit_club 剑童 2022-09-28 14:38

使用bladex-boot版本打成至中间件时,可以正常运行,但是登陆后,会异步的存储登陆日志,因为不是用Jar启动,不会执行BladeApplication

然后就报以下错误

java.lang.IllegalArgumentException: 请使用 BladeApplication 启动...

at org.springframework.util.Assert.notNull(Assert.java:201) ~[spring-core-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springblade.core.launch.props.BladeProperties.getEnv(BladeProperties.java:202) ~[blade-core-launch-2.9.0.RELEASE.jar:na]

at org.springblade.core.log.utils.LogAbstractUtil.addOtherInfoToLog(LogAbstractUtil.java:65) ~[blade-starter-log-2.9.0.RELEASE.jar:na]

at org.springblade.common.event.ApiLogListener.saveApiLog(ApiLogListener.java:56) ~[oversee-framework-1.0.0.jar:na]

at org.springblade.common.event.ApiLogListener$$FastClassBySpringCGLIB$$e8ab5568.invoke(<generated>) ~[oversee-framework-1.0.0.jar:na]

at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) ~[spring-core-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:779) ~[spring-aop-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) ~[spring-aop-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:750) ~[spring-aop-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:88) ~[spring-aop-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springblade.core.log.aspect.LogTraceAspect.around(LogTraceAspect.java:41) ~[blade-starter-log-2.9.0.RELEASE.jar:na]

at sun.reflect.GeneratedMethodAccessor410.invoke(Unknown Source) ~[na:na]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_221]

at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_221]

at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:644) ~[spring-aop-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:633) ~[spring-aop-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70) ~[spring-aop-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175) ~[spring-aop-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:750) ~[spring-aop-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:95) ~[spring-aop-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:750) ~[spring-aop-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.aop.interceptor.AsyncExecutionInterceptor.lambda$invoke$0(AsyncExecutionInterceptor.java:115) ~[spring-aop-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_221]

at org.springblade.core.context.BladeRunnableWrapper.run(BladeRunnableWrapper.java:54) ~[blade-core-context-2.9.0.RELEASE.jar:na]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_221]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_221]

at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_221]


1条回答
  • 2022-10-08 01:38

    这个问题我们记录一下,后续看下如何优化

    0 讨论(0)
提交回复