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 "Dave Meier (JIRA)" <ji...@apache.org> on 2008/01/23 01:16:34 UTC

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

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