axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (AXIS2-4449) DependencyMananger.initService(ServiceGroupContext) does not throw AxisFault on service object initialization failure.
Date Sat, 25 Jul 2009 19:32:14 GMT

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

Andreas Veithen resolved AXIS2-4449.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.6
         Assignee: Andreas Veithen

Applied the patch. Thanks!

> DependencyMananger.initService(ServiceGroupContext) does not throw AxisFault on service
object initialization failure.
> ----------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-4449
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4449
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.5
>         Environment: All
>            Reporter: Manny Lim
>            Assignee: Andreas Veithen
>            Priority: Minor
>             Fix For: 1.6
>
>
> DependencyManager.initService(ServiceGroupContext) method does not actually "throw" any
Exceptions caught as a result of service object initialization failure (initServiceObject((serviceImpl,
serviceContext)). The Exception is caught and then an AxisFault is created from it, but the
AxisFault is not thrown.
> As a result, I was unable to catch application scoped service initialization failures.
Below is a patch to quickly fix this bug:
> Index: DependencyManager.java
> ===================================================================
> --- DependencyManager.java	(revision 797569)
> +++ DependencyManager.java	(working copy)
> @@ -129,7 +129,7 @@
>                      serviceContext.setProperty(ServiceContext.SERVICE_OBJECT, serviceImpl);
>                      initServiceObject(serviceImpl, serviceContext);
>                  } catch (Exception e) {
> -                    AxisFault.makeFault(e);
> +                    throw AxisFault.makeFault(e);
>                  }
>              }
>          }

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


Mime
View raw message