You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org> on 2008/06/07 00:52:45 UTC

[jira] Updated: (TAPESTRY-2422) The Exception report will itself throw an exception if the exception being reported contains a write-only property

     [ https://issues.apache.org/jira/browse/TAPESTRY-2422?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship updated TAPESTRY-2422:
-------------------------------------------

    Priority: Major  (was: Critical)
    Assignee: Howard M. Lewis Ship
     Summary: The Exception report will itself throw an exception if the exception being reported contains a write-only property  (was: java.lang.UnsupportedOperationException thrown when tapestry render error page for exception with at leas onw writable only property)

> The Exception report will itself throw an exception if the exception being reported contains a write-only property
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-2422
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2422
>             Project: Tapestry
>          Issue Type: Bug
>    Affects Versions: 5.0.11
>            Reporter: Alexander Gavrilov
>            Assignee: Howard M. Lewis Ship
>             Fix For: 5.0.13
>
>   Original Estimate: 0.08h
>  Remaining Estimate: 0.08h
>
> when displayed exception contains at least one write-only property tapestry failing to render error page.
> java.lang.UnsupportedOperationException: Class ui.Exception_detail does not provide an accessor ('getter') method for property 'faultCode'
> at org.apache.tapestry.ioc.internal.services.PropertyAdapterImpl.get(PropertyAdapterImpl.java:81)
>         at org.apache.tapestry.ioc.internal.services.ClassPropertyAdapterImpl.get(ClassPropertyAdapterImpl.java:81)
>         at org.apache.tapestry.ioc.internal.services.ExceptionAnalyzerImpl.extractInfo(ExceptionAnalyzerImpl.java:105)
>         at org.apache.tapestry.ioc.internal.services.ExceptionAnalyzerImpl.analyze(ExceptionAnalyzerImpl.java:50)
> it seems like error in extractInfo method, which does not analyze can it read property or not before invoking adapter.get(). So, it is simple to patch 
> Instead of 
>         Object value = adapter.get(t, name);
>         if (value == null) continue;
>  Use 
>         PropertyAdapter pa = adapter.getPropertyAdapter(name);    
>         if (!pa.isRead()) continue;
>         Object value = pa.get(t);
>         if (value == null) continue;

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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