tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Howard M. Lewis Ship (JIRA)" <tapestry-...@jakarta.apache.org>
Subject [jira] Closed: (TAPESTRY-307) Report location of errors initializing managed beans
Date Thu, 08 Sep 2005 18:26:34 GMT
     [ http://issues.apache.org/jira/browse/TAPESTRY-307?page=all ]
     
Howard M. Lewis Ship closed TAPESTRY-307:
-----------------------------------------

    Resolution: Fixed

> Report location of errors initializing managed beans
> ----------------------------------------------------
>
>          Key: TAPESTRY-307
>          URL: http://issues.apache.org/jira/browse/TAPESTRY-307
>      Project: Tapestry
>         Type: Bug
>   Components: Framework
>     Versions: 3.0, 3.0.3, 4.0, 3.0.2, 3.0.1
>     Reporter: Howard M. Lewis Ship
>     Assignee: Howard M. Lewis Ship
>      Fix For: 4.0

>
> If there is an error initializing a managed bean (say, an invalid property name in a
<set> element), there should be a location associated with the thrown exception, but
there isn't.
> org.apache.hivemind.ApplicationRuntimeException
> Class org.apache.tapestry.valid.StringValidator does not contain a property named 'minLength'.
> component: 	org.apache.tapestry.valid.StringValidator@886ad0
> Stack Trace:
>     * org.apache.hivemind.util.ClassAdaptor.getPropertyAdaptor(ClassAdaptor.java:136)
>     * org.apache.hivemind.util.ClassAdaptor.getPropertyType(ClassAdaptor.java:104)
>     * org.apache.hivemind.util.PropertyUtils.getPropertyType(PropertyUtils.java:139)
>     * org.apache.tapestry.bean.BindingBeanInitializer.setBeanProperty(BindingBeanInitializer.java:80)
>     * org.apache.tapestry.bean.BeanProvider.instantiateBean(BeanProvider.java:221)
>     * org.apache.tapestry.bean.BeanProvider.getBean(BeanProvider.java:146)
>     * org.apache.tapestry.binding.BeanBinding.getObject(BeanBinding.java:53)
>     * org.apache.tapestry.binding.AbstractBinding.getObject(AbstractBinding.java:87)
>     * $ValidField_43.getValidator($ValidField_43.java)
>     * org.apache.tapestry.valid.ValidField.renderComponent(ValidField.java:70)
> BindingBeanInitializer.setBeanProperty should catch exceptions and rethrow them with
a location attached.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org


Mime
View raw message