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 "Robert Lazarski (Jira)" <ji...@apache.org> on 2025/11/21 18:42:00 UTC

[jira] [Updated] (AXIS2C-1515) WSDL2C: generated code in axis2_svc_skel__invoke() should not set error on NULL return value

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

Robert Lazarski updated AXIS2C-1515:
------------------------------------
    Fix Version/s: 2.0.0

> WSDL2C: generated code in axis2_svc_skel_<wsname>_invoke() should not set error on NULL return value
> ----------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2C-1515
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1515
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: code generation
>         Environment: Windows XP
>            Reporter: Dave Meier
>            Priority: Critical
>             Fix For: 2.0.0
>
>
> Using:
> org.apache.axis2.wsdl.WSDL2C -f -uri aewebservicesaxis70.wsdl -o aewebservicesaxis70 -d adb -ss -sd
> The following code is generated for each web service method:
>       ret_val35 =  axis2_skel_aewebservicesaxis70_UpdateItemWithName(env ,input_val35 );
>       if ( NULL == ret_val35 )
>       {
>         AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, AXIS2_FAILURE);
>         AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL returnted from the business logic from UpdateItemWithName ");
>         return NULL; 
>       }
> By setting the error whenever NULL is returned, my error that I have already set inside my skeleton method gets overwritten.  For now I have deleted all the error setting lines from here and simply return NULL, which causes my error not to get lost.  Suggest either not setting an error for this case or only set the error if one is not already set.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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