You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Marc Giger (JIRA)" <ji...@apache.org> on 2006/11/19 21:44:37 UTC

[jira] Created: (AXIS2C-414) svc_skeleton->ops->init is never called

svc_skeleton->ops->init is never called
---------------------------------------

                 Key: AXIS2C-414
                 URL: http://issues.apache.org/jira/browse/AXIS2C-414
             Project: Axis2-C
          Issue Type: Bug
    Affects Versions: Current (Nightly)
         Environment: Linux
            Reporter: Marc Giger


My Webservice's init method is never called. The service is created with the skeleton generator and looks like the following:

axis2_svc_skeleton_t* AXIS2_CALL
	axis2_svc_skel_XsltService_create(const axis2_env_t *env)
	{
	    axis2_svc_skeleton_t *svc_skeleton = NULL;
	    svc_skeleton = AXIS2_MALLOC(env->allocator,
	        sizeof(axis2_svc_skeleton_t));


	    svc_skeleton->ops = AXIS2_MALLOC(
	        env->allocator, sizeof(axis2_svc_skeleton_ops_t));

	    svc_skeleton->func_array = NULL;

	    svc_skeleton->ops->free = axis2_svc_skel_XsltService_free;
	    svc_skeleton->ops->init = axis2_svc_skel_XsltService_init;
	    svc_skeleton->ops->invoke = axis2_svc_skel_XsltService_invoke;
	    svc_skeleton->ops->on_fault = axis2_svc_skel_XsltService_on_fault;
	
		AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "axis2_svc_skel_XsltService_create called");
	    return svc_skeleton;
	}

I have not tested if the free and on_fault are called...

Thanks

Marc

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


[jira] Commented: (AXIS2C-414) svc_skeleton->ops->init is never called

Posted by "Marc Giger (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2C-414?page=comments#action_12455716 ] 
            
Marc Giger commented on AXIS2C-414:
-----------------------------------

After looking closer to that, I see that

- AXIS2_EXTERN int AXIS2_CALL axis2_get_instance(struct axis2_svc_skeleton **inst, const axis2_env_t *env)
is called on every invoke of the service
- svc_skeleton->ops->init is never called

Shouldn't the axis2_get_instance() function called just once to initialize the service, and the init()/free() function on every invoke?


Thanks

Marc

> svc_skeleton->ops->init is never called
> ---------------------------------------
>
>                 Key: AXIS2C-414
>                 URL: http://issues.apache.org/jira/browse/AXIS2C-414
>             Project: Axis2-C
>          Issue Type: Bug
>    Affects Versions: Current (Nightly)
>         Environment: Linux
>            Reporter: Marc Giger
>
> My Webservice's init method is never called. The service is created with the skeleton generator and looks like the following:
> axis2_svc_skeleton_t* AXIS2_CALL
> 	axis2_svc_skel_XsltService_create(const axis2_env_t *env)
> 	{
> 	    axis2_svc_skeleton_t *svc_skeleton = NULL;
> 	    svc_skeleton = AXIS2_MALLOC(env->allocator,
> 	        sizeof(axis2_svc_skeleton_t));
> 	    svc_skeleton->ops = AXIS2_MALLOC(
> 	        env->allocator, sizeof(axis2_svc_skeleton_ops_t));
> 	    svc_skeleton->func_array = NULL;
> 	    svc_skeleton->ops->free = axis2_svc_skel_XsltService_free;
> 	    svc_skeleton->ops->init = axis2_svc_skel_XsltService_init;
> 	    svc_skeleton->ops->invoke = axis2_svc_skel_XsltService_invoke;
> 	    svc_skeleton->ops->on_fault = axis2_svc_skel_XsltService_on_fault;
> 	
> 		AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "axis2_svc_skel_XsltService_create called");
> 	    return svc_skeleton;
> 	}
> I have not tested if the free and on_fault are called...
> Thanks
> Marc

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


[jira] Updated: (AXIS2C-414) svc_skeleton->ops->init is never called

Posted by "Samisa Abeysinghe (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2C-414?page=all ]

Samisa Abeysinghe updated AXIS2C-414:
-------------------------------------

    Fix Version/s: 1.0.0

This issue needs bit of thinking to figure out current invocation model and then to facilitate calling init one off

