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 2005/12/09 09:35:08 UTC
[jira] Created: (AXISCPP-884) Couldn't output value from function parameter
Couldn't output value from function parameter
---------------------------------------------
Key: AXISCPP-884
URL: http://issues.apache.org/jira/browse/AXISCPP-884
Project: Axis-C++
Type: Bug
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:
Axis 1.5 provide interface to deserialize string, but deserialize string result couldn't be output only by using input parameter. Modify parameter pValue type to reference type, to pass value by reference, then could get output value from parameter.
Error Code: modified three files:
In $AXISCPP_HOME\src\soap\SoapDeSerializer.cpp
Function: SoapDeSerializer::getChardataAs(void *pValue, XSDTYPE type)
Line : 4453
//Remove the following line
/*void
SoapDeSerializer::getChardataAs (void *pValue, XSDTYPE type)*/
// ++
void
SoapDeSerializer::getChardataAs (void *&pValue, XSDTYPE type)
// --
In $AXISCPP_HOME\src\soap\SoapDeSerializer.h
Line :246
// ++
void getChardataAs(void*& pValue, XSDTYPE type);
//void getChardataAs(void* pValue, XSDTYPE type);
// --
In $AXISCPP_HOME/include/axis/IWrapperSoapDeSerializer.hpp
Line: 160
// ++
// virtual void getChardataAs(void* pValue, XSDTYPE type)=0;
virtual void getChardataAs(void*& pValue, XSDTYPE type)=0;
// --
--
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-884) Couldn't output value from function
parameter
Posted by "nadir amra (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXISCPP-884?page=all ]
nadir amra resolved AXISCPP-884.
--------------------------------
Resolution: Fixed
Fixed this by changing prototype from:
getChardataAs (void * pValue, XSDTYPE type)
to
getChardataAs (void ** pValue, XSDTYPE type)
and changed related code.
Please test. Will wait on closing.
> Couldn't output value from function parameter
> ---------------------------------------------
>
> Key: AXISCPP-884
> URL: http://issues.apache.org/jira/browse/AXISCPP-884
> Project: Axis-C++
> Issue Type: Bug
> 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
> Assigned To: nadir amra
>
> Error Statement:
> Axis 1.5 provide interface to deserialize string, but deserialize string result couldn't be output only by using input parameter. Modify parameter pValue type to reference type, to pass value by reference, then could get output value from parameter.
> Error Code: modified three files:
> In $AXISCPP_HOME\src\soap\SoapDeSerializer.cpp
> Function: SoapDeSerializer::getChardataAs(void *pValue, XSDTYPE type)
> Line : 4453
> //Remove the following line
> /*void
> SoapDeSerializer::getChardataAs (void *pValue, XSDTYPE type)*/
> // ++
> void
> SoapDeSerializer::getChardataAs (void *&pValue, XSDTYPE type)
> // --
>
> In $AXISCPP_HOME\src\soap\SoapDeSerializer.h
> Line :246
> // ++
> void getChardataAs(void*& pValue, XSDTYPE type);
> //void getChardataAs(void* pValue, XSDTYPE type);
> // --
> In $AXISCPP_HOME/include/axis/IWrapperSoapDeSerializer.hpp
> Line: 160
> // ++
> // virtual void getChardataAs(void* pValue, XSDTYPE type)=0;
> virtual void getChardataAs(void*& pValue, XSDTYPE type)=0;
> // --
--
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] Assigned: (AXISCPP-884) Couldn't output value from function
parameter
Posted by "nadir amra (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXISCPP-884?page=all ]
nadir amra reassigned AXISCPP-884:
----------------------------------
Assignee: nadir amra
> Couldn't output value from function parameter
> ---------------------------------------------
>
> Key: AXISCPP-884
> URL: http://issues.apache.org/jira/browse/AXISCPP-884
> Project: Axis-C++
> Issue Type: Bug
> 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
> Assigned To: nadir amra
>
> Error Statement:
> Axis 1.5 provide interface to deserialize string, but deserialize string result couldn't be output only by using input parameter. Modify parameter pValue type to reference type, to pass value by reference, then could get output value from parameter.
> Error Code: modified three files:
> In $AXISCPP_HOME\src\soap\SoapDeSerializer.cpp
> Function: SoapDeSerializer::getChardataAs(void *pValue, XSDTYPE type)
> Line : 4453
> //Remove the following line
> /*void
> SoapDeSerializer::getChardataAs (void *pValue, XSDTYPE type)*/
> // ++
> void
> SoapDeSerializer::getChardataAs (void *&pValue, XSDTYPE type)
> // --
>
> In $AXISCPP_HOME\src\soap\SoapDeSerializer.h
> Line :246
> // ++
> void getChardataAs(void*& pValue, XSDTYPE type);
> //void getChardataAs(void* pValue, XSDTYPE type);
> // --
> In $AXISCPP_HOME/include/axis/IWrapperSoapDeSerializer.hpp
> Line: 160
> // ++
> // virtual void getChardataAs(void* pValue, XSDTYPE type)=0;
> virtual void getChardataAs(void*& pValue, XSDTYPE type)=0;
> // --
--
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] Updated: (AXISCPP-884) Couldn't output value from function
parameter
Posted by "nadir amra (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXISCPP-884?page=all ]
nadir amra updated AXISCPP-884:
-------------------------------
Comment: was deleted
> Couldn't output value from function parameter
> ---------------------------------------------
>
> Key: AXISCPP-884
> URL: http://issues.apache.org/jira/browse/AXISCPP-884
> Project: Axis-C++
> Issue Type: Bug
> 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
> Assigned To: nadir amra
>
> Error Statement:
> Axis 1.5 provide interface to deserialize string, but deserialize string result couldn't be output only by using input parameter. Modify parameter pValue type to reference type, to pass value by reference, then could get output value from parameter.
> Error Code: modified three files:
> In $AXISCPP_HOME\src\soap\SoapDeSerializer.cpp
> Function: SoapDeSerializer::getChardataAs(void *pValue, XSDTYPE type)
> Line : 4453
> //Remove the following line
> /*void
> SoapDeSerializer::getChardataAs (void *pValue, XSDTYPE type)*/
> // ++
> void
> SoapDeSerializer::getChardataAs (void *&pValue, XSDTYPE type)
> // --
>
> In $AXISCPP_HOME\src\soap\SoapDeSerializer.h
> Line :246
> // ++
> void getChardataAs(void*& pValue, XSDTYPE type);
> //void getChardataAs(void* pValue, XSDTYPE type);
> // --
> In $AXISCPP_HOME/include/axis/IWrapperSoapDeSerializer.hpp
> Line: 160
> // ++
> // virtual void getChardataAs(void* pValue, XSDTYPE type)=0;
> virtual void getChardataAs(void*& pValue, XSDTYPE type)=0;
> // --
--
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-884) Couldn't output value from function
parameter
Posted by "Michael Xiong (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXISCPP-884?page=comments#action_12437998 ]
Michael Xiong commented on AXISCPP-884:
---------------------------------------
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
> Couldn't output value from function parameter
> ---------------------------------------------
>
> Key: AXISCPP-884
> URL: http://issues.apache.org/jira/browse/AXISCPP-884
> Project: Axis-C++
> Issue Type: Bug
> 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
> Assigned To: nadir amra
>
> Error Statement:
> Axis 1.5 provide interface to deserialize string, but deserialize string result couldn't be output only by using input parameter. Modify parameter pValue type to reference type, to pass value by reference, then could get output value from parameter.
> Error Code: modified three files:
> In $AXISCPP_HOME\src\soap\SoapDeSerializer.cpp
> Function: SoapDeSerializer::getChardataAs(void *pValue, XSDTYPE type)
> Line : 4453
> //Remove the following line
> /*void
> SoapDeSerializer::getChardataAs (void *pValue, XSDTYPE type)*/
> // ++
> void
> SoapDeSerializer::getChardataAs (void *&pValue, XSDTYPE type)
> // --
>
> In $AXISCPP_HOME\src\soap\SoapDeSerializer.h
> Line :246
> // ++
> void getChardataAs(void*& pValue, XSDTYPE type);
> //void getChardataAs(void* pValue, XSDTYPE type);
> // --
> In $AXISCPP_HOME/include/axis/IWrapperSoapDeSerializer.hpp
> Line: 160
> // ++
> // virtual void getChardataAs(void* pValue, XSDTYPE type)=0;
> virtual void getChardataAs(void*& pValue, XSDTYPE type)=0;
> // --
--
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-884) Couldn't output value from function
parameter
Posted by "nadir amra (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXISCPP-884?page=all ]
nadir amra closed AXISCPP-884.
------------------------------
Resolution: Duplicate
One issue should suffice for the getCharAsData problem. See AXISCPP-972.
> Couldn't output value from function parameter
> ---------------------------------------------
>
> Key: AXISCPP-884
> URL: http://issues.apache.org/jira/browse/AXISCPP-884
> Project: Axis-C++
> Issue Type: Bug
> 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
> Assigned To: nadir amra
>
> Error Statement:
> Axis 1.5 provide interface to deserialize string, but deserialize string result couldn't be output only by using input parameter. Modify parameter pValue type to reference type, to pass value by reference, then could get output value from parameter.
> Error Code: modified three files:
> In $AXISCPP_HOME\src\soap\SoapDeSerializer.cpp
> Function: SoapDeSerializer::getChardataAs(void *pValue, XSDTYPE type)
> Line : 4453
> //Remove the following line
> /*void
> SoapDeSerializer::getChardataAs (void *pValue, XSDTYPE type)*/
> // ++
> void
> SoapDeSerializer::getChardataAs (void *&pValue, XSDTYPE type)
> // --
>
> In $AXISCPP_HOME\src\soap\SoapDeSerializer.h
> Line :246
> // ++
> void getChardataAs(void*& pValue, XSDTYPE type);
> //void getChardataAs(void* pValue, XSDTYPE type);
> // --
> In $AXISCPP_HOME/include/axis/IWrapperSoapDeSerializer.hpp
> Line: 160
> // ++
> // virtual void getChardataAs(void* pValue, XSDTYPE type)=0;
> virtual void getChardataAs(void*& pValue, XSDTYPE type)=0;
> // --
--
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] Reopened: (AXISCPP-884) Couldn't output value from function
parameter
Posted by "nadir amra (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXISCPP-884?page=all ]
nadir amra reopened AXISCPP-884:
--------------------------------
> Couldn't output value from function parameter
> ---------------------------------------------
>
> Key: AXISCPP-884
> URL: http://issues.apache.org/jira/browse/AXISCPP-884
> Project: Axis-C++
> Issue Type: Bug
> 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
> Assigned To: nadir amra
>
> Error Statement:
> Axis 1.5 provide interface to deserialize string, but deserialize string result couldn't be output only by using input parameter. Modify parameter pValue type to reference type, to pass value by reference, then could get output value from parameter.
> Error Code: modified three files:
> In $AXISCPP_HOME\src\soap\SoapDeSerializer.cpp
> Function: SoapDeSerializer::getChardataAs(void *pValue, XSDTYPE type)
> Line : 4453
> //Remove the following line
> /*void
> SoapDeSerializer::getChardataAs (void *pValue, XSDTYPE type)*/
> // ++
> void
> SoapDeSerializer::getChardataAs (void *&pValue, XSDTYPE type)
> // --
>
> In $AXISCPP_HOME\src\soap\SoapDeSerializer.h
> Line :246
> // ++
> void getChardataAs(void*& pValue, XSDTYPE type);
> //void getChardataAs(void* pValue, XSDTYPE type);
> // --
> In $AXISCPP_HOME/include/axis/IWrapperSoapDeSerializer.hpp
> Line: 160
> // ++
> // virtual void getChardataAs(void* pValue, XSDTYPE type)=0;
> virtual void getChardataAs(void*& pValue, XSDTYPE type)=0;
> // --
--
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-884) Couldn't output value from function
parameter
Posted by "Emanuel Norrbin (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXISCPP-884?page=comments#action_12364049 ]
Emanuel Norrbin commented on AXISCPP-884:
-----------------------------------------
Is this code actually used? Seems like a serious bug.
The only place I could find it to be used is in
wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/BeanParamWriter.java
where it is used like this
writer.write("\tpIWSDZ->getChardataAs((void*)&(param->"
+ extensionBaseAttrib.getParamNameAsMember()
+ "), "
+ CUtils.getXSDTypeForBasicType(extensionBaseAttrib.getTypeName()) + ");\n");
This generates C++ code that goes something like this:
tpIWSDZ->getChardataAs((void*)&(param->getParamName()),TypeName);
(funcion names might vary...)
So as the code is now the only thing this does is leak memory at best and produce random results at worst.
So if this code is not used it should be removed or else corrected.
/Emanuel
> Couldn't output value from function parameter
> ---------------------------------------------
>
> Key: AXISCPP-884
> URL: http://issues.apache.org/jira/browse/AXISCPP-884
> Project: Axis-C++
> Type: Bug
> 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:
> Axis 1.5 provide interface to deserialize string, but deserialize string result couldn't be output only by using input parameter. Modify parameter pValue type to reference type, to pass value by reference, then could get output value from parameter.
> Error Code: modified three files:
> In $AXISCPP_HOME\src\soap\SoapDeSerializer.cpp
> Function: SoapDeSerializer::getChardataAs(void *pValue, XSDTYPE type)
> Line : 4453
> //Remove the following line
> /*void
> SoapDeSerializer::getChardataAs (void *pValue, XSDTYPE type)*/
> // ++
> void
> SoapDeSerializer::getChardataAs (void *&pValue, XSDTYPE type)
> // --
>
> In $AXISCPP_HOME\src\soap\SoapDeSerializer.h
> Line :246
> // ++
> void getChardataAs(void*& pValue, XSDTYPE type);
> //void getChardataAs(void* pValue, XSDTYPE type);
> // --
> In $AXISCPP_HOME/include/axis/IWrapperSoapDeSerializer.hpp
> Line: 160
> // ++
> // virtual void getChardataAs(void* pValue, XSDTYPE type)=0;
> virtual void getChardataAs(void*& pValue, XSDTYPE type)=0;
> // --
--
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