axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Valentin Kuznetsov <vkuz...@yahoo.com>
Subject Re: [jira] Commented: (AXISCPP-89) Message Larger than 2048 bytes fails.
Date Tue, 19 Oct 2004 20:13:26 GMT
Hi,
that's what exactly my patch was for axis transport.
The if statement actually need to be
if(0>=m_iBytesLeft)

this is already in CVS.

I found that axis2 transport use still
if(0<=m_iBytesLeft)

and I left decision to developers.
Valentin.



--- axis-c-dev@ws.apache.org wrote:

> The following comment has been added to this issue:
> 
>      Author: Clinton Chen
>     Created: Tue, 19 Oct 2004 10:59 AM
>        Body:
> I thought the problem is in the AxisTransport.cpp in
> funciton
> getBytes:
> 
> AXIS_TRANSPORT_STATUS AxisTransport::getBytes(char*
> pcBuffer, int* pSize)
> {
>     if (0 <= m_iBytesLeft)
>     {
>         try
>         {
>             m_pcReceived = m_pReceiver->Recv();
>             if (m_pcReceived)
> 
> It seems that the line "if (0 == m_iBytesLeft)" is
> incorrent,
> if there is still bytes left from previous call, you
> don't want
> to recv() additional data, instead just copy the
> data.  I was able
> to get my code to work by modifying the line to
> 
> if (0 == m_iBytesLeft)
> 
> so, the only time I want to read in data is when
> there is not
> bytes left from previous call.
>
---------------------------------------------------------------------
> View this comment:
>  
>
http://issues.apache.org/jira/browse/AXISCPP-89?page=comments#action_54353
> 
>
---------------------------------------------------------------------
> View the issue:
>   http://issues.apache.org/jira/browse/AXISCPP-89
> 
> Here is an overview of the issue:
>
---------------------------------------------------------------------
>         Key: AXISCPP-89
>     Summary: Message Larger than 2048 bytes fails.
>        Type: Bug
> 
>      Status: Unassigned
>    Priority: Critical
> 
>     Project: Axis-C++
>  Components: 
>              Transport (Client)
>    Versions:
>              1.1 Final
> 
>    Assignee: 
>    Reporter: Glenn Everitt
> 
>     Created: Tue, 11 May 2004 3:08 PM
>     Updated: Tue, 19 Oct 2004 10:59 AM
> Environment: windows xp 
> 
> Description:
> It looks like when a larger payload is sent a buffer
> is reallocated larger and fails.  I'm not sure why. 
> I'm calling a web service hosted in JBoss with java
> Axis. Smaller payloads are successful.
> 
>  	ntdll.dll!77f75a58() 	
>  	ntdll.dll!77f9cb5e() 	
>  	ntdll.dll!77f9cfc4() 	
>  	ntdll.dll!77f8c366() 	
>  	kernel32.dll!77e75b6c() 	
>  	kernel32.dll!77e6c75a() 	
>  	msvcr71d.dll!_CrtIsValidHeapPointer(const void *
> pUserData=0x003af0f8)  Line 1807	C
> >	msvcr71d.dll!_free_dbg_lk(void *
> pUserData=0x003af0f8, int nBlockUse=1)  Line 1132 +
> 0x9	C
>  	msvcr71d.dll!_free_dbg(void *
> pUserData=0x003af0f8, int nBlockUse=1)  Line 1070 +
> 0xd	C
>  	msvcr71d.dll!operator delete(void *
> pUserData=0x003af0f8)  Line 54 + 0x10	C++
>  	msvcp71d.dll!std::allocator<char>::deallocate(char
> * _Ptr=0x003af0f8, unsigned int __formal=2048)  Line
> 138 + 0x9	C++
>  
>
msvcp71d.dll!std::basic_string<char,std::char_traits<char>,std::allocator<char>
> >::_Tidy(bool _Built=true, unsigned int _Newsize=0) 
> Line 1519	C++
>  
>
msvcp71d.dll!std::basic_string<char,std::char_traits<char>,std::allocator<char>
> >::_Copy(unsigned int _Newsize=3071, unsigned int
> _Oldlen=4)  Line 1468	C++
>  
>
msvcp71d.dll!std::basic_string<char,std::char_traits<char>,std::allocator<char>
> >::_Grow(unsigned int _Newsize=3071, bool
> _Trim=false)  Line 1485	C++
>  
>
msvcp71d.dll!std::basic_string<char,std::char_traits<char>,std::allocator<char>
> >::assign(const char * _Ptr=0x06ca73a8, unsigned int
> _Num=3071)  Line 612 + 0xe	C++
>  
>
msvcp71d.dll!std::basic_string<char,std::char_traits<char>,std::allocator<char>
> >::assign(const char * _Ptr=0x06ca73a8)  Line 623
> C++
>  
>
msvcp71d.dll!std::basic_string<char,std::char_traits<char>,std::allocator<char>
> >::operator=(const char * _Ptr=0x06ca73a8)  Line 473
> C++
>  
>
AxisClient_D.dll!BasicTypeSerializer::SerializeAsElement(const
> char * pName=0x003afafc, const void *
> pValue=0x003afad0, XSDTYPETag type=XSD_STRING)  Line
> 123 + 0x12	C++
>  
>
AxisClient_D.dll!SoapSerializer::SerializeAsElement(const
> char * pName=0x003afafc, void * pValue=0x003afad0,
> XSDTYPETag type=XSD_STRING)  Line 656 + 0x17	C++
>  	AxisClient_D.dll!Param::serialize(SoapSerializer &
> pSZ={...})  Line 185 + 0x32	C++
>  
>
AxisClient_D.dll!SoapMethod::serializeOutputParam(SoapSerializer
> & pSZ={...})  Line 182 + 0x13	C++
>  
>
AxisClient_D.dll!SoapMethod::serialize(SoapSerializer
> & pSZ={...})  Line 97 + 0xc	C++
>  
> AxisClient_D.dll!SoapBody::serialize(SoapSerializer
> & pSZ={...}, SOAP_VERSIONTag
> eSoapVersion=SOAP_VER_1_1)  Line 85 + 0xf	C++
>  
>
AxisClient_D.dll!SoapEnvelope::serialize(SoapSerializer
> & pSZ={...}, SOAP_VERSIONTag
> eSoapVersion=SOAP_VER_1_1)  Line 107 + 0x13	C++
>  
>
AxisClient_D.dll!SoapSerializer::SetOutputStream(const
> Ax_soapstream * pStream=0x06ca2c9c)  Line 222 + 0x16
> C++
>  
>
AxisClient_D.dll!ClientAxisEngine::Invoke(MessageData
> * pMsg=0x003abfe8)  Line 160 + 0x12	C++
>  
>
AxisClient_D.dll!ClientAxisEngine::Process(Ax_soapstream
> * pSoap=0x06ca2c9c)  Line 98 + 0x14	C++
>  	AxisClient_D.dll!Call::Invoke()  Line 98 + 0x1a
> C++
>  	mscorwks.dll!7925c098() 	
>  
>
COSMRWebServicesClient.exe!COSMRWebServices::publish(char*
> Value0 = 0x0042201c, char* Value1 = 0x00422014,
> char* Value2 = 0x06ca73a8) Line 195 + 0x20 bytes	C++
>  	COSMRWebServicesClient.exe!main(__int32 argc = 3,
> char** argv = 0x06ca3978) Line 55	C++
>  	COSMRWebServicesClient.exe!mainCRTStartup()  Line
> 259 + 0x19	C
> 
> 
> 
>
---------------------------------------------------------------------
> JIRA INFORMATION:
> 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
> 
> If you want more information on JIRA, or have a bug
> to report see:
>    http://www.atlassian.com/software/jira
> 
> 



		
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

Mime
View raw message