From axis-c-dev-return-21117-apmail-ws-axis-c-dev-archive=ws.apache.org@ws.apache.org Thu Oct 01 03:11:02 2009 Return-Path: Delivered-To: apmail-ws-axis-c-dev-archive@www.apache.org Received: (qmail 90533 invoked from network); 1 Oct 2009 03:11:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Oct 2009 03:11:02 -0000 Received: (qmail 50306 invoked by uid 500); 1 Oct 2009 03:11:01 -0000 Delivered-To: apmail-ws-axis-c-dev-archive@ws.apache.org Received: (qmail 50216 invoked by uid 500); 1 Oct 2009 03:11:00 -0000 Mailing-List: contact axis-c-dev-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C Developers List" Reply-To: "Apache AXIS C Developers List" Delivered-To: mailing list axis-c-dev@ws.apache.org Received: (qmail 50194 invoked by uid 99); 1 Oct 2009 03:11:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Oct 2009 03:11:00 +0000 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=NORMAL_HTTP_TO_IP,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of uthaiyashankar@gmail.com designates 209.85.222.172 as permitted sender) Received: from [209.85.222.172] (HELO mail-pz0-f172.google.com) (209.85.222.172) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Oct 2009 03:10:48 +0000 Received: by pzk2 with SMTP id 2so5153805pzk.28 for ; Wed, 30 Sep 2009 20:09:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=h3hGLXVxjms46bgBw4Ikv3MAFEk1qnjTVvTEc2RTmgA=; b=LRiPAxsNoJs1leWssZPOgDmQYmdXtWdWld3xqzbyKljTKvsvGvH/CCd7GYOWwbAwoD icP1mx7ECoDytTkXvKxPxn6lQp/uDetoKC0hq3MGKzUrqUCWTL5rB30pMiQdXozHkJTK SooVmLOv/ZWbACcymHvAztCz3vhNxFtd/vqGk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=AT5r69tPXb2XIF+yDEwGeY66gWr2d6/WxtWNOtYbtRDE9aH7ts5oK5ue9oMwAl3YWv montRxh5y0F0T/YCdRWdTUWUxr4X2NrnDG/D0W9kQRvtzty9wiGfJeF4eLVKg6zhfVNu 15Yv/8Tvh2fNii5mTiHTn5GXbyGIsPtDUB7n4= MIME-Version: 1.0 Received: by 10.143.21.41 with SMTP id y41mr51666wfi.209.1254366566977; Wed, 30 Sep 2009 20:09:26 -0700 (PDT) In-Reply-To: References: Date: Thu, 1 Oct 2009 08:39:26 +0530 Message-ID: <84cacd920909302009o70e179edx350ed40a1f664b4@mail.gmail.com> Subject: Re: crash with arbitrary rest post data From: Selvaratnam Uthaiyashankar To: Apache AXIS C Developers List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi Tamas, I think it is a bug. Can you create a Jira for this? I'll fix it ASAP. Regards, Shankar 2009/9/30 Tam=E1s Martinec : > Hi, > > What is the situation with this > > http://www.mail-archive.com/axis-c-dev@ws.apache.org/msg16788.html > > issue? > > I am trying to create a service that receives arbitrary strings as > HTTP POST data. > > The services I created crash very much like echo in the above link. > > The echo sample crashes if the post data is empty, or content is not > according to the > > text=3Dsometext > > pattern. > > Here are the messages: > > SENDING DATA.. > /* sending time =3D 23:57:14*/ > /* message uuid =3D eb01af8d-4d6b-45a3-8bbf-2f80f43acbd2*/ > --------------------- > POST /axis2/services/echo/echoString HTTP/1.0 > Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, > application/vnd.ms-excel, application/msword, > application/vnd.ms-powerpoint, */* > Accept-Language: en-us > Accept-Encoding: gzip, deflate > User-Agent: Mozilla/4.0 > Content-Length: 6 > Host: LOCALHOST > Content-Type: application/x-www-form-urlencoded > > text > > RETRIEVING DATA.. > /* retrieving time =3D 23:57:14*/ > /* time throughput =3D 0 sec(s)*/ > --------------------- > HTTP/1.0 500 Internal Server Error > Date: Thu Sep 24 23:57:14 2009 GMT > Server: Axis2C/1.6.0 (Simple Axis2 HTTP Server) > Content-Type: text/html > Content-Length: 210 > > 500 Internal Server > Error

Internal Server Error

The server > encountered an unexpected condition which prevented it from fulfilling > the request.

