Uploaded image for project: 'Portals Bridges'
  1. Portals Bridges
  2. PB-72

ClassCastException in PortletApplicationModelImpl since Spring Framework 2.0.5

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.3
    • Fix Version/s: 1.0.4
    • Component/s: frameworks
    • Labels:
      None

      Description

      The following lines in o.a.p.b.frameworks.spring.PortletApplicationModelImpl has throws ClassCastException:

      PropertyValue value = bd.getPropertyValues().getPropertyValue("lookupKey");
      if (value != null)
      {
      lookup = (String)value.getValue(); // ClassCastException here: getValue does not return String object any more.
      // ...
      }

      I found this problem when I tried to integrate a customized j2-admin's PortalSiteDetails portlet with Jetspeed-2.1.2.
      The portlet is customized from the old j2-admin::SiteDetailsPortlet, which is out-of-date in Jetspeed-2.1.2.
      Anyway, this problem can occur when a portlet utilizes framework bridge.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              woon_san Woonsan Ko
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: