glassfish
  1. glassfish
  2. GLASSFISH-18446

JK listener with Apache + mod_ajp_proxy causes truncated downloads

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.1.2_b23
    • Fix Version/s: 3.1.2.2
    • Component/s: grizzly-kernel
    • Labels:
      None

      Description

      Since upgrading to 3.1.2 I am experiencing truncated file downloads from my app with GF behind Apache using a lk-listener and Apache mod_ajp_proxy. It seems to be ajp related as downloads complete fully when accessing app directly on GF http port.

      With jk downloads truncate at 256Kb, the original file is 700Kb.

      This appears in the Apache logs:

      ajp_check_msg_header() got bad signature 28e9
      ajp_ilink_receive() received bad header
      ajp_read_header: ajp_ilink_receive failed
      (120007)APR does not understand this error code: proxy: dialog to 192.168.200.44:8009 (ww.mydomain.com) failed

      Config:

      asadmin create-network-listener --jkenabled true --protocol http-listener-1 --listenerport 8009 jk-listener
      ProxyPass / ajp://www.mydomain.com:8009/
      ProxyPassReverse / ajp://www.mydomain.com:8009/

      Packet capture of failed download attached.

      1. ajp_trunc.cap
        331 kB
        buddypine
      2. chrome_dump.txt
        6 kB
        jsl123
      3. mod_jk.log
        3.02 MB
        buddypine
      4. wget_dump.txt
        12 kB
        jsl123

        Activity

        buddypine created issue -
        buddypine made changes -
        Field Original Value New Value
        Attachment mod_jk.log [ 49447 ]
        Shing Wai Chan made changes -
        Assignee Shing Wai Chan [ swchan2 ] Ryan Lubke [ rlubke ]
        oleksiys made changes -
        Attachment grizzly-http.jar [ 49461 ]
        Ryan Lubke made changes -
        Assignee Ryan Lubke [ rlubke ] oleksiys [ oleksiys ]
        oleksiys made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s not determined [ 11149 ]
        Resolution Fixed [ 1 ]
        oleksiys made changes -
        Priority Major [ 3 ] Blocker [ 1 ]
        Component/s grizzly-kernel [ 10632 ]
        Component/s web_container [ 10622 ]
        jsl123 made changes -
        Attachment chrome_dump.txt [ 49477 ]
        jsl123 made changes -
        Attachment wget_dump.txt [ 49478 ]
        jsl123 made changes -
        Comment [ The attached patch seems to have solved it. I'll do more conclusive testing and let you know ]
        oleksiys made changes -
        Attachment grizzly-http-ajp.jar [ 49479 ]
        oleksiys made changes -
        Attachment grizzly-http-ajp.jar [ 49479 ]
        oleksiys made changes -
        Attachment grizzly-http-ajp.jar [ 49492 ]
        Joe Di Pol made changes -
        Tags jl-listener jk apache mod_ajp_proxy 3_1_2-next apache jk jl-listener mod_ajp_proxy
        oleksiys made changes -
        Attachment grizzly-http-ajp.jar [ 49492 ]
        oleksiys made changes -
        Attachment grizzly-http-ajp.jar [ 49861 ]
        oleksiys made changes -
        Attachment grizzly-http-ajp.jar [ 49861 ]
        oleksiys made changes -
        Attachment grizzly-http-ajp.jar [ 50109 ]
        oleksiys made changes -
        Attachment grizzly-http-ajp.jar [ 50109 ]
        oleksiys made changes -
        Attachment grizzly-http-ajp.jar [ 50266 ]
        oleksiys made changes -
        Attachment grizzly-http-ajp.jar [ 50266 ]
        oleksiys made changes -
        Attachment grizzly-http-ajp.jar [ 50388 ]
        Joe Di Pol made changes -
        Fix Version/s 3.1.2.2 [ 15916 ]
        Fix Version/s not determined [ 11149 ]

          People

          • Assignee:
            oleksiys
            Reporter:
            buddypine
          • Votes:
            4 Vote for this issue
            Watchers:
            14 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: