Type Exception report
The message Request processing failed; Nested exception is Java. Lang. NullPointerException
Description The server encountered an internal error that prevented it from fulfilling this request.
The exception
Org. Springframework. Web. Util. NestedServletException: Request processing failed; Nested exception is Java. Lang. NullPointerException
Org. Springframework. Web. Servlet. FrameworkServlet. The processRequest (FrameworkServlet. Java: 981)
Org. Springframework. Web. Servlet. FrameworkServlet. DoGet (FrameworkServlet. Java: 860)
Javax.mail. Servlet. HTTP. HttpServlet. Service (HttpServlet. Java: 621)
Org. Springframework. Web. Servlet. FrameworkServlet. Service (845) FrameworkServlet. Java:
Javax.mail. Servlet. HTTP. HttpServlet. Service (HttpServlet. Java: 728)
Org, apache tomcat, websocket server. WsFilter. DoFilter (WsFilter. Java: 51)
Org. Springframework. Web. Filter. CharacterEncodingFilter. DoFilterInternal (CharacterEncodingFilter. Java: 121)
Org. Springframework. Web. Filter. OncePerRequestFilter. DoFilter (OncePerRequestFilter. Java: 107)
Root cause
Java. Lang. NullPointerException
Com. Pinyougou. Manager. Controller. BrandController. The.findall (BrandController. Java: 21)
Java. The base/JDK. Internal. Reflect. NativeMethodAccessorImpl. Invoke0 (Native Method)
Java. The base/JDK. Internal. Reflect. NativeMethodAccessorImpl. Invoke (NativeMethodAccessorImpl. Java: 62)
Java. The base/JDK. Internal. Reflect. DelegatingMethodAccessorImpl. Invoke (43) DelegatingMethodAccessorImpl. Java:
Java. The base/Java. Lang. Reflect. Method. Invoke (564) Method. The Java:
Org. Springframework. Web. Method. Support. InvocableHandlerMethod. DoInvoke (InvocableHandlerMethod. Java: 222)
Org. Springframework. Web. Method. Support. InvocableHandlerMethod. InvokeForRequest (InvocableHandlerMethod. Java: 137)
Org. Springframework. Web. Servlet. MVC) method. The annotation. ServletInvocableHandlerMethod. InvokeAndHandle (ServletInvocableHandlerMethod. Java: 110)
Org. Springframework. Web. Servlet. MVC) method. The annotation. RequestMappingHandlerAdapter. InvokeHandlerMethod (RequestMappingHandlerAdapter. Java: 814)
Org. Springframework. Web. Servlet. MVC) method. The annotation. RequestMappingHandlerAdapter. HandleInternal (RequestMappingHandlerAdapter. Java: 737)
Org. Springframework. Web. Servlet. MVC. Method. AbstractHandlerMethodAdapter. Handle (AbstractHandlerMethodAdapter. Java: 85)
Org. Springframework. Web. Servlet. DispatcherServlet. DoDispatch (DispatcherServlet. Java: 959)
Org. Springframework. Web. Servlet. DispatcherServlet. DoService (DispatcherServlet. Java: 893)
Org. Springframework. Web. Servlet. FrameworkServlet. The processRequest (FrameworkServlet. Java: 969)
Org. Springframework. Web. Servlet. FrameworkServlet. DoGet (FrameworkServlet. Java: 860)
Javax.mail. Servlet. HTTP. HttpServlet. Service (HttpServlet. Java: 621)
Org. Springframework. Web. Servlet. FrameworkServlet. Service (845) FrameworkServlet. Java:
Javax.mail. Servlet. HTTP. HttpServlet. Service (HttpServlet. Java: 728)
Org, apache tomcat, websocket server. WsFilter. DoFilter (WsFilter. Java: 51)
Org. Springframework. Web. Filter. CharacterEncodingFilter. DoFilterInternal (CharacterEncodingFilter. Java: 121)
Org. Springframework. Web. Filter. OncePerRequestFilter. DoFilter (OncePerRequestFilter. Java: 107)
This is the console error
On May 21, 2020 11:01:48 afternoon org. Apache. Catalina. Core. StandardWrapperValve invoke
Serious: Servlet service () for the Servlet [for springmvc] in context with the path [] threw the exception [Request processing failed; nested exception is Java. Lang. NullPointerException] with root cause
Java. Lang. NullPointerException
At com. Pinyougou. Manager. Controller. BrandController. FindAllBrandController. Java: 21)
The at Java. The base/JDK. Internal. Reflect. NativeMethodAccessorImpl. Invoke0 (Native Method)
The at Java. The base/JDK. Internal. Reflect. NativeMethodAccessorImpl. Invoke (NativeMethodAccessorImpl. Java: 62)
The at Java. The base/JDK. Internal. Reflect. DelegatingMethodAccessorImpl. Invoke (43) DelegatingMethodAccessorImpl. Java:
The at Java. The base/Java. Lang. Reflect. Method. Invoke (564) Method. The Java:
The at org. Springframework. Web. Method. Support. InvocableHandlerMethod. DoInvoke (InvocableHandlerMethod. Java: 222)
The at org. Springframework. Web. Method. Support. InvocableHandlerMethod. InvokeForRequest (InvocableHandlerMethod. Java: 137)
The at org. Springframework. Web. Servlet. MVC) method. The annotation. ServletInvocableHandlerMethod. InvokeAndHandle (ServletInvocableHandlerMethod. Java: 110)
The at org. Springframework. Web. Servlet. MVC) method. The annotation. RequestMappingHandlerAdapter. InvokeHandlerMethod (RequestMappingHandlerAdapter. Java: 814)
The at org. Springframework. Web. Servlet. MVC) method. The annotation. RequestMappingHandlerAdapter. HandleInternal (RequestMappingHandlerAdapter. Java: 737)
The at org. Springframework. Web. Servlet. MVC. Method. AbstractHandlerMethodAdapter. Handle (AbstractHandlerMethodAdapter. Java: 85)
The at org. Springframework. Web. Servlet. DispatcherServlet. DoDispatch (DispatcherServlet. Java: 959)
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull