You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Michael Xiong (JIRA)" <ax...@ws.apache.org> on 2006/06/05 09:10:30 UTC
[jira] Commented: (AXISCPP-932) Error use of address operator bug
[ http://issues.apache.org/jira/browse/AXISCPP-932?page=comments#action_12414704 ]
Michael Xiong commented on AXISCPP-932:
---------------------------------------
Hello Adrian,
I've verified this problem: AXISCPP-932 on axis-c-1.6beta version, It's OK there.
Thanks.
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: Michael Xiong
>
> [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