<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-ligatures:standardcontextual;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";
        mso-ligatures:none;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal" style="background:#F8F8F8"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#1D1C1D">Hello Team,<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#F8F8F8"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#1D1C1D"><br>
We are facing invalid preface issue when we send POST request using HttpClient. We overcame this issue using workaround mentioned in <a href="https://bugs.openjdk.org/browse/JDK-8198947" target="_blank"><span style="text-decoration:none">openjdk issue</span></a>.
 The workaround was to use a blank request before making post request.<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#F8F8F8"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#1D1C1D"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:#F8F8F8"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#1D1C1D;background:#F8F8F8">Based on our below observations, the Preface String is different in Failure & Success case,</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#1D1C1D"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:#F8F8F8"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#1D1C1D"><br>
The Preface String for<br>
1.1) Post Request without blank request --> we get GOAWAY Exception (Failure case)<o:p></o:p></span></p>
<pre style="mso-margin-top-alt:3.0pt;margin-right:0in;margin-bottom:3.0pt;margin-left:0in;box-sizing: inherit;--saf-0: rgba(var(--sk_foreground_low,29,28,29),0.13);overflow-wrap: break-word;font-variant-ligatures: none;tab-size: 4;white-space:pre-wrap;background:rgba(var(--sk_foreground_min,29,28,29),.04);border:var(--saf-0);border-radius: 4px;overflow-y: hidden;counter-reset: list-0 0 list-1 0 list-2 0 list-3 0 list-4 0 list-5 0 list-6 0 list-7 0 list-8 0 list-9 0;font-variant-caps: normal;orphans: 2;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px"><span style="font-size:9.0pt;font-family:Consolas;color:#1D1C1D">Preface String: [80, 82, 73, 32, 42, 32, 72, 84, 84, 80, 47, 50, 46, 48, 13, 10, 13, 10, 83, 77, 13, 10, 13, 10]<o:p></o:p></span></pre>
<pre style="mso-margin-top-alt:3.0pt;margin-right:0in;margin-bottom:3.0pt;margin-left:0in"><span style="font-size:9.0pt;font-family:Consolas;color:#1D1C1D">Preface String: [95, 70, 73, 82, 83, 84, 95, 80, 79, 83, 84, 95, 80, 77, 68, 73, 78, 72, 95, 80, 82, 73, 32, 42]<o:p></o:p></span></pre>
<pre style="mso-margin-top-alt:3.0pt;margin-right:0in;margin-bottom:3.0pt;margin-left:0in"><span style="font-size:9.0pt;font-family:Consolas;color:#1D1C1D">Preface String: [95, 70, 73, 82, 83, 84, 95, 80, 79, 83, 84, 95, 80, 77, 68, 73, 78, 72, 95, 80, 82, 73, 32, 42]<o:p></o:p></span></pre>
<pre style="mso-margin-top-alt:3.0pt;margin-right:0in;margin-bottom:3.0pt;margin-left:0in"><span style="font-size:9.0pt;font-family:Consolas;color:#1D1C1D"><o:p> </o:p></span></pre>
<p class="MsoNormal" style="background:#F8F8F8"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#1D1C1D">1.2) Workaround case with a blank request (Success Case)<o:p></o:p></span></p>
<pre style="mso-margin-top-alt:3.0pt;margin-right:0in;margin-bottom:3.0pt;margin-left:0in;box-sizing: inherit;--saf-0: rgba(var(--sk_foreground_low,29,28,29),0.13);overflow-wrap: break-word;font-variant-ligatures: none;tab-size: 4;white-space:pre-wrap;background:rgba(var(--sk_foreground_min,29,28,29),.04);border:var(--saf-0);border-radius: 4px;overflow-y: hidden;counter-reset: list-0 0 list-1 0 list-2 0 list-3 0 list-4 0 list-5 0 list-6 0 list-7 0 list-8 0 list-9 0;font-variant-caps: normal;orphans: 2;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px"><span style="font-size:9.0pt;font-family:Consolas;color:#1D1C1D">Preface String: [80, 82, 73, 32, 42, 32, 72, 84, 84, 80, 47, 50, 46, 48, 13, 10, 13, 10, 83, 77, 13, 10, 13, 10]<o:p></o:p></span></pre>
<pre style="mso-margin-top-alt:3.0pt;margin-right:0in;margin-bottom:3.0pt;margin-left:0in"><span style="font-size:9.0pt;font-family:Consolas;color:#1D1C1D">Preface String: [80, 82, 73, 32, 42, 32, 72, 84, 84, 80, 47, 50, 46, 48, 13, 10, 13, 10, 83, 77, 13, 10, 13, 10]<o:p></o:p></span></pre>
<pre style="mso-margin-top-alt:3.0pt;margin-right:0in;margin-bottom:3.0pt;margin-left:0in"><span style="font-size:9.0pt;font-family:Consolas;color:#1D1C1D">Preface String: [80, 82, 73, 32, 42, 32, 72, 84, 84, 80, 47, 50, 46, 48, 13, 10, 13, 10, 83, 77, 13, 10, 13, 10]<o:p></o:p></span></pre>
<pre style="mso-margin-top-alt:3.0pt;margin-right:0in;margin-bottom:3.0pt;margin-left:0in"><span style="font-size:9.0pt;font-family:Consolas;color:#1D1C1D"><o:p> </o:p></span></pre>
<p class="MsoNormal" style="background:#F8F8F8"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#1D1C1D">2) LOGS<br>
2.1) Post Request without blank request :We get the error  "an error occurred processing a frame": Failed to complete the connection preface from Liberty server and GOAWAY Exception.<o:p></o:p></span></p>
<pre style="mso-margin-top-alt:3.0pt;margin-right:0in;margin-bottom:3.0pt;margin-left:0in;box-sizing: inherit;--saf-0: rgba(var(--sk_foreground_low,29,28,29),0.13);overflow-wrap: break-word;font-variant-ligatures: none;tab-size: 4;white-space:pre-wrap;background:rgba(var(--sk_foreground_min,29,28,29),.04);border:var(--saf-0);border-radius: 4px;overflow-y: hidden;counter-reset: list-0 0 list-1 0 list-2 0 list-3 0 list-4 0 list-5 0 list-6 0 list-7 0 list-8 0 list-9 0;font-variant-caps: normal;orphans: 2;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px"><span style="font-size:9.0pt;font-family:Consolas;color:#1D1C1D">[9/7/23, 15:41:10:595 IST] 00000058 id=00000000 com.ibm.ws.http.channel.h2internal.FrameReadProcessor        3 checkConnectionPreface: processNextFrame-:  stream: 0 frame type: Magic Preface  direction: READ_IN H2InboundLink hc: 101118290<o:p></o:p></span></pre>
<pre style="mso-margin-top-alt:3.0pt;margin-right:0in;margin-bottom:3.0pt;margin-left:0in"><span style="font-size:9.0pt;font-family:Consolas;color:#1D1C1D">[9/7/23, 15:41:10:595 IST] 00000058 id=00000000 com.ibm.ws.http.channel.h2internal.FrameReadProcessor        3 checkConnectionPreface: Preface String: [95, 70, 73, 82, 83, 84, 95, 80, 79, 83, 84, 95, 80, 77, 68, 73, 78, 72, 95, 80, 82, 73, 32, 42]<o:p></o:p></span></pre>
<pre style="mso-margin-top-alt:3.0pt;margin-right:0in;margin-bottom:3.0pt;margin-left:0in"><span style="font-size:9.0pt;font-family:Consolas;color:#1D1C1D">[9/7/23, 15:41:10:595 IST] 00000058 id=00000000 SystemOut                                                    O PMDINH, FrameReadProcessor CHECKPOINT 2, throw new ProtocolException --- Connection preface/magic was invalid<o:p></o:p></span></pre>
<pre style="mso-margin-top-alt:3.0pt;margin-right:0in;margin-bottom:3.0pt;margin-left:0in"><span style="font-size:9.0pt;font-family:Consolas;color:#1D1C1D">[9/7/23, 15:41:10:595 IST] 00000058 id=00000000 SystemOut                                                    O PMDINH, FrameReadProcessor CHECKPOINT 3, throw new ProtocolException --- Cconnection preface<o:p></o:p></span></pre>
<pre style="mso-margin-top-alt:3.0pt;margin-right:0in;margin-bottom:3.0pt;margin-left:0in"><span style="font-size:9.0pt;font-family:Consolas;color:#1D1C1D">[9/7/23, 15:41:10:595 IST] 00000058 id=00000000 com.ibm.ws.http.channel.h2internal.H2InboundLink             3 processRead: an error occurred processing a frame: Failed to complete the connection preface<o:p></o:p></span></pre>
<pre style="mso-margin-top-alt:3.0pt;margin-right:0in;margin-bottom:3.0pt;margin-left:0in"><span style="font-size:9.0pt;font-family:Consolas;color:#1D1C1D">[9/7/23, 15:41:10:595 IST] 00000058 id=00000000 com.ibm.ws.http.channel.h2internal.H2InboundLink             3 close(vc,e): :linkstatus: is: INIT :close: H2InboundLink hc: 101118290exception: com.ibm.ws.http.channel.h2internal.exceptions.ProtocolException: Failed to complete the connection preface<o:p></o:p></span></pre>
<pre style="mso-margin-top-alt:3.0pt;margin-right:0in;margin-bottom:3.0pt;margin-left:0in"><span style="font-size:9.0pt;font-family:Consolas;color:#1D1C1D"><o:p> </o:p></span></pre>
<p class="MsoNormal" style="background:#F8F8F8"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#1D1C1D">2.2) Workaround case with a blank request<o:p></o:p></span></p>
<pre style="mso-margin-top-alt:3.0pt;margin-right:0in;margin-bottom:3.0pt;margin-left:0in;box-sizing: inherit;--saf-0: rgba(var(--sk_foreground_low,29,28,29),0.13);overflow-wrap: break-word;font-variant-ligatures: none;tab-size: 4;white-space:pre-wrap;background:rgba(var(--sk_foreground_min,29,28,29),.04);border:var(--saf-0);border-radius: 4px;overflow-y: hidden;counter-reset: list-0 0 list-1 0 list-2 0 list-3 0 list-4 0 list-5 0 list-6 0 list-7 0 list-8 0 list-9 0;font-variant-caps: normal;orphans: 2;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px"><span style="font-size:9.0pt;font-family:Consolas;color:#1D1C1D">[9/7/23, 15:54:21:528 IST] 0000005a id=00000000 com.ibm.ws.http.channel.h2internal.FrameReadProcessor        3 checkConnectionPreface: processNextFrame-:  stream: 0 frame type: Magic Preface  direction: READ_IN H2InboundLink hc: 551136004<o:p></o:p></span></pre>
<pre style="mso-margin-top-alt:3.0pt;margin-right:0in;margin-bottom:3.0pt;margin-left:0in"><span style="font-size:9.0pt;font-family:Consolas;color:#1D1C1D">[9/7/23, 15:54:21:528 IST] 0000005a id=00000000 com.ibm.ws.http.channel.h2internal.FrameReadProcessor        3 checkConnectionPreface: Preface String: [80, 82, 73, 32, 42, 32, 72, 84, 84, 80, 47, 50, 46, 48, 13, 10, 13, 10, 83, 77, 13, 10, 13, 10]<o:p></o:p></span></pre>
<pre style="mso-margin-top-alt:3.0pt;margin-right:0in;margin-bottom:3.0pt;margin-left:0in"><span style="font-size:9.0pt;font-family:Consolas;color:#1D1C1D">[9/7/23, 15:54:21:528 IST] 0000005a id=00000000 com.ibm.ws.http.channel.h2internal.H2InboundLink             3 createNewInboundLink entry: stream-id: 0<o:p></o:p></span></pre>
<pre style="mso-margin-top-alt:3.0pt;margin-right:0in;margin-bottom:3.0pt;margin-left:0in"><span style="font-size:9.0pt;font-family:Consolas;color:#1D1C1D">[9/7/23, 15:54:21:528 IST] 0000005a id=00000000 com.ibm.ws.http.channel.internal.inbound.HttpInboundLink<o:p></o:p></span></pre>
<pre style="mso-margin-top-alt:3.0pt;margin-right:0in;margin-bottom:3.0pt;margin-left:0in"><span style="font-size:11.5pt;font-family:"Arial",sans-serif;color:#1D1C1D;background:#F8F8F8"><o:p> </o:p></span></pre>
<pre style="mso-margin-top-alt:3.0pt;margin-right:0in;margin-bottom:3.0pt;margin-left:0in"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#1D1C1D;background:#F8F8F8">Please let us to know whether it is an expected behavior or an issue?  Or is there a way to handle such scenarios?<o:p></o:p></span></pre>
<pre style="mso-margin-top-alt:3.0pt;margin-right:0in;margin-bottom:3.0pt;margin-left:0in"><span style="font-size:11.5pt;font-family:"Arial",sans-serif;color:#1D1C1D;background:#F8F8F8"><o:p> </o:p></span></pre>
<pre style="mso-margin-top-alt:3.0pt;margin-right:0in;margin-bottom:3.0pt;margin-left:0in"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#1D1C1D">Thanks & Regards,  <o:p></o:p></span></pre>
<pre style="mso-margin-top-alt:3.0pt;margin-right:0in;margin-bottom:3.0pt;margin-left:0in"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#1D1C1D">Asha H Sunagar  <o:p></o:p></span></pre>
<pre style="mso-margin-top-alt:3.0pt;margin-right:0in;margin-bottom:3.0pt;margin-left:0in"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#1D1C1D">IGA - JTC | Global Business Services – IBM  <o:p></o:p></span></pre>
<pre style="mso-margin-top-alt:3.0pt;margin-right:0in;margin-bottom:3.0pt;margin-left:0in"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#1D1C1D">Phone: +91 8884256034  <o:p></o:p></span></pre>
<pre style="mso-margin-top-alt:3.0pt;margin-right:0in;margin-bottom:3.0pt;margin-left:0in"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#1D1C1D">Email : <a href="mailto:asha.sunagar@ibm.com">asha.sunagar@ibm.com</a><o:p></o:p></span></pre>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>