[ 
https://issues.apache.org/jira/browse/AXIS2C-1227?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12610226#action_12610226
 ] 

Frederic Heem commented on AXIS2C-1227:
---------------------------------------

Actually, one thing to note is the axis2_http_server output, it's saying the an 
error occured in writing the response but it is correctly send on the wire:
[Thu Jul  3 14:25:03 2008] [error] rampart_engine.c(364) 
[rampart][rampart_engine] Cannot find policy. Operation is NULL.
[Thu Jul  3 14:25:03 2008] [debug] axiom.c(111) [rampart][axiom] Checking node 
Body for Subcode
[Thu Jul  3 14:25:03 2008] [debug] axiom.c(111) [rampart][axiom] Checking node 
Fault for Subcode
[Thu Jul  3 14:25:03 2008] [debug] axiom.c(111) [rampart][axiom] Checking node 
Code for Subcode
[Thu Jul  3 14:25:03 2008] [debug] axiom.c(111) [rampart][axiom] Checking node 
Value for Subcode
[Thu Jul  3 14:25:03 2008] [debug] axiom.c(111) [rampart][axiom] Checking node 
Subcode for Subcode
[Thu Jul  3 14:25:03 2008] [error] rampart_engine.c(99) 
[rampart][rampart_engine] Policy creation failed.
[Thu Jul  3 14:25:03 2008] [error] rampart_in_handler.c(114) 
[rampart][rampart_in_handler] rampart_context creation failed.
[Thu Jul  3 14:25:03 2008] [error] phase.c(216) Handler RampartInHandler invoke 
failed within phase PreDispatch
[Thu Jul  3 14:25:03 2008] [error] engine.c(693) Invoking phase PreDispatch 
failed
[Thu Jul  3 14:25:03 2008] [error] engine.c(255) Invoking pre-calculated phases 
failed
[Thu Jul  3 14:25:03 2008] [error] http_response_writer.c(156) failed to write 
to streamstring
 of length 2
[Thu Jul  3 14:25:03 2008] [error] simple_http_svr_conn.c(402) Error in writing 
the response in response writer
[Thu Jul  3 14:25:03 2008] [warning] http_svr_thread.c(288) Error occured in 
processing request (0.728 seconds)


The response capture by wireshark is:
HTTP/1.1 500 Internal Server Error
Date: Thu Jul  3 14:25:03 2008 GMT
Server: Axis2C/1.4.0 (Simple Axis2 HTTP Server)
Content-Type: application/soap+xml;charset=UTF-8
Content-Length: 795

<soapenv:Envelope 
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope";><soapenv:Header></soapenv:Header><soapenv:Body><soapenv:Fault><soapenv:Code><soapenv:Value>soapenv:Sender</soapenv:Value><soapenv:Subcode
 
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";><soapenv:Value>wsse:FailedCheck</soapenv:Value></soapenv:Subcode></soapenv:Code><soapenv:Reason><soapenv:Text
 xmlns:xml="http://www.w3.org/XML/1998/namespace"; xml:lang="en">Error in the 
Internal 
configuration.</soapenv:Text></soapenv:Reason><soapenv:Detail><wsse:ProblemSecurityHeader
 
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";>rampc:Policy</wsse:ProblemSecurityHeader></soapenv:Detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>

> engine not freed when server return an error
> --------------------------------------------
>
>                 Key: AXIS2C-1227
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1227
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: transport/http
>    Affects Versions: Current (Nightly)
>         Environment: linux fc6
>            Reporter: Frederic Heem
>         Attachments: http_worker.patch
>
>
> In http_worker.c at line 1181, the engine is created but not destroyed, this 
> happens when the server returns a fault.
> ==17539== 12 bytes in 3 blocks are definitely lost in loss record 4 of 103
> ==17539==    at 0x4005858: malloc (vg_replace_malloc.c:207)
> ==17539==    by 0x4091E75: axis2_engine_create (engine.c:52)
> ==17539==    by 0x4016B40: axis2_http_worker_process_request 
> (http_worker.c:1181)
> ==17539==    by 0x4123ED0: axis2_svr_thread_worker_func 
> (http_svr_thread.c:259)
> ==17539==    by 0x405EEE5: dummy_worker (thread_unix.c:93)
> ==17539==    by 0x8E145A: start_thread (in /lib/libpthread-2.5.so)
> ==17539==    by 0x71323D: clone (in /lib/libc-2.5.so)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to