axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrian Dick (JIRA)" <axis-c-...@ws.apache.org>
Subject [jira] Resolved: (AXISCPP-932) Error use of address operator bug
Date Mon, 05 Jun 2006 08:36:30 GMT
     [ http://issues.apache.org/jira/browse/AXISCPP-932?page=all ]
     
Adrian Dick resolved AXISCPP-932:
---------------------------------

    Fix Version: current (nightly)
     Resolution: Fixed

Moving to resolved, as Michael reports this has now been fixed.

> 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: Michael Xiong
>      Fix For: current (nightly)

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


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


Mime
View raw message