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 "FX SDCC (JIRA)" <ax...@ws.apache.org> on 2006/02/22 07:46:38 UTC

[jira] Created: (AXISCPP-932) Error use of address operator bug

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


[jira] Resolved: (AXISCPP-932) Error use of address operator bug

Posted by "Adrian Dick (JIRA)" <ax...@ws.apache.org>.
     [ 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


[jira] Commented: (AXISCPP-932) Error use of address operator bug

Posted by "Adrian Dick (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXISCPP-932?page=comments#action_12367327 ] 

Adrian Dick commented on AXISCPP-932:
-------------------------------------

I have now resolved AXISCPP-903 which I believe to be the same problem as you describe here.

Can you try the next nightly build to see if your problem has been resolved, and update this issue accordingly.

Thanks,
Adrian

> 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


[jira] Commented: (AXISCPP-932) Error use of address operator bug

Posted by "FX SDCC (JIRA)" <ax...@ws.apache.org>.
    [ 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


[jira] Commented: (AXISCPP-932) Error use of address operator bug

Posted by "Michael Xiong (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXISCPP-932?page=comments#action_12437996 ] 
            
Michael Xiong commented on AXISCPP-932:
---------------------------------------

Dear all,

Environment:
Tomcat 2.0.58 should be -->
Tomcat 5.0.28

Could someboday help me to update the "Environment:" info ?

Thanks a lot !
Michael Xiong

> Error use of address operator bug
> ---------------------------------
>
>                 Key: AXISCPP-932
>                 URL: http://issues.apache.org/jira/browse/AXISCPP-932
>             Project: Axis-C++
>          Issue Type: Bug
>          Components: WSDL processing - Doc
>    Affects 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


[jira] Commented: (AXISCPP-932) Error use of address operator bug

Posted by "Michael Xiong (JIRA)" <ax...@ws.apache.org>.
    [ 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


[jira] Closed: (AXISCPP-932) Error use of address operator bug

Posted by "nadir amra (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXISCPP-932?page=all ]

nadir amra closed AXISCPP-932.
------------------------------


> Error use of address operator bug
> ---------------------------------
>
>                 Key: AXISCPP-932
>                 URL: http://issues.apache.org/jira/browse/AXISCPP-932
>             Project: Axis-C++
>          Issue Type: Bug
>          Components: WSDL processing - Doc
>    Affects 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