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 Bug
    • Status: Closed
    • Priority: Major 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.

        Activity

        Howard M. Lewis Ship created issue -
        Howard M. Lewis Ship made changes -
        Field Original Value New Value
        Resolution Fixed [ 1 ]
        Fix Version/s 5.0.12 [ 12313048 ]
        Assignee Howard M. Lewis Ship [ hlship ]
        Status Open [ 1 ] Closed [ 6 ]
        Mark Thomas made changes -
        Workflow jira [ 12429521 ] Default workflow, editable Closed status [ 12569389 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12569389 ] jira [ 12592162 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development