> svc_skeleton->ops->init is never called
> ---------------------------------------
>
>                 Key: AXIS2C-414
>                 URL: http://issues.apache.org/jira/browse/AXIS2C-414
>             Project: Axis2-C
>          Issue Type: Bug
>    Affects Versions: Current (Nightly)
>         Environment: Linux
>            Reporter: Marc Giger
>             Fix For: 1.0.0
>
>
> My Webservice's init method is never called. The service is created with the skeleton generator and looks like the following:
> axis2_svc_skeleton_t* AXIS2_CALL
> 	axis2_svc_skel_XsltService_create(const axis2_env_t *env)
> 	{
> 	    axis2_svc_skeleton_t *svc_skeleton = NULL;
> 	    svc_skeleton = AXIS2_MALLOC(env->allocator,
> 	        sizeof(axis2_svc_skeleton_t));
> 	    svc_skeleton->ops = AXIS2_MALLOC(
> 	        env->allocator, sizeof(axis2_svc_skeleton_ops_t));
> 	    svc_skeleton->func_array = NULL;
> 	    svc_skeleton->ops->free = axis2_svc_skel_XsltService_free;
> 	    svc_skeleton->ops->init = axis2_svc_skel_XsltService_init;
> 	    svc_skeleton->ops->invoke = axis2_svc_skel_XsltService_invoke;
> 	    svc_skeleton->ops->on_fault = axis2_svc_skel_XsltService_on_fault;
> 	
> 		AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "axis2_svc_skel_XsltService_create called");
> 	    return svc_skeleton;
> 	}
> I have not tested if the free and on_fault are called...
> Thanks
> Marc

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


[jira] Resolved: (AXIS2C-414) svc_skeleton->ops->init is never called

Posted by "Samisa Abeysinghe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2C-414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Samisa Abeysinghe resolved AXIS2C-414.
--------------------------------------

    Resolution: Fixed

Fixed logic in message receiver to call svc_skeleton init once per service per server instance

> svc_skeleton->ops->init is never called
> ---------------------------------------
>
>                 Key: AXIS2C-414
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-414
>             Project: Axis2-C
>          Issue Type: Bug
>    Affects Versions: Current (Nightly)
>         Environment: Linux
>            Reporter: Marc Giger
>         Assigned To: Samisa Abeysinghe
>             Fix For: 1.0.0
>
>
> My Webservice's init method is never called. The service is created with the skeleton generator and looks like the following:
> axis2_svc_skeleton_t* AXIS2_CALL
> 	axis2_svc_skel_XsltService_create(const axis2_env_t *env)
> 	{
> 	    axis2_svc_skeleton_t *svc_skeleton = NULL;
> 	    svc_skeleton = AXIS2_MALLOC(env->allocator,
> 	        sizeof(axis2_svc_skeleton_t));
> 	    svc_skeleton->ops = AXIS2_MALLOC(
> 	        env->allocator, sizeof(axis2_svc_skeleton_ops_t));
> 	    svc_skeleton->func_array = NULL;
> 	    svc_skeleton->ops->free = axis2_svc_skel_XsltService_free;
> 	    svc_skeleton->ops->init = axis2_svc_skel_XsltService_init;
> 	    svc_skeleton->ops->invoke = axis2_svc_skel_XsltService_invoke;
> 	    svc_skeleton->ops->on_fault = axis2_svc_skel_XsltService_on_fault;
> 	
> 		AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "axis2_svc_skel_XsltService_create called");
> 	    return svc_skeleton;
> 	}
> I have not tested if the free and on_fault are called...
> Thanks
> Marc

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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Assigned: (AXIS2C-414) svc_skeleton->ops->init is never called

Posted by "Samisa Abeysinghe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2C-414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Samisa Abeysinghe reassigned AXIS2C-414:
----------------------------------------

    Assignee: Samisa Abeysinghe

> svc_skeleton->ops->init is never called
> ---------------------------------------
>
>                 Key: AXIS2C-414
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-414
>             Project: Axis2-C
>          Issue Type: Bug
>    Affects Versions: Current (Nightly)
>         Environment: Linux
>            Reporter: Marc Giger
>         Assigned To: Samisa Abeysinghe
>             Fix For: 1.0.0
>
>
> My Webservice's init method is never called. The service is created with the skeleton generator and looks like the following:
> axis2_svc_skeleton_t* AXIS2_CALL
> 	axis2_svc_skel_XsltService_create(const axis2_env_t *env)
> 	{
> 	    axis2_svc_skeleton_t *svc_skeleton = NULL;
> 	    svc_skeleton = AXIS2_MALLOC(env->allocator,
> 	        sizeof(axis2_svc_skeleton_t));
> 	    svc_skeleton->ops = AXIS2_MALLOC(
> 	        env->allocator, sizeof(axis2_svc_skeleton_ops_t));
> 	    svc_skeleton->func_array = NULL;
> 	    svc_skeleton->ops->free = axis2_svc_skel_XsltService_free;
> 	    svc_skeleton->ops->init = axis2_svc_skel_XsltService_init;
> 	    svc_skeleton->ops->invoke = axis2_svc_skel_XsltService_invoke;
> 	    svc_skeleton->ops->on_fault = axis2_svc_skel_XsltService_on_fault;
> 	
> 		AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "axis2_svc_skel_XsltService_create called");
> 	    return svc_skeleton;
> 	}
> I have not tested if the free and on_fault are called...
> Thanks
> Marc

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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org