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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.0.11
    • 5.0.12
    • tapestry-core
    • 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

            hlship Howard Lewis Ship
            hlship Howard Lewis Ship
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: