@EqualsAndHashCode(callSuper = true) @Data public class… · The Chat Archive
Explore @EqualsAndHashCode(callSuper = true) @Data public class ServiceException extends… Save Share Download ▾ Report@EqualsAndHashCode(callSuper = true)
@Data
public class ServiceException extends RuntimeException {
private static final long serialVersionUID = 3447728300174142127L;
public static final String DEFAULT_MESSAGE = "网络错误,请稍后重试!";
/**
* 异常消息
*/
private String msg = DEFAULT_MESSAGE;
/**
* 错误码
*/
private ResultCode resultCode;
public ServiceException(String msg) {
this.resultCode = ResultCode.ERROR;
this.msg = msg;
}
public ServiceException() {
super();
}
public ServiceException(ResultCode resultCode) {
this.resultCode = resultCode;
}
public ServiceException(ResultCode resultCode, String message) {
this.resultCode = resultCode;
this.msg = message;
}
我又一个异常类
我在实际应用的时候 throw new ServiceException("错误")
一直报空指针 你能帮我看看是什么问题吗
Assistant2024-09-26 07:14 UTC Copy response
在您的 ServiceException 类中,可能引发空指针异常的地方有以下几个:
resultCode 属性可能未初始化 :如果在某些情况下,没有通过构造函数正确初始化 resultCode,且之后的代码尝试访问该字段,就可能引发空指针异常。
msg 属性的使用 :虽然您在构造函数中初始化了 msg,但确保在每个可能会被调用的构造函数中进行正确初始化是很重要的。
看似是 resultCode 更有可能是引发空指针异常的地方,因为您在特定的构造函数中没有对其进行任何默认初始化,例如,public ServiceException() {}。
考虑进行以下调整以确保您没有这种问题:
public class ServiceException extends RuntimeException {
private static final long serialVersionUID = 3447728300174142127L;
public static final String DEFAULT_MESSAGE = "网络错误,请稍后重试!";
/**
* 异常消息
*/
private String msg = DEFAULT_MESSAGE;
/**
* 错误码
*/
private ResultCode resultCode = ResultCode.ERROR; // 默认初始化
public ServiceException(String msg) {
super(msg); // Call parent constructor
this.msg = msg;
}
public ServiceException() {
super(DEFAULT_MESSAGE); // Call parent constructor
this.msg = DEFAULT_MESSAGE;
}
public ServiceException(ResultCode resultCode) {
super(DEFAULT_MESSAGE); // Call parent constructor
this.resultCode = resultCode;
}
public ServiceException(ResultCode resultCode, String message) {
super(message); // Call parent constructor
this.resultCode = resultCode;
this.msg = message;
}
}
Assistant2024-09-26 07:24 UTC Copy response
从您提供的堆栈跟踪来看,异常 cn.lili.common.exception.ServiceException: null 表明发生了一个 ServiceException 并且其消息为 null。这通常意味着在抛出异常的时候,没有正确地设置异常消息。
以下为可能导致此问题的原因及解决方案思路:
检查 changeMobileAndPw 方法 :
确保在 MemberServiceImpl.java 的第 918 行,抛出 ServiceException 时传递了一个非空的消息字符串。
示例:throw new ServiceException("具体的错误描述信息");
构造函数问题 :
检查您如何调用 ServiceException 的构造函数。确保使用了那个期望的构造函数,并传递了非空的参数。
例如,如果您在代码某处使用 throw new ServiceException() 而没有设置默认消息,那么 msg 会是 null,需要确保无参构造函数中初始化 msg,像这样:this.msg = DEFAULT_MESSAGE;
调用链中的其它潜在问题 :
如果您使用了某种形式的异常包装或转换,这是常见做法,尤其是在采用设计较为健壮的错误处理机制时,检查转换在任意时刻丢失或未设置异常的信息。
确保异常在传递的过程中不被吃掉或者被匿名化(例如,在一个 try-catch 块中没有重新抛出原始异常或者不包含足够详细的信息)。
在此堆栈跟踪中,异常是由 changeMobileAndPw 方法内部引起的,因此,重点检查这个方法在什么情况下会引发 ServiceException 并确保传递了正确的异常消息。
接着,如果您找到抛出异常的代码,验证传递给 ServiceException 构造函数的参数,看是否符合预期。这样应该可以帮助解决您所遇到的问题。
Copy first prompt Copy first response
Details
Provider OpenAI
Model provenance As recorded by source dataset
Turns 2 (4 messages)
Language en
Conversation date Sep 26, 2024
Added to archive Nov 16, 2026
ID 01m7h41vydw49rm57jcqrm9rw6Source & license Imported from WildChat-4.8M (AI2) (source ). Imported records earn no Research Points.
Upstream record: 11d40270f2ce5444137c907d28600179
Zhao et al., WildChat: 1M ChatGPT Interaction Logs in the Wild (ICLR 2024). Contains information from WildChat-4.8M, made available under the ODC Attribution License.
License: ODC-BY-1.0
确保每个构造函数在父类的初始化(Arrays, Lists, Maps等)时都设置了一个默认消息。
在无参数构造函数和只接收 ResultCode 的构造函数中,将 resultCode 初始化为一个默认值,以避免使用未初始化的 resultCode。
同时,您在实际使用该类的时候,也需要确保 ResultCode 枚举的实现是可以俱提供默认值,且没有任何方法直接或间接地尝试在未初始化的状态下使用 resultCode。建议您对 ResultCode.ERROR 的枚举值进行检查,以确定它已定义。
cn.lili.common.exception.ServiceException: null
at cn.lili.modules.member.serviceimpl.MemberServiceImpl.changeMobileAndPw(MemberServiceImpl.java:918)
at cn.lili.modules.member.serviceimpl.MemberServiceImplF a s t C l a s s B y S p r i n g C G L I B FastClassBySpringCGLIB F a s tC l a ss B y S p r in g C G L I B b2a938a6.invoke()
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
at org.springframework.aop.framework.CglibAopProxyC g l i b M e t h o d I n v o c a t i o n . i n v o k e J o i n p o i n t ( C g l i b A o p P r o x y . j a v a : 779 ) a t o r g . s p r i n g f r a m e w o r k . a o p . f r a m e w o r k . R e f l e c t i v e M e t h o d I n v o c a t i o n . p r o c e e d ( R e f l e c t i v e M e t h o d I n v o c a t i o n . j a v a : 163 ) a t o r g . s p r i n g f r a m e w o r k . a o p . f r a m e w o r k . C g l i b A o p P r o x y CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:779)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.aop.framework.CglibAopProxy C g l ib M e t h o d I n v oc a t i o n . in v o k e J o in p o in t ( C g l ib A o pP r o x y . j a v a : CglibMethodInvocation.proceed(CglibAopProxy.java:750)
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.CglibAopProxyC g l i b M e t h o d I n v o c a t i o n . p r o c e e d ( C g l i b A o p P r o x y . j a v a : 750 ) a t o r g . s p r i n g f r a m e w o r k . a o p . f r a m e w o r k . C g l i b A o p P r o x y CglibMethodInvocation.proceed(CglibAopProxy.java:750)
at org.springframework.aop.framework.CglibAopProxy C g l ib M e DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:692)
at cn.lili.modules.member.serviceimpl.MemberServiceImplE n h a n c e r B y S p r i n g C G L I B EnhancerBySpringCGLIB E nhan cer B y S p r in g C G L I B e8274a40.changeMobileAndPw()
at cn.lili.controller.passport.MemberBuyerController.update(MemberBuyerController.java:70)
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.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:197)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:141)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:106)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1064)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:963)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
at org.springframework.web.servlet.FrameworkServlet.doPut(FrameworkServlet.java:920)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:684)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at cn.lili.common.security.filter.XssFilter.doFilter(XssFilter.java:32)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at org.springframework.security.web.FilterChainProxyV i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 327 ) a t o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . a c c e s s . i n t e r c e p t . F i l t e r S e c u r i t y I n t e r c e p t o VirtualFilterChain.doFilter(FilterChainProxy.java:336)
at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:119)
at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
at org.springframework.security.web.FilterChainProxyV i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 336 ) a t o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . s e s s i o n . S e s s i o n M a n a g e m e n t F i l t e r . d o F i l t e r ( VirtualFilterChain.doFilter(FilterChainProxy.java:336)
at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:105)
at org.springframework.security.web.FilterChainProxyV i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 336 ) a t o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . s e r v l e t a p i . S e c u r i t y C o n t e x t H o l d e r A w a r e R e q u e VirtualFilterChain.doFilter(FilterChainProxy.java:336)
at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63)
at org.springframework.security.web.FilterChainProxyV i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 336 ) a t c n . l i l i . s e c u r i t y . B u y e r A u t h e n t i c a t i o n F i l t e r . d o F i l t e r I n t e r n a l ( B u y e r A u t h e n t i c a VirtualFilterChain.doFilter(FilterChainProxy.java:336)
at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:103)
at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:89)
at org.springframework.security.web.FilterChainProxyV i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 336 ) a t o r g . s p r i n g f r a m e w o r k . w e b . f i l t e r . C o r s F i l t e r . d o F i l t e r I n t e r n a l ( C o r s F i l t e r . j a v a VirtualFilterChain.doFilter(FilterChainProxy.java:336)
at org.springframework.security.web.header.HeaderWriterFilter.doHeadersAfter(HeaderWriterFilter.java:90)
at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:75)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
at org.springframework.security.web.FilterChainProxyV i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 336 ) a t o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . c o n t e x t . S e c u r i t y C o n t e x t P e r s i s t e n c e F i l t e r . VirtualFilterChain.doFilter(FilterChainProxy.java:336)
at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:55)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
at org.springframework.security.web.FilterChainProxyV i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 336 ) a t o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y . d o F i l t e r I n t e r n a l ( F i l t e r C ConnectionHandler.process(AbstractProtocol.java:893)
at org.apache.tomcat.util.net.NioEndpointS o c k e t P r o c e s s o r . d o R u n ( N i o E n d p o i n t . j a v a : 1726 ) a t o r g . a p a c h e . t o m c a t . u t i l . n e t . S o c k e t P r o c e s s o r B a s e . r u n ( S o c k e t P r o c e s s o r B a s e . j a v a : 49 ) a t o r g . Worker.run(ThreadPoolExecutor.java:659)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)
还是报错 你能不能分析一下
Not yet included in a published release.
779
)
a
t
or
g
.
s
p
r
in
g
f
r
am
e
w
or
k
.
a
o
p
.
f
r
am
e
w
or
k
.
R
e
f
l
ec
t
i
v
e
M
e
t
h
o
d
I
n
v
oc
a
t
i
o
n
.
p
r
ocee
d
(
R
e
f
l
ec
t
i
v
e
M
e
t
h
o
d
I
n
v
oc
a
t
i
o
n
.
j
a
v
a
:
163 ) a t or g . s p r in g f r am e w or k . a o p . f r am e w or k . C g l ib A o pP r o x y
t
h
o
d
I
n
v
oc
a
t
i
o
n
.
p
r
ocee
d
(
C
g
l
ib
A
o
pP
r
o
x
y
.
j
a
v
a
:
750 ) a t or g . s p r in g f r am e w or k . a o p . f r am e w or k . C g l ib A o pP r o x y
r . i n v o k e ( F i l t e r S e c u r i t y I n t e r c e p t o r . j a v a : 115 ) a t o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . a c c e s s . i n t e r c e p t . F i l t e r S e c u r i t y I n t e r c e p t o r . d o F i l t e r ( F i l t e r S e c u r i t y I n t e r c e p t o r . j a v a : 81 ) a t o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y VirtualFilterChain.doFilter(FilterChainProxy.java:327)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:115)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:81)
at org.springframework.security.web.FilterChainProxy V i r t u a l F i l t er C hain . d o F i l t er ( F i l t er C hain P r o x y . j a v a : 327 ) a t or g . s p r in g f r am e w or k . sec u r i t y . w e b . a ccess . in t er ce pt . F i l t er S ec u r i t y I n t er ce pt or . in v o k e ( F i l t er S ec u r i t y I n t er ce pt or . j a v a : 115 ) a t or g . s p r in g f r am e w or k . sec u r i t y . w e b . a ccess . in t er ce pt . F i l t er S ec u r i t y I n t 81 ) a t or g . s p r in g f r am e w or k . sec u r i t y . w e b . F i l t er C hain P r o x y
S e s s i o n M a n a g e m e n t F i l t e r . j a v a : 126 ) a t o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . s e s s i o n . S e s s i o n M a n a g e m e n t F i l t e r . d o F i l t e r ( S e s s i o n M a n a g e m e n t F i l t e r . j a v a : 81 ) a t o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y VirtualFilterChain.doFilter(FilterChainProxy.java:336)
at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:126)
at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:81)
at org.springframework.security.web.FilterChainProxy V i r t u a l F i l t er C hain . d o F i l t er ( F i l t er C hain P r o x y . j a v a : 336 ) a t or g . s p r in g f r am e w or k . sec u r i t y . w e b . sess i o n . S ess i o n M ana g e m e n tF i l t er . d o F i l t er ( S ess i o n M ana g e m e n tF i l t er . j a v a : 126 ) a t or g . s p r in g f r am e w or k . sec u r i t y . w e b . sess i o n . S ess i o n M ana g e m e n tF i l t er . d o 81 ) a t or g . s p r in g f r am e w or k . sec u r i t y . w e b . F i l t er C hain P r o x y
s t F i l t e r . d o F i l t e r ( S e c u r i t y C o n t e x t H o l d e r A w a r e R e q u e s t F i l t e r . j a v a : 149 ) a t o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y VirtualFilterChain.doFilter(FilterChainProxy.java:336)
at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:149)
at org.springframework.security.web.FilterChainProxy V i r t u a l F i l t er C hain . d o F i l t er ( F i l t er C hain P r o x y . j a v a : 336 ) a t or g . s p r in g f r am e w or k . sec u r i t y . w e b . ser v l e t a p i . S ec u r i t y C o n t e x t H o l d er A w a r e R e q u es tF i l t er . d o F i l t er ( S ec u r i t y C o n t e x t H o l d er A w a r e R e q u es tF i l t er . j a v a : 149 ) a t or g . s p r in g f r am e w or k . sec u r i t y . w e b . F i l t er C hain P r o x y
t i o n F i l t e r . j a v a : 80 ) a t o r g . s p r i n g f r a m e w o r k . w e b . f i l t e r . O n c e P e r R e q u e s t F i l t e r . d o F i l t e r ( O n c e P e r R e q u e s t F i l t e r . j a v a : 119 ) a t o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y VirtualFilterChain.doFilter(FilterChainProxy.java:336)
at cn.lili.security.BuyerAuthenticationFilter.doFilterInternal(BuyerAuthenticationFilter.java:80)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
at org.springframework.security.web.FilterChainProxy V i r t u a l F i l t er C hain . d o F i l t er ( F i l t er C hain P r o x y . j a v a : 336 ) a t c n . l i l i . sec u r i t y . B u y er A u t h e n t i c a t i o n F i l t er . d o F i l t er I n t er na l ( B u y er A u t h e n t i c a t i o n F i l t er . j a v a : 80 ) a t or g . s p r in g f r am e w or k . w e b . f i l t er . O n ce P er R e q u es tF i l t er . d o F i l t er 119 ) a t or g . s p r in g f r am e w or k . sec u r i t y . w e b . F i l t er C hain P r o x y
: 91 ) a t o r g . s p r i n g f r a m e w o r k . w e b . f i l t e r . O n c e P e r R e q u e s t F i l t e r . d o F i l t e r ( O n c e P e r R e q u e s t F i l t e r . j a v a : 119 ) a t o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y VirtualFilterChain.doFilter(FilterChainProxy.java:336)
at org.springframework.web.filter.CorsFilter.doFilterInternal(CorsFilter.java:91)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
at org.springframework.security.web.FilterChainProxy V i r t u a l F i l t er C hain . d o F i l t er ( F i l t er C hain P r o x y . j a v a : 336 ) a t or g . s p r in g f r am e w or k . w e b . f i l t er . C or s F i l t er . d o F i l t er I n t er na l ( C or s F i l t er . j a v a : 91 ) a t or g . s p r in g f r am e w or k . w e b . f i l t er . O n ce P er R e q u es tF i l t er . d o F i l t er 119 ) a t or g . s p r in g f r am e w or k . sec u r i t y . w e b . F i l t er C hain P r o x y
d o F i l t e r ( S e c u r i t y C o n t e x t P e r s i s t e n c e F i l t e r . j a v a : 110 ) a t o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . c o n t e x t . S e c u r i t y C o n t e x t P e r s i s t e n c e F i l t e r . d o F i l t e r ( S e c u r i t y C o n t e x t P e r s i s t e n c e F i l t e r . j a v a : 80 ) a t o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y VirtualFilterChain.doFilter(FilterChainProxy.java:336)
at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:110)
at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:80)
at org.springframework.security.web.FilterChainProxy V i r t u a l F i l t er C hain . d o F i l t er ( F i l t er C hain P r o x y . j a v a : 336 ) a t or g . s p r in g f r am e w or k . sec u r i t y . w e b . co n t e x t . S ec u r i t y C o n t e x tP er s i s t e n ce F i l t er . d o F i l t er ( S ec u r i t y C o n t e x tP er s i s t e n ce F i l t er . j a v a : 110 ) a t or g . s p r in g f r am e w or k . sec u r i t y . w e b . co n t e x t . S ec u r i t y C o n t e x tP er s i 80 ) a t or g . s p r in g f r am e w or k . sec u r i t y . w e b . F i l t er C hain P r o x y
h a i n P r o x y . j a v a : 211 ) a t o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 183 ) a t o r g . s p r i n g f r a m e w o r k . w e b . f i l t e r . D e l e g a t i n g F i l t e r P r o x y . i n v o k e D e l e g a t e ( D e l e g a t i n g F i l t e r P r o x y . j a v a : 358 ) a t o r g . s p r i n g f r a m e w o r k . w e b . f i l t e r . D e l e g a t i n g F i l t e r P r o x y . d o F i l t e r ( D e l e g a t i n g F i l t e r P r o x y . j a v a : 271 ) a t o r g . a p a c h e . c a t a l i n a . c o r e . A p p l i c a t i o n F i l t e r C h a i n . i n t e r n a l D o F i l t e r ( A p p l i c a t i o n F i l t e r C h a i n . j a v a : 189 ) a t o r g . a p a c h e . c a t a l i n a . c o r e . A p p l i c a t i o n F i l t e r C h a i n . d o F i l t e r ( A p p l i c a t i o n F i l t e r C h a i n . j a v a : 162 ) a t o r g . s p r i n g f r a m e w o r k . w e b . f i l t e r . R e q u e s t C o n t e x t F i l t e r . d o F i l t e r I n t e r n a l ( R e q u e s t C o n t e x t F i l t e r . j a v a : 100 ) a t o r g . s p r i n g f r a m e w o r k . w e b . f i l t e r . O n c e P e r R e q u e s t F i l t e r . d o F i l t e r ( O n c e P e r R e q u e s t F i l t e r . j a v a : 119 ) a t o r g . a p a c h e . c a t a l i n a . c o r e . A p p l i c a t i o n F i l t e r C h a i n . i n t e r n a l D o F i l t e r ( A p p l i c a t i o n F i l t e r C h a i n . j a v a : 189 ) a t o r g . a p a c h e . c a t a l i n a . c o r e . A p p l i c a t i o n F i l t e r C h a i n . d o F i l t e r ( A p p l i c a t i o n F i l t e r C h a i n . j a v a : 162 ) a t o r g . s p r i n g f r a m e w o r k . w e b . f i l t e r . F o r m C o n t e n t F i l t e r . d o F i l t e r I n t e r n a l ( F o r m C o n t e n t F i l t e r . j a v a : 90 ) a t o r g . s p r i n g f r a m e w o r k . w e b . f i l t e r . O n c e P e r R e q u e s t F i l t e r . d o F i l t e r ( O n c e P e r R e q u e s t F i l t e r . j a v a : 119 ) a t o r g . a p a c h e . c a t a l i n a . c o r e . A p p l i c a t i o n F i l t e r C h a i n . i n t e r n a l D o F i l t e r ( A p p l i c a t i o n F i l t e r C h a i n . j a v a : 189 ) a t o r g . a p a c h e . c a t a l i n a . c o r e . A p p l i c a t i o n F i l t e r C h a i n . d o F i l t e r ( A p p l i c a t i o n F i l t e r C h a i n . j a v a : 162 ) a t o r g . s p r i n g f r a m e w o r k . b o o t . a c t u a t e . m e t r i c s . w e b . s e r v l e t . W e b M v c M e t r i c s F i l t e r . d o F i l t e r I n t e r n a l ( W e b M v c M e t r i c s F i l t e r . j a v a : 97 ) a t o r g . s p r i n g f r a m e w o r k . w e b . f i l t e r . O n c e P e r R e q u e s t F i l t e r . d o F i l t e r ( O n c e P e r R e q u e s t F i l t e r . j a v a : 119 ) a t o r g . a p a c h e . c a t a l i n a . c o r e . A p p l i c a t i o n F i l t e r C h a i n . i n t e r n a l D o F i l t e r ( A p p l i c a t i o n F i l t e r C h a i n . j a v a : 189 ) a t o r g . a p a c h e . c a t a l i n a . c o r e . A p p l i c a t i o n F i l t e r C h a i n . d o F i l t e r ( A p p l i c a t i o n F i l t e r C h a i n . j a v a : 162 ) a t o r g . s p r i n g f r a m e w o r k . w e b . f i l t e r . C h a r a c t e r E n c o d i n g F i l t e r . d o F i l t e r I n t e r n a l ( C h a r a c t e r E n c o d i n g F i l t e r . j a v a : 201 ) a t o r g . s p r i n g f r a m e w o r k . w e b . f i l t e r . O n c e P e r R e q u e s t F i l t e r . d o F i l t e r ( O n c e P e r R e q u e s t F i l t e r . j a v a : 119 ) a t o r g . a p a c h e . c a t a l i n a . c o r e . A p p l i c a t i o n F i l t e r C h a i n . i n t e r n a l D o F i l t e r ( A p p l i c a t i o n F i l t e r C h a i n . j a v a : 189 ) a t o r g . a p a c h e . c a t a l i n a . c o r e . A p p l i c a t i o n F i l t e r C h a i n . d o F i l t e r ( A p p l i c a t i o n F i l t e r C h a i n . j a v a : 162 ) a t o r g . a p a c h e . c a t a l i n a . c o r e . S t a n d a r d W r a p p e r V a l v e . i n v o k e ( S t a n d a r d W r a p p e r V a l v e . j a v a : 197 ) a t o r g . a p a c h e . c a t a l i n a . c o r e . S t a n d a r d C o n t e x t V a l v e . i n v o k e ( S t a n d a r d C o n t e x t V a l v e . j a v a : 97 ) a t o r g . a p a c h e . c a t a l i n a . a u t h e n t i c a t o r . A u t h e n t i c a t o r B a s e . i n v o k e ( A u t h e n t i c a t o r B a s e . j a v a : 542 ) a t o r g . a p a c h e . c a t a l i n a . c o r e . S t a n d a r d H o s t V a l v e . i n v o k e ( S t a n d a r d H o s t V a l v e . j a v a : 135 ) a t o r g . a p a c h e . c a t a l i n a . v a l v e s . E r r o r R e p o r t V a l v e . i n v o k e ( E r r o r R e p o r t V a l v e . j a v a : 92 ) a t o r g . a p a c h e . c a t a l i n a . c o r e . S t a n d a r d E n g i n e V a l v e . i n v o k e ( S t a n d a r d E n g i n e V a l v e . j a v a : 78 ) a t o r g . a p a c h e . c a t a l i n a . c o n n e c t o r . C o y o t e A d a p t e r . s e r v i c e ( C o y o t e A d a p t e r . j a v a : 357 ) a t o r g . a p a c h e . c o y o t e . h t t p 11. H t t p 11 P r o c e s s o r . s e r v i c e ( H t t p 11 P r o c e s s o r . j a v a : 382 ) a t o r g . a p a c h e . c o y o t e . A b s t r a c t P r o c e s s o r L i g h t . p r o c e s s ( A b s t r a c t P r o c e s s o r L i g h t . j a v a : 65 ) a t o r g . a p a c h e . c o y o t e . A b s t r a c t P r o t o c o l VirtualFilterChain.doFilter(FilterChainProxy.java:336)
at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:211)
at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:183)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:358)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:271)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:90)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:97)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:357)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:382)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
at org.apache.coyote.AbstractProtocol V i r t u a l F i l t er C hain . d o F i l t er ( F i l t er C hain P r o x y . j a v a : 336 ) a t or g . s p r in g f r am e w or k . sec u r i t y . w e b . F i l t er C hain P r o x y . d o F i l t er I n t er na l ( F i l t er C hain P r o x y . j a v a : 211 ) a t or g . s p r in g f r am e w or k . sec u r i t y . w e b . F i l t er C hain P r o x y . d o F i l t er ( F 183 ) a t or g . s p r in g f r am e w or k . w e b . f i l t er . D e l e g a t in g F i l t er P r o x y . in v o 358 ) a t or g . s p r in g f r am e w or k . w e b . f i l t er . D e l e g a t in g F i l t er P r o x y . d o F 271 ) a t or g . a p a c h e . c a t a l ina . cor e . A ppl i c a t i o n F i l t er C hain . in t er na l D o F i l t er ( A ppl i 189 ) a t or g . a p a c h e . c a t a l ina . cor e . A ppl i c a t i o n F i l t er C hain . d o F i l t er ( A ppl i c a t i o n 162 ) a t or g . s p r in g f r am e w or k . w e b . f i l t er . R e q u es tC o n t e x tF i l t er . d o F i l t er 100 ) a t or g . s p r in g f r am e w or k . w e b . f i l t er . O n ce P er R e q u es tF i l t er . d o F i l t er 119 ) a t or g . a p a c h e . c a t a l ina . cor e . A ppl i c a t i o n F i l t er C hain . in t er na l D o F i l t er ( A ppl i 189 ) a t or g . a p a c h e . c a t a l ina . cor e . A ppl i c a t i o n F i l t er C hain . d o F i l t er ( A ppl i c a t i o n 162 ) a t or g . s p r in g f r am e w or k . w e b . f i l t er . F or m C o n t e n tF i l t er . d o F i l t er I 90 ) a t or g . s p r in g f r am e w or k . w e b . f i l t er . O n ce P er R e q u es tF i l t er . d o F i l t er 119 ) a t or g . a p a c h e . c a t a l ina . cor e . A ppl i c a t i o n F i l t er C hain . in t er na l D o F i l t er ( A ppl 189 ) a t or g . a p a c h e . c a t a l ina . cor e . A ppl i c a t i o n F i l t er C hain . d o F i l t er ( A ppl i c a t i o n 162 ) a t or g . s p r in g f r am e w or k . b oo t . a c t u a t e . m e t r i cs . w e b . ser v l e t . W e b M v c M 97 ) a t or g . s p r in g f r am e w or k . w e b . f i l t er . O n ce P er R e q u es tF i l t er . d o F i l t er 119 ) a t or g . a p a c h e . c a t a l ina . cor e . A ppl i c a t i o n F i l t er C hain . in t er na l D o F i l t er ( A ppl 189 ) a t or g . a p a c h e . c a t a l ina . cor e . A ppl i c a t i o n F i l t er C hain . d o F i l t er ( A ppl i c a t i o n 162 ) a t or g . s p r in g f r am e w or k . w e b . f i l t er . C ha r a c t er E n co d in g F i l t er . d o F i l 201 ) a t or g . s p r in g f r am e w or k . w e b . f i l t er . O n ce P er R e q u es tF i l t er . d o F i l t er 119 ) a t or g . a p a c h e . c a t a l ina . cor e . A ppl i c a t i o n F i l t er C hain . in t er na l D o F i l t er ( A ppl 189 ) a t or g . a p a c h e . c a t a l ina . cor e . A ppl i c a t i o n F i l t er C hain . d o F i l t er ( A ppl i c a t i o n 162 ) a t or g . a p a c h e . c a t a l ina . cor e . S t an d a r d W r a pp er V a l v e . in v o k e ( S t an d a r d W 197 ) a t or g . a p a c h e . c a t a l ina . cor e . S t an d a r d C o n t e x t V a l v e . in v o k e ( S t an d a r d C 97 ) a t or g . a p a c h e . c a t a l ina . a u t h e n t i c a t or . A u t h e n t i c a t or B a se . in v o k e ( A u t h e 542 ) a t or g . a p a c h e . c a t a l ina . cor e . S t an d a r d H os t V a l v e . in v o k e ( S t an d a r d H os t V 135 ) a t or g . a p a c h e . c a t a l ina . v a l v es . E r r or R e p or t V a l v e . in v o k e ( E r r or R e 92 ) a t or g . a p a c h e . c a t a l ina . cor e . S t an d a r d E n g in e V a l v e . in v o k e ( S t an d a r d E n 78 ) a t or g . a p a c h e . c a t a l ina . co nn ec t or . C oy o t e A d a pt er . ser v i ce ( C oy o t e A d a pt er . j a v a 357 ) a t or g . a p a c h e . coy o t e . h ttp 11. H ttp 11 P r ocessor . ser v i ce ( H ttp 11 P r ocessor . j a v a : 382 ) a t or g . a p a c h e . coy o t e . A b s t r a c tP r ocessor L i g h t . p r ocess ( A b s t r a c tP r ocessor L i g h t . j a 65 ) a t or g . a p a c h e . coy o t e . A b s t r a c tP r o t oco l
a p a c h e . t o m c a t . u t i l . t h r e a d s . T h r e a d P o o l E x e c u t o r . r u n W o r k e r ( T h r e a d P o o l E x e c u t o r . j a v a : 1191 ) a t o r g . a p a c h e . t o m c a t . u t i l . t h r e a d s . T h r e a d P o o l E x e c u t o r SocketProcessor.doRun(NioEndpoint.java:1726)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
at org.apache.tomcat.util.threads.ThreadPoolExecutor S oc k e tP r ocessor . d o R u n ( N i o E n d p o in t . j a v a : 1726 ) a t or g . a p a c h e . t o m c a t . u t i l . n e t . S oc k e tP r ocessor B a se . r u n ( S oc k e tP r ocessor B a se . j a v a : 49 ) a t or g . a p a c h e . t o m c a t . u t i l . t h r e a d s . T h r e a d P oo l E x ec u t or . r u nW or k er ( 1191 ) a t or g . a p a c h e . t o m c a t . u t i l . t h r e a d s . T h r e a d P oo l E x ec u t or
er
ce
pt
or
.
d
o
F
i
l
t
er
(
F
i
l
t
er
S
ec
u
r
i
t
y
I
n
t
er
ce
pt
or
.
j
a
v
a
:
F
i
l
t
er
(
S
ess
i
o
n
M
ana
g
e
m
e
n
tF
i
l
t
er
.
j
a
v
a
:
(
O
n
ce
P
er
R
e
q
u
es
tF
i
l
t
er
.
j
a
v
a
:
(
O
n
ce
P
er
R
e
q
u
es
tF
i
l
t
er
.
j
a
v
a
:
s
t
e
n
ce
F
i
l
t
er
.
d
o
F
i
l
t
er
(
S
ec
u
r
i
t
y
C
o
n
t
e
x
tP
er
s
i
s
t
e
n
ce
F
i
l
t
er
.
j
a
v
a
:
i
l
t
er
C
hain
P
r
o
x
y
.
j
a
v
a
:
k
eD
e
l
e
g
a
t
e
(
D
e
l
e
g
a
t
in
g
F
i
l
t
er
P
r
o
x
y
.
j
a
v
a
:
i
l
t
er
(
D
e
l
e
g
a
t
in
g
F
i
l
t
er
P
r
o
x
y
.
j
a
v
a
:
c
a
t
i
o
n
F
i
l
t
er
C
hain
.
j
a
v
a
:
F
i
l
t
er
C
hain
.
j
a
v
a
:
I
n
t
er
na
l
(
R
e
q
u
es
tC
o
n
t
e
x
tF
i
l
t
er
.
j
a
v
a
:
(
O
n
ce
P
er
R
e
q
u
es
tF
i
l
t
er
.
j
a
v
a
:
c
a
t
i
o
n
F
i
l
t
er
C
hain
.
j
a
v
a
:
F
i
l
t
er
C
hain
.
j
a
v
a
:
n
t
er
na
l
(
F
or
m
C
o
n
t
e
n
tF
i
l
t
er
.
j
a
v
a
:
(
O
n
ce
P
er
R
e
q
u
es
tF
i
l
t
er
.
j
a
v
a
:
i
c
a
t
i
o
n
F
i
l
t
er
C
hain
.
j
a
v
a
:
F
i
l
t
er
C
hain
.
j
a
v
a
:
e
t
r
i
cs
F
i
l
t
er
.
d
o
F
i
l
t
er
I
n
t
er
na
l
(
W
e
b
M
v
c
M
e
t
r
i
cs
F
i
l
t
er
.
j
a
v
a
:
(
O
n
ce
P
er
R
e
q
u
es
tF
i
l
t
er
.
j
a
v
a
:
i
c
a
t
i
o
n
F
i
l
t
er
C
hain
.
j
a
v
a
:
F
i
l
t
er
C
hain
.
j
a
v
a
:
t
er
I
n
t
er
na
l
(
C
ha
r
a
c
t
er
E
n
co
d
in
g
F
i
l
t
er
.
j
a
v
a
:
(
O
n
ce
P
er
R
e
q
u
es
tF
i
l
t
er
.
j
a
v
a
:
i
c
a
t
i
o
n
F
i
l
t
er
C
hain
.
j
a
v
a
:
F
i
l
t
er
C
hain
.
j
a
v
a
:
r
a
pp
er
V
a
l
v
e
.
j
a
v
a
:
o
n
t
e
x
t
V
a
l
v
e
.
j
a
v
a
:
n
t
i
c
a
t
or
B
a
se
.
j
a
v
a
:
a
l
v
e
.
j
a
v
a
:
p
or
t
V
a
l
v
e
.
j
a
v
a
:
g
in
e
V
a
l
v
e
.
j
a
v
a
:
:
v
a
:
T
h
r
e
a
d
P
oo
l
E
x
ec
u
t
or
.
j
a
v
a
: