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