axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "FX SDCC (JIRA)" <axis-c-...@ws.apache.org>
Subject [jira] Commented: (AXISCPP-932) Error use of address operator bug
Date Thu, 23 Feb 2006 09:05:03 GMT
    [ http://issues.apache.org/jira/browse/AXISCPP-932?page=comments#action_12367483 ] 

FX SDCC commented on AXISCPP-932:
---------------------------------

Hello Adrian,

Thanks for your quick response.
I will verify your fix for this problem on AxisCPP1.6 nighly build after some days(now I'm
too busy:-().
After that, I will tell you the result ASAP.

Thank you!

Best regards.
Michael Xiong



> Error use of address operator bug
> ---------------------------------
>
>          Key: AXISCPP-932
>          URL: http://issues.apache.org/jira/browse/AXISCPP-932
>      Project: Axis-C++
>         Type: Bug
>   Components: WSDL processing - Doc
>     Versions: 1.5 Final
>  Environment: Platform: 
>         Linux fedora 3.0 
> Axis version: 
>         Server-side Axis C++ 1.5 
> XML Parser Lib: 
> xersesc 2.6 
> WSDL2ws tool by using axis java 1.2RC3 jar 
> Client-side version Axis java 1.2RC3 
> Http Server Version: 
> Apache 2.0.53 
> Tomcat 2.0.58 
>     Reporter: FX SDCC

>
> [Error Statement]:
> 	Error use of address operator causes segmentation fault.
> [Error Code]:
> 	In generated Property.cpp:
> int Axis_Serialize_Property(Property* param, IWrapperSoapSerializer* pSZ, bool bArray
= false)
> {
> 	if ( param == NULL )
> 	{
> 	 /* TODO : may need to check nillable value - Now done*/
> 		pSZ->serializeAsAttribute( "xsi:nil", 0, (void*)&(xsd_boolean_true), XSD_BOOLEAN);
> 		pSZ->serialize( ">", NULL);
> 		return AXIS_SUCCESS;
> 	}
> 	/* first serialize attributes if any*/
> 	if (0 != param->name)
> 		pSZ->serializeAsAttribute("name", 0, (void*)(param->name), XSD_QNAME);
> 	if (0 != param->type)
> 		pSZ->serializeAsAttribute("type", 0, (void*)(param->type), XSD_QNAME);
> 	pSZ->serialize( ">", 0);
> 	
> 	//hope - remove &, the correct is (void*) ,not (void*)&
> 	//pSZ->serializeAsChardata((void*)&(param->Property_value), XSD_STRING);
> 	pSZ->serializeAsChardata((void*)(param->Property_value), XSD_STRING);
> 	/* then serialize elements if any*/
> 	return AXIS_SUCCESS;
> }
> after invetigation we find in BeanParamWriter class (wsdl2ws/cpp/iteral)
> writer.write("\tpSZ->serializaAsChardata((void*)&(param->"+extensionBaseAttrib.getParamNameAsMember()+".........
> just remove the "&" in the code can resolve the bug

-- 
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


Mime
View raw message