You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hivemind.apache.org by "Stefan Liebig (JIRA)" <hi...@jakarta.apache.org> on 2005/04/28 06:59:23 UTC

[jira] Created: (HIVEMIND-110) Swallowed root cause

Swallowed root cause
--------------------

         Key: HIVEMIND-110
         URL: http://issues.apache.org/jira/browse/HIVEMIND-110
     Project: HiveMind
        Type: Improvement
  Components: framework  
    Versions: 1.1    
 Environment: HM 1.1 alpha 3
    Reporter: Stefan Liebig
    Priority: Minor


In the XmlResourceProcessor:

private InputSource getInputSource(Resource resource)
{
	try
	{
		URL url = resource.getResourceURL();

		return new InputSource(url.openStream());
	}
	catch (Exception e)
	{
		throw new ApplicationRuntimeException(ParseMessages.missingResource(resource),
				resource, null, null);
	}
}

the cought exception is not passed to the thrown ApplicationRuntimeException as the root cause.

The root cause what help in bug tracking.


-- 
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: hivemind-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-dev-help@jakarta.apache.org


[jira] Closed: (HIVEMIND-110) Swallowed root cause

Posted by "Knut Wannheden (JIRA)" <hi...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/HIVEMIND-110?page=all ]
     
Knut Wannheden closed HIVEMIND-110:
-----------------------------------

     Resolution: Fixed
    Fix Version: 1.1

Well spotted, Stefan! Test case and fix committed to CVS.

> Swallowed root cause
> --------------------
>
>          Key: HIVEMIND-110
>          URL: http://issues.apache.org/jira/browse/HIVEMIND-110
>      Project: HiveMind
>         Type: Improvement
>   Components: framework
>     Versions: 1.1
>  Environment: HM 1.1 alpha 3
>     Reporter: Stefan Liebig
>     Priority: Minor
>      Fix For: 1.1

>
> In the XmlResourceProcessor:
> private InputSource getInputSource(Resource resource)
> {
> 	try
> 	{
> 		URL url = resource.getResourceURL();
> 		return new InputSource(url.openStream());
> 	}
> 	catch (Exception e)
> 	{
> 		throw new ApplicationRuntimeException(ParseMessages.missingResource(resource),
> 				resource, null, null);
> 	}
> }
> the cought exception is not passed to the thrown ApplicationRuntimeException as the root cause.
> The root cause what help in bug tracking.

-- 
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: hivemind-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-dev-help@jakarta.apache.org