portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Sean Taylor (JIRA)" <jetspeed-...@portals.apache.org>
Subject [jira] Resolved: (JS2-1085) Category Portlet Selector Edit Mode NPE
Date Wed, 25 Nov 2009 20:38:39 GMT

     [ https://issues.apache.org/jira/browse/JS2-1085?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

David Sean Taylor resolved JS2-1085.

    Resolution: Fixed

Summary: A Bug surfaced in Category Portlet Selector when storing defaults, the selector threw
an NPE during store to persistent preferences. Discovered that the selector was still coded
against 2.1.3 apis, and needed to be updated. Then discovered the PortletDefinitionImpl never
keeps a copy of the Preferences collection, but always delegates to the Preferences Provider
to retrieve preferences, and then wrappers the result from the provider with every accessor
call. The selector was often dereferencing the prefs collection. This should not be a problem
in a normal transactional environment... For now, the problem can be avoided by only dereferencing
once, making manipulations to the held Preferences, and then 'committing' with a new storeDefaults
api which takes a second Preferences handle. Also got bogged down in an OJB debugging session
that turned out to be a simple typo in the OJB mapping file (username is not a primary key(!)).

> Category Portlet Selector Edit Mode NPE
> ---------------------------------------
>                 Key: JS2-1085
>                 URL: https://issues.apache.org/jira/browse/JS2-1085
>             Project: Jetspeed 2
>          Issue Type: Bug
>          Components: Customizer
>    Affects Versions: 2.2.0
>            Reporter: David Sean Taylor
>            Assignee: David Sean Taylor
>             Fix For: 2.2.1
> Category Portlet Selector throws an NPE when you go into Edit Mode and add a new "Category".

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org

View raw message