[JBoss JIRA] (GTNPORTAL-3122) Errors are not handled correctly in UIPortletActionListener.handleErrorResponse
by Martin Weiler (JIRA)
[ https://issues.jboss.org/browse/GTNPORTAL-3122?page=com.atlassian.jira.pl... ]
Martin Weiler updated GTNPORTAL-3122:
-------------------------------------
Attachment: reproducer-for-GTNPORTAL-3122.zip
Attaching a reproducer for this issue. The portlet is calling a helper class in processAction method. This helper class is using MVEL to evaluate an expression. The mvel libraries are not being included into the build, to force the NoClassDefFoundError at runtime.
Without the fix, the NoClassDefFoundError is masked by the ClassCastException, thus giving no clue that the missing mvel library is the actual root cause.
> 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
> 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
11 years, 6 months
[JBoss JIRA] (GTNPORTAL-3122) Errors are not handled correctly in UIPortletActionListener.handleErrorResponse
by Martin Weiler (JIRA)
[ https://issues.jboss.org/browse/GTNPORTAL-3122?page=com.atlassian.jira.pl... ]
Martin Weiler updated GTNPORTAL-3122:
-------------------------------------
Description:
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.
was:
When a portlet is running into a NoClassDefFoundError in processAction method, this error is not handled properly in UIPortletActionListener.handleErrorResponse:
{code:titleUIPortletActionListener.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.
> 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
>
> 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
11 years, 6 months
[JBoss JIRA] (GTNPORTAL-3122) Errors are not handled correctly in UIPortletActionListener.handleErrorResponse
by Martin Weiler (JIRA)
Martin Weiler created GTNPORTAL-3122:
----------------------------------------
Summary: 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
When a portlet is running into a NoClassDefFoundError in processAction method, this error is not handled properly in UIPortletActionListener.handleErrorResponse:
{code:titleUIPortletActionListener.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
11 years, 6 months