
|
If you were logged in you would be able to see more operations.
|
|
|
|
Original Estimate:
|
Unknown
|
Remaining Estimate:
|
Unknown
|
Time Spent:
|
Unknown
|
|
|
I've discovered a bug with Portlet Preferences in uPortal 2.5.3 (and possibly other versions).
Here's the scenario. I define a <portlet-preferences> section in my portlet.xml for a <preference> with a <name> of "FOO". If I then try to set that portlet preference with PortletPreferences.setValue("FOO", "value") from my Portlet.processAction(...) I see the following Exception when trying to run PortletPreferences.store() ... (shortend for brevity)
java.lang.ClassNotFoundException:
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1359)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1205)
at org.jasig.portal.container.om.common.PreferenceSetImpl.getPreferencesValidator(PreferenceSetImpl.java:53)
at org.apache.pluto.core.impl.PortletPreferencesImpl.store(PortletPreferencesImpl.java:294)
at org.test.TestPortlet.processAction(TestPortlet.java:63)
Digging a little deeper, it seems to be related to specifying a portlet preference in the portlet.xml, but NOT specifying a prefences validator, and then trying to "store". If you eliminate any one of those (take preference out of portlet.xml, do not store, or specify a validator) then you don't get the exception.
|
|
Description
|
I've discovered a bug with Portlet Preferences in uPortal 2.5.3 (and possibly other versions).
Here's the scenario. I define a <portlet-preferences> section in my portlet.xml for a <preference> with a <name> of "FOO". If I then try to set that portlet preference with PortletPreferences.setValue("FOO", "value") from my Portlet.processAction(...) I see the following Exception when trying to run PortletPreferences.store() ... (shortend for brevity)
java.lang.ClassNotFoundException:
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1359)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1205)
at org.jasig.portal.container.om.common.PreferenceSetImpl.getPreferencesValidator(PreferenceSetImpl.java:53)
at org.apache.pluto.core.impl.PortletPreferencesImpl.store(PortletPreferencesImpl.java:294)
at org.test.TestPortlet.processAction(TestPortlet.java:63)
Digging a little deeper, it seems to be related to specifying a portlet preference in the portlet.xml, but NOT specifying a prefences validator, and then trying to "store". If you eliminate any one of those (take preference out of portlet.xml, do not store, or specify a validator) then you don't get the exception.
|
Show » |
|