java 访问纪录_Java后端记录每次接口访问信息和异常信息

这篇博客详细记录了一次Java后端接口访问时遇到的异常信息,异常为'SdpOperationException',原因是对应环境不存在。堆栈跟踪显示问题出现在EnvironmentModel的getEnvironmentEntity方法中。博客还涵盖了从请求到处理的完整调用链路,涉及了多个服务层和控制器操作。
摘要由CSDN通过智能技术生成

{"_id" : ObjectId("5a40ad3945ce333894ec3b51"),"exceptionMessage" : "对应环境不存在,appId:5a409ea745ce333894ec3b43,env:1","exceptionType" : "SdpOperationException: 对应环境不存在,appId:5a409ea745ce333894ec3b43,env:1","exceptionTypeChinese" : "","exceptionDetails" : "异常类型:

com.nd.component.sdp.portal.service.exception.SdpOperationException: 对应环境不存在,appId:5a409ea745ce333894ec3b43,env:1com.nd.component.sdp.portal.service.component.environment.model.EnvironmentModel.getEnvironmentEntity(EnvironmentModel.java:103)

com.nd.component.sdp.portal.service.component.environment.model.EnvironmentModel.getEnvironmentEntity(EnvironmentModel.java:109)

com.nd.component.sdp.portal.service.component.web.elastic.impl.ElasticAdaptV10.getTomcatStatus(ElasticAdaptV10.java:200)

com.nd.component.sdp.portal.service.component.web.elastic.ElasticService.getTomcatStatus(ElasticService.java:121)

com.nd.component.sdp.portal.service.component.web.WebElasticOperation.doGet(WebElasticOperation.java:86)

com.nd.component.sdp.portal.service.component.web.WebElasticOperation$$FastClassBySpringCGLIB$$81e31e0b.invoke()

org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)

org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:708)

org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)

org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)

org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)

org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:644)

com.nd.component.sdp.portal.service.component.web.WebElasticOperation$$EnhancerBySpringCGLIB$$c0ba16cd.doGet()

com.nd.component.sdp.portal.service.excutor.GetExcutor.doGet(GetExcutor.java:45)

com.nd.sdp.portal.service.GetService.get(GetService.java:23)

com.nd.sdp.portal.controller.ApplicationResourceController.getTomcatState(ApplicationResourceController.java:159)

com.nd.sdp.portal.controller.ApplicationResourceController$$FastClassBySpringCGLIB$$c4ef8b30.invoke()

org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)

org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:708)

org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)

org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:52)

org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)

org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)

org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)

org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:644)

com.nd.sdp.portal.controller.ApplicationResourceController$$EnhancerBySpringCGLIB$$b4b4259b.getTomcatState()

sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

java.lang.reflect.Method.invoke(Method.java:606)

org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)

org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:137)

org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)

org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:747)

org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:676)

org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)

org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:938)

org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:870)

org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:961)

org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:852)

javax.servlet.http.HttpServlet.service(HttpServlet.java:624)

org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:837)

javax.servlet.http.HttpServlet.service(HttpServlet.java:731)

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)

org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)

org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)

org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)

org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)

org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)

org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)

org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)

org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)

com.nd.gaea.rest.filter.TokenAuthenticationProcessFilter.doFilterInternal(TokenAuthenticationProcessFilter.java:91)

org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)

org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)

org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)

org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)

org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)

org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)

org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

com.nd.gaea.rest.filter.WafHttpMethodOverrideFilter.doFilterInternal(WafHttpMethodOverrideFilter.java:70)

org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

com.nd.gaea.rest.filter.WafCorsFilter.doFilterInternal(WafCorsFilter.java:43)

org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)

org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

com.nd.gaea.rest.filter.ExceptionFilter.doFilterInternal(ExceptionFilter.java:66)

org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)

org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)

org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)

org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)

org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:620)

org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1747)

org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1706)

java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

java.lang.Thread.run(Thread.java:745)",

"urlType" : "GET","type" : "exceptionOperation","exceptionClassName" : "com.nd.sdp.portal.exception.CustomExceptionHandler","exceptionLocation" : "com.nd.component.sdp.portal.service.component.environment.model.EnvironmentModel.getEnvironmentEntity(EnvironmentModel.java:103)","requestMappingName" : "/v0.2/app/5a409ea745ce333894ec3b43/resources/state","userId" : "339691","userName" : "","ip" : "192.168.252.29","createTime" : ISODate("2017-12-25T07:48:09.000Z"),"params": [

{"paramName" : "env","paramValue" : "1"},

{"paramName" : "type","paramValue" : "ELASTIC_OPERATION"}

],"platformName" : "sdpPortal"}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值