3 Replies Latest reply on Dec 14, 2016 6:39 AM by jaikiran pai

    Wildfly 10 /Apache V 2.2.31 Ajp - content length header in response is -1

    sandeep l Newbie

      Hi,

       

      I have setup Wildfly v10 with Apache v2.2.31 and when I access web application I am getting content-length header as -1 , and the page is not loading in Internet explorer, looks like IE is strict about content-length header. In other browsers like chrome and Mozilla page loads fine event with content-length=-1.

      If I remove the content length header by changing Apache configuration to remove the header, then page loads fine in Internet explored.

       

      so it appears the problem is with content-length header . I have enabled the logging in apache and I can see that wildfly is sending the content length headers as -1. Below is the log.  Please let me know if there is any solution for this problem.

       

      Did anyone encounter this problem ?

       

      [Wed Dec 07 11:54:54 2016] [debug] ajp_header.c(481): ajp_marshal_into_msgb: Done

      [Wed Dec 07 11:54:54 2016] [debug] mod_proxy_ajp.c(267): proxy: APR_BUCKET_IS_EOS

      [Wed Dec 07 11:54:54 2016] [debug] mod_proxy_ajp.c(272): proxy: data to read (max 8186 at 4)

      [Wed Dec 07 11:54:54 2016] [debug] mod_proxy_ajp.c(287): proxy: got 0 bytes of data

      [Wed Dec 07 11:54:54 2016] [debug] ajp_header.c(718): ajp_read_header: ajp_ilink_received 04

      [Wed Dec 07 11:54:54 2016] [debug] ajp_header.c(728): ajp_parse_type: got 04

      [Wed Dec 07 11:54:54 2016] [debug] ajp_header.c(547): ajp_unmarshal_response: status = 200

      [Wed Dec 07 11:54:54 2016] [debug] ajp_header.c(568): ajp_unmarshal_response: Number of headers is = 10

      [Wed Dec 07 11:54:54 2016] [debug] ajp_header.c(630): ajp_unmarshal_response: Header[0] [Content-Encoding] = [gzip]

      [Wed Dec 07 11:54:54 2016] [debug] ajp_header.c(630): ajp_unmarshal_response: Header[1] [X-Powered-By] = [Undertow/1]

      [Wed Dec 07 11:54:54 2016] [debug] ajp_header.c(630): ajp_unmarshal_response: Header[2] [X-Powered-By] = [JSP/2.3]

      [Wed Dec 07 11:54:54 2016] [debug] ajp_header.c(630): ajp_unmarshal_response: Header[3] [Server] = [WildFly/10]

      [Wed Dec 07 11:54:54 2016] [debug] ajp_header.c(630): ajp_unmarshal_response: Header[4] [Date] = [Wed, 07 Dec 2016 16:54:54 GMT]

      [Wed Dec 07 11:54:54 2016] [debug] ajp_header.c(630): ajp_unmarshal_response: Header[5] [Vary] = [Accept-Encoding]

      [Wed Dec 07 11:54:54 2016] [debug] ajp_header.c(630): ajp_unmarshal_response: Header[6] [X-Content-Type-Options] = [nosniff]

      [Wed Dec 07 11:54:54 2016] [debug] ajp_header.c(630): ajp_unmarshal_response: Header[7] [Content-Length] = [-1]

      [Wed Dec 07 11:54:54 2016] [debug] ajp_header.c(630): ajp_unmarshal_response: Header[8] [Content-Type] = [text/html; charset=UTF-8]

      [Wed Dec 07 11:54:54 2016] [debug] ajp_header.c(640): ajp_unmarshal_response: ap_set_content_type done

      [Wed Dec 07 11:54:54 2016] [debug] ajp_header.c(630): ajp_unmarshal_response: Header[9] [Liferay-Portal] = [Liferay Portal Community Edition 6.2 CE GA6 (Newton / Build 6205 / January 6, 2016)]

      [Wed Dec 07 11:54:54 2016] [debug] ajp_header.c(718): ajp_read_header: ajp_ilink_received 03

      [Wed Dec 07 11:54:54 2016] [debug] ajp_header.c(728): ajp_parse_type: got 03

      [Wed Dec 07 11:54:54 2016] [debug] mod_dumpio.c(143): mod_dumpio: dumpio_out

      [Wed Dec 07 11:54:54 2016] [debug] mod_dumpio.c(55): mod_dumpio:  dumpio_out (data-HEAP): 422 bytes

      [Wed Dec 07 11:54:54 2016] [debug] mod_dumpio.c(74): mod_dumpio:  dumpio_out (data-HEAP): HTTP/1.1 200 OK\r\nDate: Wed, 07 Dec 2016 16:54:54 GMT\r\nServer: WildFly/10\r\nContent-Encoding: gzip\r\nX-Powered-By: Undertow/1\r\nX-Powered-By: JSP/2.3\r\nVary: Accept-Encoding\r\nX-Content-Type-Options: nosniff\r\nContent-Length: -1\r\nContent-Type: text/html; charset=UTF-8\r\nLiferay-Portal: Liferay Portal Community Edition 6.2 CE GA6 (Newton / Build 6205 / January 6, 2016)\r\nKeep-Alive: timeout=5, max=100\r\nConnection: Keep-Alive\r\n\r\n

      [Wed Dec 07 11:54:54 2016] [debug] mod_dumpio.c(143): mod_dumpio: dumpio_out

      [Wed Dec 07 11:54:54 2016] [debug] mod_dumpio.c(55): mod_dumpio:  dumpio_out (data-TRANSIENT): 5627 bytes

      [Wed Dec 07 11:54:54 2016] [debug] mod_dumpio.c(74): mod_dumpio:  dumpio_out (data-TRANSIENT): \x1f\x8b\b

      [Wed Dec 07 11:54:54 2016] [debug] ajp_header.c(718): ajp_read_header: ajp_ilink_received 03

      [Wed Dec 07 11:54:54 2016] [debug] ajp_header.c(728): ajp_parse_type: got 03

      [Wed Dec 07 11:54:54 2016] [debug] mod_dumpio.c(143): mod_dumpio: dumpio_out

      [Wed Dec 07 11:54:54 2016] [debug] mod_dumpio.c(55): mod_dumpio:  dumpio_out (metadata-FLUSH): 0 bytes

      [Wed Dec 07 11:54:54 2016] [debug] ajp_header.c(718): ajp_read_header: ajp_ilink_received 05

      [Wed Dec 07 11:54:54 2016] [debug] ajp_header.c(728): ajp_parse_type: got 05

      [Wed Dec 07 11:54:54 2016] [debug] mod_dumpio.c(143): mod_dumpio: dumpio_out

      [Wed Dec 07 11:54:54 2016] [debug] mod_dumpio.c(55): mod_dumpio:  dumpio_out (metadata-EOS): 0 bytes

       

      Thanks for your help