Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 查看定时任务审计事件记录异常 #2620

Closed
wangyu096 opened this issue Nov 16, 2023 · 0 comments
Closed

fix: 查看定时任务审计事件记录异常 #2620

wangyu096 opened this issue Nov 16, 2023 · 0 comments
Assignees
Labels
done 已上线到正式环境并验收通过 for accept 等待功能验收会进行验收 kind/bug 程序故障Bug,漏洞
Milestone

Comments

@wangyu096
Copy link
Collaborator

Version / Branch / tag

3.8.4

出了什么问题?(What Happened?)
查看定时任务审计事件记录异常。报错如下

[2023-11-16 14:13:39.806] ERROR [job-crontab,cbce836b6e9d06c5bd9e6c4ff7c50613,e7c00d4d306d30f6] 8278 --- [http-nio-10501-exec-3] com.tencent.bk.audit.ActionAuditAspect   : Audit action caught exception

org.springframework.expression.spel.SpelEvaluationException: EL1007E: Property or field '$' cannot be found on null
        at org.springframework.expression.spel.ast.PropertyOrFieldReference.readProperty(PropertyOrFieldReference.java:213)
        at org.springframework.expression.spel.ast.PropertyOrFieldReference.getValueInternal(PropertyOrFieldReference.java:104)
        at org.springframework.expression.spel.ast.PropertyOrFieldReference.getValueInternal(PropertyOrFieldReference.java:91)
        at org.springframework.expression.spel.ast.CompoundExpression.getValueRef(CompoundExpression.java:55)
        at org.springframework.expression.spel.ast.CompoundExpression.getValueInternal(CompoundExpression.java:91)
        at org.springframework.expression.spel.ast.SpelNodeImpl.getValue(SpelNodeImpl.java:112)
        at org.springframework.expression.spel.standard.SpelExpression.getValue(SpelExpression.java:273)
        at com.tencent.bk.audit.ActionAuditAspect.parseBySpel(ActionAuditAspect.java:224)
        at com.tencent.bk.audit.ActionAuditAspect.parseInstanceNameList(ActionAuditAspect.java:183)
        at com.tencent.bk.audit.ActionAuditAspect.parseActionAuditRecordSpEL(ActionAuditAspect.java:142)
        at com.tencent.bk.audit.ActionAuditAspect.actionAuditRecord(ActionAuditAspect.java:104)
        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.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:634)
        at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:624)
        at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:72)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175)
        at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)
        at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
        at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)
        at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)
        at com.tencent.bk.job.crontab.service.impl.CronJobServiceImpl$$EnhancerBySpringCGLIB$$b63f17e0.getCronJobInfoById(<generated>)
        at com.tencent.bk.job.crontab.api.web.impl.WebCronJobResourceImpl.getCronJobById(WebCronJobResourceImpl.java:339)
        at com.tencent.bk.job.crontab.api.web.impl.WebCronJobResourceImpl$$FastClassBySpringCGLIB$$f52788e2.invoke(<generated>)
        at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
        at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)

解析 Spel 表达式报错

@wangyu096 wangyu096 added kind/bug 程序故障Bug,漏洞 backlog 需求初始状态,等待产品进行评估 todo 进入开发排期的状态,纳入了最近的迭代 labels Nov 16, 2023
@wangyu096 wangyu096 self-assigned this Nov 16, 2023
wangyu096 added a commit that referenced this issue Nov 16, 2023
fix: 查看定时任务审计事件记录异常 #2620
@wangyu096 wangyu096 added this to the V3.8.5 milestone Nov 17, 2023
@wangyu096 wangyu096 added for accept 等待功能验收会进行验收 and removed todo 进入开发排期的状态,纳入了最近的迭代 labels Nov 17, 2023
@bkjob-bot bkjob-bot added for test 可以在测试环境进行验收 for gray 可以在灰度环境/预发布环境验收 and removed backlog 需求初始状态,等待产品进行评估 for test 可以在测试环境进行验收 labels Nov 24, 2023
@bkjob-bot bkjob-bot added done 已上线到正式环境并验收通过 and removed for gray 可以在灰度环境/预发布环境验收 labels Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
done 已上线到正式环境并验收通过 for accept 等待功能验收会进行验收 kind/bug 程序故障Bug,漏洞
Projects
None yet
Development

No branches or pull requests

2 participants