grizzly
  1. grizzly
  2. GRIZZLY-1254

This error occurs occasionally for no apparent reason, causing glassfish does not deliver all packets.

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.9.47
    • Fix Version/s: 1.9.49
    • Component/s: ajp
    • Labels:
      None
    • Environment:

      Glassfish 3.1.2 build 23 Apache/2.2.9 mod_jk/1.2.32 Windows 2003 Server x64

      Description

      [#|2012-04-14T20:36:21.593-0500|SEVERE|glassfish3.1.2|com.sun.grizzly.config.GrizzlyServiceListener|_ThreadID=1333;_ThreadName=Thread-2;|GRIZZLY0051: ProcessorTask exception.
      java.lang.IndexOutOfBoundsException
      at java.nio.Buffer.checkBounds(Buffer.java:559)
      at java.nio.HeapByteBuffer.get(HeapByteBuffer.java:143)
      at com.sun.grizzly.util.InputReader.read(InputReader.java:216)
      at com.sun.grizzly.http.ajp.AjpInputBuffer.ensureAvailable(AjpInputBuffer.java:210)
      at com.sun.grizzly.http.ajp.AjpInputBuffer.readAjpMessageHeader(AjpInputBuffer.java:79)
      at com.sun.grizzly.http.ajp.AjpProcessorTask.parseRequest(AjpProcessorTask.java:107)
      at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:706)
      at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045)
      at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)
      at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
      at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
      at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
      at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
      at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
      at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
      at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
      at java.lang.Thread.run(Thread.java:722)

      #]

      The log file is full of this error, several of these messages per second. The only way to stop it is going to: "server config \ network config \ protocols \ jk-connector \ HTTP modify" Max Connections value and SAVE. However, no matter how high the value set, this error will occur at some moment.

        Activity

        Hide
        oleksiys added a comment -

        can you pls. try the patch from the issue
        http://java.net/jira/browse/GLASSFISH-18446

        Show
        oleksiys added a comment - can you pls. try the patch from the issue http://java.net/jira/browse/GLASSFISH-18446
        Hide
        lflince added a comment -

        When I had the 1.9.46 version, I tried that patch, but the error continued to appear. Now I have version 1.9.47, which I understand includes this patch.

        http://java.net/jira/secure/ReleaseNote.jspa?projectId=10005&version=15532

        Show
        lflince added a comment - When I had the 1.9.46 version, I tried that patch, but the error continued to appear. Now I have version 1.9.47, which I understand includes this patch. http://java.net/jira/secure/ReleaseNote.jspa?projectId=10005&version=15532
        Hide
        oleksiys added a comment -

        can you pls. give more details on GF and apache config?
        May be steps to reproduce the issue?

        Show
        oleksiys added a comment - can you pls. give more details on GF and apache config? May be steps to reproduce the issue?
        Hide
        lflince added a comment -

        Attach more info, thanks.

        Show
        lflince added a comment - Attach more info, thanks.
        Hide
        oleksiys added a comment -

        can you pls. also attach apache config (httpd.conf)?
        And if possible simple app we can use to reproduce the issue.

        Show
        oleksiys added a comment - can you pls. also attach apache config (httpd.conf)? And if possible simple app we can use to reproduce the issue.
        Hide
        lflince added a comment -

        Attached httpd.conf
        But a app not is simple

        Show
        lflince added a comment - Attached httpd.conf But a app not is simple
        Hide
        lflince added a comment -

        I do not know if this can help, from side Apache, the log file mod_jk.log, appears that, when errors occur:

        [Sun Apr 15 19:55:06.843 2012] [3348:2152] [info] ajp_connection_tcp_get_message::jk_ajp_common.c (1266): (wk_glassfish1) can't receive the response header message from tomcat, tomcat (127.0.0.1:8009) has forced a connection close for socket 4616
        [Sun Apr 15 19:55:06.843 2012] [3348:2152] [error] ajp_get_reply::jk_ajp_common.c (2118): (wk_glassfish1) Tomcat is down or refused connection. No response has been sent to the client (yet)

        Show
        lflince added a comment - I do not know if this can help, from side Apache, the log file mod_jk.log, appears that, when errors occur: [Sun Apr 15 19:55:06.843 2012] [3348:2152] [info] ajp_connection_tcp_get_message::jk_ajp_common.c (1266): (wk_glassfish1) can't receive the response header message from tomcat, tomcat (127.0.0.1:8009) has forced a connection close for socket 4616 [Sun Apr 15 19:55:06.843 2012] [3348:2152] [error] ajp_get_reply::jk_ajp_common.c (2118): (wk_glassfish1) Tomcat is down or refused connection. No response has been sent to the client (yet)
        Hide
        lflince added a comment -

        Sometimes glassfish can send this message:

        Bad Gateway
        The proxy server received an invalid response from an upstream server.

        Show
        lflince added a comment - Sometimes glassfish can send this message: Bad Gateway The proxy server received an invalid response from an upstream server.
        Hide
        oleksiys added a comment -

        Can you pls. patch GF 3.1.2 (Grizzly version 1.9.47) w/ the attached jar (copy the attached jar into gfv3/glassfish/modules folder)?
        It adds logging, so it would be easier to find the problem.

        Thanks.

        Show
        oleksiys added a comment - Can you pls. patch GF 3.1.2 (Grizzly version 1.9.47) w/ the attached jar (copy the attached jar into gfv3/glassfish/modules folder)? It adds logging, so it would be easier to find the problem. Thanks.
        Hide
        lflince added a comment -

        Thanks, I'll try

        Show
        lflince added a comment - Thanks, I'll try
        Hide
        lflince added a comment -

        Attach new log file with error + other log info

        Thanks

        Show
        lflince added a comment - Attach new log file with error + other log info Thanks
        Hide
        oleksiys added a comment -

        can you pls. attach all the log files in the folder (pls. compress them before)
        thx.

        Show
        oleksiys added a comment - can you pls. attach all the log files in the folder (pls. compress them before) thx.
        Hide
        oleksiys added a comment -

        the patch with more logs

        Show
        oleksiys added a comment - the patch with more logs
        Hide
        lflince added a comment -

        Attach all log file after apply first patch

        Show
        lflince added a comment - Attach all log file after apply first patch
        Hide
        lflince added a comment -

        The new patch will have to apply when reduced traffic on the server

        Show
        lflince added a comment - The new patch will have to apply when reduced traffic on the server
        Hide
        lflince added a comment -

        Attach new log files with error info

        Thanks

        Show
        lflince added a comment - Attach new log files with error info Thanks
        Hide
        oleksiys added a comment -

        this patch has to fix the issue.
        can you pls. check it?

        thx.

        Show
        oleksiys added a comment - this patch has to fix the issue. can you pls. check it? thx.
        Hide
        lflince added a comment -

        I'll try

        Thanks

        Show
        lflince added a comment - I'll try Thanks
        Hide
        lflince added a comment -

        Yes, the issue is fixed, thanks oleksiys

        Show
        lflince added a comment - Yes, the issue is fixed, thanks oleksiys
        Hide
        oleksiys added a comment -

        fixed

        Revision: c9e76d95f250590e2b670709079887027f3bddfa
        Date: 2012-04-25 08:50:52 UTC

        Log Message:
        ------------
        + fix issue #1254
        http://java.net/jira/browse/GRIZZLY-1254
        "This error occurs occasionally for no apparent reason, causing glassfish does not deliver all packets."

        Show
        oleksiys added a comment - fixed Revision: c9e76d95f250590e2b670709079887027f3bddfa Date: 2012-04-25 08:50:52 UTC Log Message: ------------ + fix issue #1254 http://java.net/jira/browse/GRIZZLY-1254 "This error occurs occasionally for no apparent reason, causing glassfish does not deliver all packets."

          People

          • Assignee:
            Unassigned
            Reporter:
            lflince
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: