본문 바로가기

Spring/오류

StreamCorruptedException

728x90
반응형

경고: 세션 [9E8A47A57635882580BA400A37107B21]을(를) 위한 세션 속성 [SPRING_SECURITY_CONTEXT]을(를) 역직렬화할 수 없습니다.

java.io.StreamCorruptedException: invalid type code: 00 at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.defaultReadFields(Unknown Source) at java.io.ObjectInputStream.defaultReadObject(Unknown Source) at java.lang.Throwable.readObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeReadObject(Unknown Source) at java.io.ObjectInputStream.readSerialData(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at org.apache.catalina.session.StandardSession.doReadObject(StandardSession.java:1559) at org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:1057) at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:217) at org.apache.catalina.session.StandardManager.load(StandardManager.java:161) at org.apache.catalina.session.StandardManager.startInternal(StandardManager.java:351) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5182) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1412) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1402) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)

 

갑자기 이런 오류가 발생

검색해도 딱히 방법이 안나와서 당황했는데 만능 clean

프로젝트 clean, Tomcat 서버 clean 후 서버 구동하면 잘 실행됐다.

728x90
반응형