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

findSession Error occurred while de-serializing the session object.. #65

Open
posondlq opened this issue Jun 11, 2021 · 1 comment
Open

Comments

@posondlq
Copy link

[http-nio-8080-exec-5] tomcat.request.session.redis.SessionManager.findSession Error occurred while de-serializing the session object..
java.lang.NullPointerException
at org.apache.catalina.session.StandardSession.doReadObject(StandardSession.java:1604)
at org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:1077)
at tomcat.request.session.Session.readObjectData(Session.java:125)
at tomcat.request.session.SerializationUtil.deserializeSessionData(SerializationUtil.java:74)
at tomcat.request.session.redis.SessionManager.findSession(SessionManager.java:160)
at tomcat.request.session.redis.SessionManager.findSession(SessionManager.java:28)
at org.apache.catalina.connector.Request.doGetSession(Request.java:3008)
at org.apache.catalina.connector.Request.getSessionInternal(Request.java:2729)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:463)
at tomcat.request.session.redis.SessionHandlerValve.invoke(SessionHandlerValve.java:29)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:800)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)

For this error, I am using the following library file:

tomcat-cluster-redis-session-manager-3.0
jedis-2.9.0.jar
one server tomcat 8.5.34
the other server tomcat 8.5.65

There are two services, one writes to session, and the other reports an error when reading.

@posondlq
Copy link
Author

After step into tracking,Session newSession = createEmptySession(); newSession is null。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant