You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "robert lazarski (JIRA)" <ji...@apache.org> on 2006/09/25 03:23:50 UTC

[jira] Created: (AXIS2-1228) startUp() ignores exceptions

startUp() ignores exceptions
----------------------------

                 Key: AXIS2-1228
                 URL: http://issues.apache.org/jira/browse/AXIS2-1228
             Project: Apache Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: core
    Affects Versions: 1.1
         Environment: linux, java 5.0 
            Reporter: robert lazarski


This code shows no errors in any logs: 

package spring;

import org.apache.axiom.om.OMElement;
import org.apache.axis2.engine.Service;
import org.apache.axis2.context.ConfigurationContext;
import org.apache.axis2.context.OperationContext;
import org.apache.axis2.context.ServiceContext;
import org.apache.axis2.description.AxisService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class SpringInit implements Service {
	
    private static Log logger = LogFactory
	.getLog(SpringInit .class);

    // The web service
    public OMElement springInit(OMElement ignore) {

        return null;
    }

    public void init(ServiceContext serviceContext) {
        
    }

    public void setOperationContext(OperationContext arg0) {

    }

    public void destroy(ServiceContext arg0) {

    }

     /**
     * this will be called during the deployement time of the service. irrespective
     * of the service scope this method will be called
     */
    public void startUp(ConfigurationContext ignore, AxisService service) {
 
        System.out.println("Should throw here");
        if (service != null) {
            throw new RuntimeException("log me");
        }
        System.out.println("Doesn't get here");
    }
}


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


[jira] Assigned: (AXIS2-1228) startUp() ignores exceptions

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-1228?page=all ]

Davanum Srinivas reassigned AXIS2-1228:
---------------------------------------

    Assignee: Deepal Jayasinghe

> startUp() ignores exceptions
> ----------------------------
>
>                 Key: AXIS2-1228
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1228
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.1
>         Environment: linux, java 5.0 
>            Reporter: robert lazarski
>         Assigned To: Deepal Jayasinghe
>
> This code shows no errors in any logs: 
> package spring;
> import org.apache.axiom.om.OMElement;
> import org.apache.axis2.engine.Service;
> import org.apache.axis2.context.ConfigurationContext;
> import org.apache.axis2.context.OperationContext;
> import org.apache.axis2.context.ServiceContext;
> import org.apache.axis2.description.AxisService;
> import org.springframework.context.support.ClassPathXmlApplicationContext;
> import org.apache.commons.logging.Log;
> import org.apache.commons.logging.LogFactory;
> public class SpringInit implements Service {
> 	
>     private static Log logger = LogFactory
> 	.getLog(SpringInit .class);
>     // The web service
>     public OMElement springInit(OMElement ignore) {
>         return null;
>     }
>     public void init(ServiceContext serviceContext) {
>         
>     }
>     public void setOperationContext(OperationContext arg0) {
>     }
>     public void destroy(ServiceContext arg0) {
>     }
>      /**
>      * this will be called during the deployement time of the service. irrespective
>      * of the service scope this method will be called
>      */
>     public void startUp(ConfigurationContext ignore, AxisService service) {
>  
>         System.out.println("Should throw here");
>         if (service != null) {
>             throw new RuntimeException("log me");
>         }
>         System.out.println("Doesn't get here");
>     }
> }

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


[jira] Resolved: (AXIS2-1228) startUp() ignores exceptions

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-1228?page=all ]

Davanum Srinivas resolved AXIS2-1228.
-------------------------------------

    Resolution: Fixed

Added log.info for setOperationContext/init/startUp/destroy

thanks,
dims

> startUp() ignores exceptions
> ----------------------------
>
>                 Key: AXIS2-1228
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1228
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.1
>         Environment: linux, java 5.0 
>            Reporter: robert lazarski
>         Assigned To: Deepal Jayasinghe
>
> This code shows no errors in any logs: 
> package spring;
> import org.apache.axiom.om.OMElement;
> import org.apache.axis2.engine.Service;
> import org.apache.axis2.context.ConfigurationContext;
> import org.apache.axis2.context.OperationContext;
> import org.apache.axis2.context.ServiceContext;
> import org.apache.axis2.description.AxisService;
> import org.springframework.context.support.ClassPathXmlApplicationContext;
> import org.apache.commons.logging.Log;
> import org.apache.commons.logging.LogFactory;
> public class SpringInit implements Service {
> 	
>     private static Log logger = LogFactory
> 	.getLog(SpringInit .class);
>     // The web service
>     public OMElement springInit(OMElement ignore) {
>         return null;
>     }
>     public void init(ServiceContext serviceContext) {
>         
>     }
>     public void setOperationContext(OperationContext arg0) {
>     }
>     public void destroy(ServiceContext arg0) {
>     }
>      /**
>      * this will be called during the deployement time of the service. irrespective
>      * of the service scope this method will be called
>      */
>     public void startUp(ConfigurationContext ignore, AxisService service) {
>  
>         System.out.println("Should throw here");
>         if (service != null) {
>             throw new RuntimeException("log me");
>         }
>         System.out.println("Doesn't get here");
>     }
> }

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