[gatein-issues] [JBoss JIRA] (GTNPORTAL-3122) Errors are not handled correctly in UIPortletActionListener.handleErrorResponse
RH Bugzilla Integration (JIRA)
jira-events at lists.jboss.org
Thu Jul 4 08:27:21 EDT 2013
[ https://issues.jboss.org/browse/GTNPORTAL-3122?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12787640#comment-12787640 ]
RH Bugzilla Integration commented on GTNPORTAL-3122:
----------------------------------------------------
Honza Fnukal <hfnukal at redhat.com> changed the Status of [bug 973716|https://bugzilla.redhat.com/show_bug.cgi?id=973716] from MODIFIED to ON_QA
> Errors are not handled correctly in UIPortletActionListener.handleErrorResponse
> -------------------------------------------------------------------------------
>
> Key: GTNPORTAL-3122
> URL: https://issues.jboss.org/browse/GTNPORTAL-3122
> Project: GateIn Portal
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: WebUI
> Affects Versions: 3.6.0.Beta02
> Reporter: Martin Weiler
> Assignee: Lucas Ponce
> Fix For: 3.6.0.Final
>
> Attachments: reproducer-for-GTNPORTAL-3122.zip
>
>
> When a portlet is running into a NoClassDefFoundError in processAction method, this error is not handled properly in UIPortletActionListener.handleErrorResponse:
> {code:title=UIPortletActionListener.java|borderStyle=solid}
> private void handleErrorResponse(ErrorResponse response) throws Exception {
> throw (Exception) response.getCause();
> }
> {code}
> This code tries to cast the Throwable to Exception, resulting in a ClassCastException which hides the real error. As a result, it is not possible to see the root cause of the issue in the log file.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the gatein-issues
mailing list