Post with a body size zero result in Unexpected error 509
-
Wednesday, January 09, 2013 2:53 PM
Hi All,
I'm having a situation with UAG 2010 which is publishing a web application that contains a Java applet. The Java applet does a post request to the backend server but that request is stopped by the UAG server and never reaches the backend server.
The trace file shows the following:
[whlfilter CExtECB::AccumulateIncomingData WhlExt2IWS.cpp@2252] Info:body size still zero. Pending for data to be read, (ExtECB=00000000046A3E40), (PFC=000000001F143598)
[whlfilter CExtECB::QueueAsyncRead WhlExt2IWS.cpp@2490] Info:starting (ExtECB=00000000046A3E40), (PFC=000000001F143598)
[whlfilter CExtECB::QueueAsyncRead WhlExt2IWS.cpp@2517] Info:Queue an async read of size 8192. (ExtECB=00000000046A3E40), (PFC=000000001F143598), (m_pPostDataPosition=000000000540D390)
[whlfilter CExtECB::UnlockMe WhlExt2IWS.cpp@502] Info:Trying to UnLockMe (ExtECB=00000000046A3E40)
[whlfilter CExtECB::UnlockMe WhlExt2IWS.cpp@511] Info:UnLockMe succeeded (ExtECB=00000000046A3E40)
[whlfilter WhlExt2IWS.cpp@1832] Entering CExtECB::OnISAPICompletion called, (ECB=0000000023827BC8), (ExtECB=00000000046A3E40), (pECB->lpbData=0000000000000000)
[whlfilter CExtECB::LockMe WhlExt2IWS.cpp@488] Info:Trying to LockMe (ExtECB=00000000046A3E40)
[whlfilter CExtECB::LockMe WhlExt2IWS.cpp@497] Info:LockMe succeeded (ExtECB=00000000046A3E40)
[whlfilter CExtECB::OnISAPICompletion WhlExt2IWS.cpp@1854] Info:0 bytes, error code 0, state 00000002, (ECB=0000000023827BC8), (ExtECB=00000000046A3E40), (PFC=000000001F143598)
[whlfilter WhlExt2IWS.cpp@2578] Entering CExtECB::OnAsyncReadCompletion start (ExtECB=00000000046A3E40), (PFC=000000001F143598)
[whlfilter CExtECB::OnAsyncReadCompletion WhlExt2IWS.cpp@2594] Warning:ReadClient failed! Client socket was closed! (ExtECB=00000000046A3E40), (PFC=000000001F143598)
[whlfilter CExtECB::OnAsyncReadCompletion WhlExt2IWS.cpp@2678] ERROR:Unexpected error 509, completing request (ExtECB=00000000046A3E40), (PFC=000000001F143598)
[whlfilter WhlExt2IWS.cpp@1478] Entering CExtECB::EndISAPIRequest called, (ExtECB=00000000046A3E40), (PFC=000000001F143598)
[whlfilter CExtECB::EndISAPIRequest WhlExt2IWS.cpp@1484] Info:closing with status <509>. (ECB=0000000023827BC8), (ExtECB=00000000046A3E40), (PFC=000000001F143598)
[whlfilter WhlExt2IWS.cpp@1686] Entering CExtECB::Transmit500 called, (ExtECB=00000000046A3E40), (PFC=000000001F143598)
[whlfilter WhlExt2IWS.cpp@1706] Entering CExtECB::TransmitFile called, (ExtECB=00000000046A3E40), (PFC=000000001F143598)
[whlfilter CExtECB::TransmitFile WhlExt2IWS.cpp@1775] Info:Opened file handle <00000000000016DC> (ECB=0000000023827BC8), (ExtECB=00000000046A3E40), (PFC=000000001F143598)
[whlfilter CExtECB::TransmitFile WhlExt2IWS.cpp@1803] Info:File <C:\Program Files\Microsoft Forefront Unified Access Gateway\von\InternalSite\error500.html> transmitted to Client.(ECB=0000000023827BC8), (ExtECB=00000000046A3E40), (PFC=000000001F143598)If I read this correctly UAG detects that the body size is still zero and it connects to the client to retrieve the body of the post. Then it receive an error 509.
Does anybody know what goes wrong? Can UAG handle posts with a body size that is zero in length?
Regards Maikel.
- Edited by MvanWesteneng Wednesday, January 09, 2013 2:54 PM

