<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Portlet Preferences are lost</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=7610111" />
  <subtitle>Portlet Preferences are lost</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=7610111</id>
  <updated>2026-04-06T09:23:05Z</updated>
  <dc:date>2026-04-06T09:23:05Z</dc:date>
  <entry>
    <title>RE: Portlet Preferences are lost</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114128337" />
    <author>
      <name>Ervinas Marocka</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114128337</id>
    <updated>2019-06-26T10:22:00Z</updated>
    <published>2019-06-26T10:22:00Z</published>
    <summary type="html">Any news?</summary>
    <dc:creator>Ervinas Marocka</dc:creator>
    <dc:date>2019-06-26T10:22:00Z</dc:date>
  </entry>
  <entry>
    <title>RE: Portlet Preferences are lost</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7781023" />
    <author>
      <name>Srikanth Reddy Sanivarapu</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7781023</id>
    <updated>2011-03-07T11:51:16Z</updated>
    <published>2011-03-07T11:51:16Z</published>
    <summary type="html">Hi Angelo,&lt;br /&gt;&lt;br /&gt;Thank you for providing the useful information. &lt;img alt="emoticon" src="@theme_images_path@/emoticons/happy.gif" &gt;&lt;br /&gt;&lt;br /&gt;If you get or find any solution or reason why these are getting lost, can you please let me too know. Thanks and waiting for you reply.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Srik</summary>
    <dc:creator>Srikanth Reddy Sanivarapu</dc:creator>
    <dc:date>2011-03-07T11:51:16Z</dc:date>
  </entry>
  <entry>
    <title>RE: Portlet Preferences are lost</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7761059" />
    <author>
      <name>Angelo Immediata</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7761059</id>
    <updated>2011-03-04T16:32:16Z</updated>
    <published>2011-03-04T16:32:16Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hi Srikanth&lt;br&gt;Sorry for being late but i was busy on other activities....&lt;br&gt;Anyway we did some debug and, at least on LF 4.4.2, we found in class &lt;em&gt;com.liferay.portal.service.impl.PortletPreferencesLocalServiceImpl&lt;/em&gt; the following method&lt;br&gt;&lt;pre&gt;&lt;code&gt;
	public javax.portlet.PortletPreferences getPreferences(
			long companyId, long ownerId, int ownerType, long plid,
			String portletId, String defaultPreferences)
		throws PortalException, SystemException {

		Map prefsPool = PortletPreferencesLocalUtil.getPreferencesPool(
			ownerId, ownerType);

		String key = encodeKey(plid, portletId);

		PortletPreferencesImpl prefs =
			(PortletPreferencesImpl)prefsPool.get(key);

		if (prefs == null) {
			PortletPreferences portletPreferences = null;

			Portlet portlet = portletLocalService.getPortletById(
				companyId, portletId);

			try {
				portletPreferences =
					portletPreferencesPersistence.findByO_O_P_P(
						ownerId, ownerType, plid, portletId);
			}
			catch (NoSuchPortletPreferencesException nsppe) {
				System.out.println("NoSuchPortletPreferencesException");
				nsppe.printStackTrace();
				System.out.println("-------------------- fine stack ----------------------------------------");
				[color=#FA1010]long portletPreferencesId = counterLocalService.increment();

				portletPreferences = portletPreferencesPersistence.create(
					portletPreferencesId);

				portletPreferences.setOwnerId(ownerId);
				portletPreferences.setOwnerType(ownerType);
				portletPreferences.setPlid(plid);
				portletPreferences.setPortletId(portletId);

				if (Validator.isNull(defaultPreferences)) {
					if (portlet == null) {
						defaultPreferences = PortletImpl.DEFAULT_PREFERENCES;
					}
					else {
						defaultPreferences = portlet.getDefaultPreferences();
					}
				}

				portletPreferences.setPreferences(defaultPreferences);

				portletPreferencesPersistence.update(portletPreferences);
			}

			prefs = PortletPreferencesSerializer.fromXML(
				companyId, ownerId, ownerType, plid, portletId,
				portletPreferences.getPreferences());

			prefsPool.put(key, prefs);[/color]
		}

		return (PortletPreferencesImpl)prefs.clone();
	}
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;As you can see in the red block if something is wrong in recovering the portlet preferences the default preferencies are loaded, with no log message. We think this could be the problem. I don't know if this can be usefull for you too&lt;br&gt;We are going on in debuging&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;Angelo&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Angelo Immediata</dc:creator>
    <dc:date>2011-03-04T16:32:16Z</dc:date>
  </entry>
  <entry>
    <title>RE: Portlet Preferences are lost</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7620410" />
    <author>
      <name>Srikanth Reddy Sanivarapu</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7620410</id>
    <updated>2011-02-22T09:31:21Z</updated>
    <published>2011-02-22T09:31:21Z</published>
    <summary type="html">Sure Angelo.... &lt;img alt="emoticon" src="@theme_images_path@/emoticons/happy.gif" &gt;</summary>
    <dc:creator>Srikanth Reddy Sanivarapu</dc:creator>
    <dc:date>2011-02-22T09:31:21Z</dc:date>
  </entry>
  <entry>
    <title>RE: Portlet Preferences are lost</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7619958" />
    <author>
      <name>Angelo Immediata</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7619958</id>
    <updated>2011-02-22T09:29:26Z</updated>
    <published>2011-02-22T09:29:26Z</published>
    <summary type="html">Hi Srikanth&lt;br /&gt;&lt;br /&gt;We are trying to investigate; if we solve we will advice you....if you solve before us...may you tell us too? &lt;img alt="emoticon" src="@theme_images_path@/emoticons/big_grin.gif" &gt;&lt;br /&gt;&lt;br /&gt;Thank you,&lt;br /&gt; Angelo</summary>
    <dc:creator>Angelo Immediata</dc:creator>
    <dc:date>2011-02-22T09:29:26Z</dc:date>
  </entry>
  <entry>
    <title>RE: Portlet Preferences are lost</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7619178" />
    <author>
      <name>Srikanth Reddy Sanivarapu</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7619178</id>
    <updated>2011-02-22T09:02:55Z</updated>
    <published>2011-02-22T09:02:55Z</published>
    <summary type="html">Hi Angelo,&lt;br /&gt;&lt;br /&gt;I am using liferay tomcat 5.2.3 and sdk of the same version.&lt;br /&gt;&lt;br /&gt;When i deploy the portlet onto my local server, the preferences are getting lost from there.&lt;br /&gt;&lt;br /&gt;I am ending up with entering again the values there. Please let me know if you have any solution for this issue. Thanks.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Srik</summary>
    <dc:creator>Srikanth Reddy Sanivarapu</dc:creator>
    <dc:date>2011-02-22T09:02:55Z</dc:date>
  </entry>
  <entry>
    <title>RE: Portlet Preferences are lost</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7619504" />
    <author>
      <name>Angelo Immediata</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7619504</id>
    <updated>2011-02-22T08:22:49Z</updated>
    <published>2011-02-22T08:22:49Z</published>
    <summary type="html">Hi Srikanth&lt;br /&gt;&lt;br /&gt;Just to know....are you having or did you have the same issue?&lt;br /&gt;In affermative case.....may you tell me your environment?&lt;br /&gt;&lt;br /&gt;Thank you.&lt;br /&gt;Regards,&lt;br /&gt;Angelo</summary>
    <dc:creator>Angelo Immediata</dc:creator>
    <dc:date>2011-02-22T08:22:49Z</dc:date>
  </entry>
  <entry>
    <title>RE: Portlet Preferences are lost</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7617885" />
    <author>
      <name>Srikanth Reddy Sanivarapu</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7617885</id>
    <updated>2011-02-22T06:01:01Z</updated>
    <published>2011-02-22T06:01:01Z</published>
    <summary type="html">Hi All,&lt;br /&gt;&lt;br /&gt;Any update on this issue. Thanks.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Srik</summary>
    <dc:creator>Srikanth Reddy Sanivarapu</dc:creator>
    <dc:date>2011-02-22T06:01:01Z</dc:date>
  </entry>
  <entry>
    <title>Portlet Preferences are lost</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7610110" />
    <author>
      <name>Angelo Immediata</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=7610110</id>
    <updated>2011-02-21T13:23:57Z</updated>
    <published>2011-02-21T13:23:57Z</published>
    <summary type="html">Hi all&lt;br /&gt;&lt;br /&gt;I&amp;#39;m using this environment:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Liferay 4.4.2&lt;/li&gt;&lt;li&gt;Spring 2.0.6&lt;/li&gt;&lt;li&gt;MySQL (and once also on Postgress)&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;It&amp;#39;s happening a very very strain thing&lt;br /&gt;I built some portlet pages where i added some instances of my own spring based portlets&lt;br /&gt;All worked pretty good&lt;br /&gt;After some time (several month) i saw that all my spring portlets in the most of the pages lost their preferences. I reconfigured all the portlets and 2 days later i saw that they lost their preferences once again&lt;br /&gt;I checked liferay DB and i didn&amp;#39;t find the portlets preferences in the DB.&lt;br /&gt;How can i solve the issue? What should i check to fix and solve it?&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Angelo</summary>
    <dc:creator>Angelo Immediata</dc:creator>
    <dc:date>2011-02-21T13:23:57Z</dc:date>
  </entry>
</feed>
