문제

Here is the calling code:

Object attribute = session.getAttribute(name, scope);

and this throws the following eror:

Could not deserialize session data.
java.io.InvalidClassException: org.apache.commons.lang.time.FastDateFormat; local class  incompatible: stream classdesc serialVersionUID = 1, local class serialVersionUID = -7186497712641044641

The environment is Weblogic. The Web application is a spring portlet. I'm trying to understand how to fix this issue.

도움이 되었습니까?

해결책

Had to add the commons-lang to the "preferred application packages" section of weblogic.xml to get this fixed.

<container-descriptor>
    <prefer-application-packages>
        <package-name>org.apache.commons.lang.*</package-name>
    </prefer-application-packages>
    <optimistic-serialization>true</optimistic-serialization>
    <show-archived-real-path-enabled>true</show-archived-real-path-enabled>
</container-descriptor>
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top