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 "Tharindu Mathew (JIRA)" <ji...@apache.org> on 2010/12/19 10:21:02 UTC

[jira] Commented: (AXIS2-3463) WSDL2C: generated code in axis2_svc_skel__invoke() should not set error on NULL return value

    [ https://issues.apache.org/jira/browse/AXIS2-3463?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12972942#action_12972942 ] 

Tharindu Mathew commented on AXIS2-3463:
----------------------------------------

This is in the wrong project. This should belong to Axis2-C (https://issues.apache.org/jira/browse/AXIS2C). Please resolve.

> WSDL2C: generated code in axis2_svc_skel_<wsname>_invoke() should not set error on NULL return value
> ----------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3463
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3463
>             Project: Axis2
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: nightly
>         Environment: Windows XP
>            Reporter: Dave Meier
>            Priority: Critical
>
> 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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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