Made a day, finally 11 o ‘clock more than solved, record once. SerializationException: Cannot SerializationException: Cannot SerializationException: Cannot SerializationException: Cannot SerializationException: Cannot SerializationException: Cannot SerializationException: Cannot SerializationException: Cannot SerializationException:
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.data.redis.serializer.SerializationException: Cannot serialize; nested exception is org.springframework.core.serializer.support.SerializationFailedException: Failed to serialize object using DefaultSerializer; nested exception is java.io.NotSerializableException: com.wanghaixin.springboot.model.Student] with root cause
Solution:
NotSerializable is not serialized objects, object Article cannot be serialized therefore appeared this problem.
JavaBeans to cache must implement the Serializable interface, because Spring serializes objects before storing them in Redis
For this exception, just modify the corresponding JavaBean object, mine is Student
public class Student implements Serializable
Read More:
- Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request p
- The spring boot set appears in the stand-alone version of redis Servlet.service () for servlet [dispatcherServlet] in context with path [] thr
- Spring boot project running error: Servlet.service () for servlet [dispatcherServlet] threw exception
- [Solved] SpringMVC Run Error: SEVERE-Servlet.service() for servlet jsp threw exception
- When WebSphere deploys a project, an error is reported: error 500: javax.servlet.ServletException : SRVE0207E: Uncaught initialization
- The solution to the problem that the method of interacting with database in the servlet class is invalid after the servlet submits 404, 500 refresh and becomes 404, and after connecting to the data pool
- Error 500: javax.servlet.ServletException : srve0207e: Solutions
- Error 404 reported by spring MVC access Servlet
- Possible causes and solutions of 404 problems in accessing servlet pages
- Solution to redis error in CentOS of idea connected virtual machine
- An error was reported during MySQL 6.0 installation: start service failed
- Exception of browser accessing servlet404
- 404 exception in servlet operation
- Servlet error: no interface expected here
- Unable to access javax.servlet.servletexception [How to Solve]
- 404 error in browser accessing Servlet
- It’s been pitiful by was. It’s reported in the following webapp.WebApp Logerror srve0293e: [servlet error] – [null] error.
- When idea writes JavaWeb, it can’t find servlet
- [spring] start error: nosuchmethoderror: javax.servlet.http . HttpServletResponse.getStatus () I
- Eclipse create servlet file error