Tapestry
  1. Tapestry
  2. TAPESTRY-415

For component should use line precise error reporting for data conversions

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.1.2
    • Component/s: Framework
    • Labels:
      None

      Description

      When a value used by the For component can not be converted by the DataSqueezer, the raw exception is reported and doesn't have any line-precise data in it, making it very hard to track down:

      org.apache.hivemind.ApplicationRuntimeException
      Could not find a strategy instance for class $Location_319.
      component: $ReportWizard_309@b6b2a5[report/ReportWizard]

      java.lang.IllegalArgumentException
      Could not find a strategy instance for class $Location_319.
      Stack Trace:

      • org.apache.hivemind.lib.util.StrategyRegistryImpl.searchForAdaptor(StrategyRegistryImpl.java:176)
      • org.apache.hivemind.lib.util.StrategyRegistryImpl.getStrategy(StrategyRegistryImpl.java:74)
      • org.apache.tapestry.util.io.DataSqueezerImpl.squeeze(DataSqueezerImpl.java:165)
      • $DataSqueezer_10534c3251b.squeeze($DataSqueezer_10534c3251b.java)
      • org.apache.tapestry.components.ForBean.storeSourceData(ForBean.java:118)
      • org.apache.tapestry.components.ForBean.renderComponent(ForBean.java:203)
      • org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:612)
      • org.apache.tapestry.AbstractComponent.renderBody(AbstractComponent.java:429)
      • org.apache.tapestry.form.FormSupportImpl.render(FormSupportImpl.java:445)
      • org.apache.tapestry.form.Form.renderComponent(Form.java:250)
      • org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:612)
      • org.apache.tapestry.AbstractComponent.renderBody(AbstractComponent.java:429)
      • org.apache.tapestry.html.Body.renderComponent(Body.java:129)
      • org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:612)
      • org.apache.tapestry.AbstractComponent.renderBody(AbstractComponent.java:429)
      • org.apache.tapestry.html.Shell.renderComponent(Shell.java:114)
      • org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:61

        Activity

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development