Hi Samisa,
this bug is gone - thank you very much!
Unfortunately there is one more bug which causes the server to crash after
processing the request. The crash occurs in adb_calculate_free (my service is
called calculate). The reason for the crash is in the way how
adb_calculate_deserialize is implemented - I have two lists as parameters for
the ws call. In adb_calculate_deserialize the first parameter is initialised
with:
/**
* building param0 array
*/
arr_list = axutil_array_list_create( env, 10);
But when it comes to the second parameter no initialization is performed:
/**
* building param1 array
*/
/**
* building param1 element
*/
and then uses the same arr_list to populate the content of the second
parameter - which clearly overrides the content of the previous list!
When the second free is performed the list was freed already and it crashes
(well it looses some memory in the process too, but this is secondary ...)
I'm attaching the wsdl here so that you can take look by yourself.
Thanks,
Plamen
> On Thursday 13 September 2007 06:20:46 you wrote:
> > Plamen Neykov wrote:
> > > The bug is in the line
> > > _calculate->attrib_param1 = axutil_strdup(env, param_param1);
> > >
> > > this clearly cannot work (axutil_strdup thinks that it is copying a
> > > string!) so that my program crashes short after that ....
> >
> > Fixed. Please test now.
> >
> > Samisa...
_______________________________________________________________________________
Real to Real Software GmbH
Registergericht Aschaffenburg, HRB 9364
Geschäftsführer: Antoaneta Kostadinova
This message contains confidential information and is intended only for the
individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and delete
this e-mail from your system. E-mail transmission cannot be guaranteed to be
secure or error-free as information could be intercepted, corrupted, lost,
destroyed, arrive late or incomplete, or contain viruses. The sender
therefore does not accept liability for any errors or omissions in the
contents of this message, which arise as a result of e-mail transmission. If
verification is required please request a hard-copy version.
Real to Real Software GmbH, Alzenauer Str. 15, D-63796 Kahl, Germany,
www.Real-2-Real.com
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:ns1="http://org.apache.axis2/xsd"
xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:ns0="http://ws.apache.org/axis2"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
targetNamespace="http://ws.apache.org/axis2">
<wsdl:types>
<xs:schema xmlns:ns="http://ws.apache.org/axis2"
attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://ws.apache.org/axis2">
<xs:element name="calculate">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0"
name="param0" nillable="true" type="xs:string"/>
<xs:element maxOccurs="unbounded" minOccurs="0"
name="param1" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="calculateResponse">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0"
name="return" type="xs:double"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
</wsdl:types>
<wsdl:message name="calculateRequest">
<wsdl:part name="parameters" element="ns0:calculate"/>
</wsdl:message>
<wsdl:message name="calculateResponse">
<wsdl:part name="parameters" element="ns0:calculateResponse"/>
</wsdl:message>
<wsdl:portType name="QLGridPortType">
<wsdl:operation name="calculate">
<wsdl:input message="ns0:calculateRequest"
wsaw:Action="urn:calculate"/>
<wsdl:output message="ns0:calculateResponse"
wsaw:Action="urn:calculateResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="QLGridSOAP11Binding" type="ns0:QLGridPortType">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document"/>
<wsdl:operation name="calculate">
<soap:operation soapAction="urn:calculate" style="document"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:binding name="QLGridSOAP12Binding" type="ns0:QLGridPortType">
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document"/>
<wsdl:operation name="calculate">
<soap12:operation soapAction="urn:calculate" style="document"/>
<wsdl:input>
<soap12:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap12:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:binding name="QLGridHttpBinding" type="ns0:QLGridPortType">
<http:binding verb="POST"/>
<wsdl:operation name="calculate">
<http:operation location="QLGrid/calculate"/>
<wsdl:input>
<mime:content type="text/xml" part="calculate"/>
</wsdl:input>
<wsdl:output>
<mime:content type="text/xml" part="calculate"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="QLGrid">
<wsdl:port name="QLGridSOAP11port_http"
binding="ns0:QLGridSOAP11Binding">
<soap:address
location="http://aliens-inc.homelinux.org/axis2/services/QLGrid"/>
</wsdl:port>
<wsdl:port name="QLGridSOAP12port_http"
binding="ns0:QLGridSOAP12Binding">
<soap12:address
location="http://aliens-inc.homelinux.org/axis2/services/QLGrid"/>
</wsdl:port>
<wsdl:port name="QLGridHttpport" binding="ns0:QLGridHttpBinding">
<http:address
location="http://aliens-inc.homelinux.org/axis2/services/QLGrid"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]