You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by "Han Lee (JIRA)" <je...@portals.apache.org> on 2005/12/20 20:10:32 UTC
[jira] Created: (JS2-450) portlet application manager eats useful exception message
portlet application manager eats useful exception message
---------------------------------------------------------
Key: JS2-450
URL: http://issues.apache.org/jira/browse/JS2-450
Project: Jetspeed 2
Type: Bug
Components: Portlet Registry
Versions: 2.0-FINAL
Reporter: Han Lee
Priority: Minor
I had an error in my portlet.xml file; it referenced a security role that was not registered in web.xml. Instead of telling me this, PortletApplicationManager.java threw a "Failed to load portlet application for ..." exception. A new exception was thrown, so I could not see the real error.
I fixed this by changing the throw at line PortletApplicationManager.java:273 to include the nested exception.
Old:
catch (Exception e)
{
String msg = "Failed to load portlet application for "
+ paWar.getPortletApplicationName();
log.error(msg);
throw new RegistryException(msg);
}
New:
catch (Exception e)
{
String msg = "Failed to load portlet application for "
+ paWar.getPortletApplicationName();
log.error(msg);
throw new RegistryException(msg,e);
}
I've never commited code to your project and I'm not currently able to do a full build. (I built the jetspeed-portal-2.0.jar and copied it to a binary distribution.)
--
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: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org
[jira] Closed: (JS2-450) portlet application manager eats useful
exception message
Posted by "Ate Douma (JIRA)" <je...@portals.apache.org>.
[ http://issues.apache.org/jira/browse/JS2-450?page=all ]
Ate Douma closed JS2-450:
-------------------------
Fix Version: 2.1
2.1-dev
Resolution: Fixed
Thanks for the report.
Fixed (almost) like you suggested ;)
> portlet application manager eats useful exception message
> ---------------------------------------------------------
>
> Key: JS2-450
> URL: http://issues.apache.org/jira/browse/JS2-450
> Project: Jetspeed 2
> Type: Bug
> Components: Portlet Registry
> Versions: 2.0-FINAL
> Reporter: Han Lee
> Priority: Minor
> Fix For: 2.1, 2.1-dev
>
> I had an error in my portlet.xml file; it referenced a security role that was not registered in web.xml. Instead of telling me this, PortletApplicationManager.java threw a "Failed to load portlet application for ..." exception. A new exception was thrown, so I could not see the real error.
> I fixed this by changing the throw at line PortletApplicationManager.java:273 to include the nested exception.
> Old:
> catch (Exception e)
> {
> String msg = "Failed to load portlet application for "
> + paWar.getPortletApplicationName();
> log.error(msg);
> throw new RegistryException(msg);
> }
> New:
> catch (Exception e)
> {
> String msg = "Failed to load portlet application for "
> + paWar.getPortletApplicationName();
> log.error(msg);
> throw new RegistryException(msg,e);
> }
> I've never commited code to your project and I'm not currently able to do a full build. (I built the jetspeed-portal-2.0.jar and copied it to a binary distribution.)
--
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: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org