[ERROR] [localhost-startStop-1] [StandardManager][log:182] - Exception loading sessions from persistent storage
java.io.EOFException: null
at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source) ~[?:1.8.0_172]
at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Source) ~[?:1.8.0_172]
at java.io.ObjectInputStream.readStreamHeader(Unknown Source) ~[?:1.8.0_172]
at java.io.ObjectInputStream.<init>(Unknown Source) ~[?:1.8.0_172]
at org.apache.catalina.util.CustomObjectInputStream.<init>(CustomObjectInputStream.java:95) ~[catalina.jar:8.5.30]
at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:209) ~[catalina.jar:8.5.30]
at org.apache.catalina.session.StandardManager.load(StandardManager.java:162) ~[catalina.jar:8.5.30]
at org.apache.catalina.session.StandardManager.startInternal(StandardManager.java:356) [catalina.jar:8.5.30]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [catalina.jar:8.5.30]
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5257) [catalina.jar:8.5.30]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [catalina.jar:8.5.30]
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:754) [catalina.jar:8.5.30]
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:730) [catalina.jar:8.5.30]
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734) [catalina.jar:8.5.30]
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:985) [catalina.jar:8.5.30]
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1856) [catalina.jar:8.5.30]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_172]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_172]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_172]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_172]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_172]
톰캣 세션관련 에러.
톰캣이 종료 시 저장되었던 이전 웹 세션을 로드할 수 없는 것과 관련이 있다. Tomcat이 정상적으로 종료되지 않은상태에서 다시 시작할때 발생.
해결방법.
1. context.xml
<Manager pathname="" /> 부분이 주석이 되어있다면 주석을 해제해준다.
2. tomcat설치경로/CATALINA_HOME/work/Catalina/localhost/ 의 session.ser파일을 삭제해준다.