Weblogic 12c - The session data could not be deserializedWeblogic 12c - The session data could not be deserializedhttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=674837392024-03-29T14:55:21Z2024-03-29T14:55:21ZRE: Weblogic 12c - The session data could not be deserializedMichal Simahttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=826814942016-11-22T09:09:51Z2016-11-22T09:09:51ZHave you found the origin of this problem? I have encountered exactly the same exception:<br /><br />Caused by: java.io.InvalidClassException: org.springframework.ui.ModelMap; local class incompatible: stream classdesc serialVersionUID = 1954789964718618214, local class serialVersionUID = 5665110590241200972Michal Sima2016-11-22T09:09:51ZRE: Weblogic 12c - The session data could not be deserializedNikos Samarashttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=676815092016-01-14T10:51:23Z2016-01-14T10:51:23ZHello,<br /><br />I would like to inform you that this error exists only in CE edition not in EE. I used the same portlet with the CE edition of liferay and I got the serialization error message that Spyros said. <br /><br /><Jan 7, 2016 5:11:10 PM EET> <Error> <HTTP Session> <BEA-100028> <The session data could not be deserialized.<br />java.io.InvalidClassException: org.springframework.ui.ModelMap; local class incompatible: stream classdesc serialVersionUID = 5665110590241200972, local class serialVersionUID = 1954789964718618214<br />at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:617)<br />at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1620)<br />at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1515)<br />at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1620)<br />at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1515)<br />Truncated. see log file for complete stacktrace<br />><br /><br />When I used the EE edition and I deployed the same portlet that message did not display on the console.<br />The tests that I did were with weblogic 12 and liferay-portal-6.2-ce-ga4-20150416163831865<br /><br />Thank you,<br />NikosNikos Samaras2016-01-14T10:51:23ZRE: Weblogic 12c - The session data could not be deserializedJuan Gonzalezhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=675005642016-01-11T14:59:33Z2016-01-11T14:59:33Z<div class="quote-title">Spyridon Doulgeridis:</div><blockquote>Hi Juan,<br /><br />First of all, Thanx a lot for the quick reply.<br /><br />We are using maven and we indeed declare our Spring dependencies. We did some attempts to add this in weblogic.xml of the portlet.<br /><br />Do we need to put it in all wars: portlets and main portal war?<br /><br />Thanx in advance!<br /><br />Spyros</blockquote><br /><br />It depends on which classloader that class was loaded from. To see that, it would be necessary to check the complete stacktrace at least.Juan Gonzalez2016-01-11T14:59:33ZRE: Weblogic 12c - The session data could not be deserializedSpyridon Doulgeridishttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=674962022016-01-11T14:41:57Z2016-01-11T14:41:57ZHi Juan,<br /><br />First of all, Thanx a lot for the quick reply.<br /><br />We are using maven and we indeed declare our Spring dependencies. We did some attempts to add this in weblogic.xml of the portlet.<br /><br />Do we need to put it in all wars: portlets and main portal war?<br /><br />Thanx in advance!<br /><br />SpyrosSpyridon Doulgeridis2016-01-11T14:41:57ZRE: Weblogic 12c - The session data could not be deserializedJuan Gonzalezhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=674964812016-01-11T13:49:33Z2016-01-11T13:49:33ZHmmm maybe there are more than one Spring libraries in classpath.<br /><br />If you are adding your own Spring libraries, maybe you want to add those in <prefer-application-packages>?<br /><br /><a href="https://github.com/liferay/liferay-portal/blob/6.2.4-ga5/portal-web/docroot/WEB-INF/weblogic.xml#L19">https://github.com/liferay/liferay-portal/blob/6.2.4-ga5/portal-web/docroot/WEB-INF/weblogic.xml#L19</a>Juan Gonzalez2016-01-11T13:49:33ZWeblogic 12c - The session data could not be deserializedSpyridon Doulgeridishttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=674837382016-01-11T10:18:43Z2016-01-11T10:18:43Z<html><head></head><body>Hi all,<br><br>We are using Liferay 6.2 EE and WLS 12.1.2. The WLS domain is a standalone in DEV mode.<br>We have created some portlets with Spring .4.1.5.RELEASE and Lifray JSP tags.<br>With Tomcat it works ok.<br><br>There are deployed ok, but we get the exception below when performing hte following scenario:<br>1. We are performing an ActionRequest in portlet.<br>2. in which we get a list of data which are displayed ok.<br>3. After that we get the exception below in the console <br><br><pre><code>
INFO: home page
<jan 7, 2016 5:11:10 pm eet> <error> <http session> <bea-100028> <the session data could not be deserialized. java.io.invalidclassexception: org.springframework.ui.modelmap; local class incompatible: stream classdesc serialversionuid="1954789964718618214" at java.io.objectstreamclass.initnonproxy(objectstreamclass.java:617) java.io.objectinputstream.readnonproxydesc(objectinputstre