> > > And the call stack for the crash: > > =A0 =A0axis2_engine.dll!axis2_http_status_line_free(axis2_http_status_lin= e > * status_line=3D0xdddddddd, const axutil_env * env=3D0x006dd498) =A0Line = 143 > + 0x3 bytes =A0 =A0C > =A0 =A0 axis2_engine.dll!axis2_http_simple_response_free(axis2_http_simpl= e_response > * simple_response=3D0x006df500, const axutil_env * env=3D0x006dd498) =A0L= ine > 117 =A0 =A0C > =A0 =A0 axis2_engine.dll!axis2_http_out_transport_info_impl_free(axis2_ht= tp_out_transport_info > * http_out_transport_info=3D0x006de700, const axutil_env * > env=3D0x006dd498) =A0Line 158 =A0 =A0C > =A0 =A0 axis2_engine.dll!axis2_http_out_transport_info_free(axis2_http_ou= t_transport_info > * http_out_transport_info=3D0x006de700, const axutil_env * > env=3D0x006dd498) =A0Line 206 + 0x12 bytes =A0 =A0C > =A0 =A0 axis2_engine.dll!axis2_out_transport_info_impl_free(axis2_out_tra= nsport_info > * out_transport_info=3D0x006de700, const axutil_env * env=3D0x006dd498) > Line 61 =A0 =A0C > =A0 =A0 axis2_engine.dll!axis2_msg_ctx_free(axis2_msg_ctx * > msg_ctx=3D0x006dfa38, const axutil_env * env=3D0x006dd498) =A0Line 444 + > 0x20 bytes =A0 =A0C > =A0 =A0 axis2_engine.dll!axis2_http_worker_process_request(axis2_http_wor= ker > * http_worker=3D0x006dc350, const axutil_env * env=3D0x006dd498, > axis2_simple_http_svr_conn * svr_conn=3D0x006dd4e0, > axis2_http_simple_request * simple_request=3D0x006e0b18) =A0Line 2009 =A0= =A0C > =A0 =A0 axis2_http_receiver.dll!axis2_svr_thread_worker_func(axutil_threa= d_t > * thd=3D0x006df870, void * data=3D0x006dc608) =A0Line 260 + 0x18 bytes = =A0 =A0C > =A0 =A0 axutil.dll!dummy_worker(void * opaque=3D0x006df870) =A0Line 88 + = 0x15 > bytes =A0 =A0C > =A0 =A0 kernel32.dll!7c80b729() > =A0 =A0 [Frames below may be incorrect and/or missing, no symbols loaded > for kernel32.dll] > > Seems like axis2_http_status_line_free wants to free something already fr= eed.. > > And this is the end of the log: > > [Thu Sep 24 23:57:14 2009] [debug] > c:\axis2c-repo\src\core\transport\http\common\http_worker.c(200) > Client HTTP version HTTP/1.0 > [Thu Sep 24 23:57:14 2009] [debug] > c:\axis2c-repo\src\core\engine\rest_disp.c(114) Checking for service > using target endpoint address : > http://127.0.0.1:9090/axis2/services/echo/echoString > > > [Thu Sep 24 23:57:14 2009] [debug] > c:\axis2c-repo\src\core\engine\rest_disp.c(135) Service found using > target endpoint address > [Thu Sep 24 23:57:14 2009] [debug] > c:\axis2c-repo\src\core\util\core_utils.c(772) Checking for operation > using REST HTTP Location fragment : /echoString > [Thu Sep 24 23:57:14 2009] [debug] > c:\axis2c-repo\src\core\util\core_utils.c(834) Operation found using > target endpoint uri fragment > [Thu Sep 24 23:57:14 2009] [debug] > c:\axis2c-repo\src\core\engine\phase.c(210) Invoke the handler > request_uri_based_dispatcher within the phase Transport > [Thu Sep 24 23:57:14 2009] [debug] > c:\axis2c-repo\src\core\engine\phase.c(210) Invoke the handler > AddressingInHandler within the phase Transport > [Thu Sep 24 23:57:14 2009] [info] =A0Starting addressing in handler > [Thu Sep 24 23:57:14 2009] [info] > c:\axis2c-repo\src\modules\mod_addr\addr_in_handler.c > [Thu Sep 24 23:57:14 2009] [debug] > c:\axis2c-repo\src\core\engine\phase.c(210) Invoke the handler > addressing_based_dispatcher within the phase Transport > [Thu Sep 24 23:57:14 2009] [debug] > c:\axis2c-repo\src\core\engine\phase.c(210) Invoke the handler > rest_dispatcher within the phase Dispatch > [Thu Sep 24 23:57:14 2009] [debug] > c:\axis2c-repo\src\core\engine\phase.c(210) Invoke the handler > soap_message_body_based_dispatcher within the phase Dispatch > [Thu Sep 24 23:57:14 2009] [debug] > c:\axis2c-repo\src\core\engine\phase.c(210) Invoke the handler > soap_action_based_dispatcher within the phase Dispatch > [Thu Sep 24 23:57:14 2009] [debug] > c:\axis2c-repo\src\core\engine\phase.c(210) Invoke the handler > dispatch_post_conditions_evaluator within the phase PostDispatch > [Thu Sep 24 23:57:14 2009] [debug] > c:\axis2c-repo\src\core\engine\phase.c(210) Invoke the handler > context_handler within the phase PostDispatch > [Thu Sep 24 23:57:14 2009] [debug] > c:\axis2c-repo\src\core\receivers\raw_xml_in_out_msg_recv.c(382) > fault_detail: > > I used the 1.6.0 version on win XP. I tried the binary distribution > first and then compiled it from source as well to see the details. > > By the way, is the Content-Type relevant in this case? (The link above > had the content type right, text/xml) > > I have seen some related bugs in jira but not exactly this one.. > > br, > > Tamas > --=20 S.Uthaiyashankar Software Architect WSO2 Inc. http://wso2.com/ - "The Open Source SOA Company"