Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-2370

When injecting a component into a field and the type is not a match the exception report is not sufficiently helpful

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.11
    • Fix Version/s: 5.0.12
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      The current exception is just the ClassCastException, with no indication of why.

      An unexpected application exception has occurred.

      • org.apache.tapestry.ioc.internal.util.TapestryException
        com.parametrix.earth.components.EnumeratedRadioGroup
      • java.lang.ClassCastException
        com.parametrix.earth.components.EnumeratedRadioGroup

      Stack trace
      o com.parametrix.earth.pages.survey.SurveyVegetationStructure.containingPageDidLoad(SurveyVegetationStructure.java)
      o org.apache.tapestry.internal.structure.ComponentPageElementImpl$4.run(ComponentPageElementImpl.java:87)
      o org.apache.tapestry.internal.structure.ComponentPageElementImpl.invoke(ComponentPageElementImpl.java:874)
      o org.apache.tapestry.internal.structure.ComponentPageElementImpl.containingPageDidLoad(ComponentPageElementImpl.java:754)

      The correct behavior should be to identify the containing component's complete id, the injected component's simple id, the field name, the component type and the field type.

        Attachments

          Activity

            People

            • Assignee:
              hlship Howard M. Lewis Ship
              Reporter:
              hlship Howard M. Lewis Ship
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: