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

ClassCastException in PortletApplicationModelImpl since Spring Framework 2.0.5

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.3
    • 1.0.4
    • frameworks
    • 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

        1. pamodel-diff.txt
          2 kB
          Woonsan Ko

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: