UnsupportedOperationException in DefaultPortletPreferencesService.store -----------------------------------------------------------------------
Key: SLING-2104 URL: https://issues.apache.org/jira/browse/SLING-2104 Project: Sling Issue Type: Bug Components: General Reporter: Antonio Sanso Step to reproduce: - go in the edit mode of a portlet - remove one preference ==> result in this stacktrace Caused by: java.lang.UnsupportedOperationException: remove at org.apache.jackrabbit.core.LazyItemIterator.remove(LazyItemIterator.java:267) at org.apache.sling.portal.container.internal.services.DefaultPortletPreferencesService.store(DefaultPortletPreferencesService.java:242) at org.apache.pluto.container.impl.PortletPreferencesImpl.internalStore(PortletPreferencesImpl.java:278) at org.apache.pluto.container.impl.PortletPreferencesImpl.store(PortletPreferencesImpl.java:249) The problem is the #PropertyIterator.remove call that will call the remove of on of the implementation of PropertyIterator that is [0] in tihs case. From the API of [0]: public void remove() Specified by: remove in interface Iterator Throws: UnsupportedOperationException - always since removal is not implemented. [0] http://jackrabbit.apache.org/api/1.4/org/apache/jackrabbit/jcr2spi/LazyItemIterator.html -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira