SonarQube
  1. SonarQube
  2. SONAR-3058

AJP connector is broken in 2.12 (jetty 6.1.26)

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.12
    • Fix Version/s: 2.13
    • Component/s: Web
    • Labels:
      None
    • Environment:
      Windows Server 2003 R3 32bit, Apache 2.2.21
    • Number of attachments :
      0

      Description

      It seems that after upgrading our Sonar to 2.12 (running as a standalone service) it no longer works with mod_proxy_ajp in our Apache server.

      Each request will result in a log line like this in sonar.log:

      INFO   | jvm 1    | 2011/12/06 10:24:37 | 2011-12-06 10:24:37.246:WARN::handle failed
      INFO   | jvm 1    | 2011/12/06 10:24:37 | java.io.IOException: Bad AJP13 rcv packet: 0x0 expected 0x1234 org.mortbay.jetty.ajp.Ajp13Parser@bbec16
      INFO   | jvm 1    | 2011/12/06 10:24:37 | 	at org.mortbay.jetty.ajp.Ajp13Parser.parseNext(Ajp13Parser.java:276)
      INFO   | jvm 1    | 2011/12/06 10:24:37 | 	at org.mortbay.jetty.ajp.Ajp13Parser.parseAvailable(Ajp13Parser.java:152)
      INFO   | jvm 1    | 2011/12/06 10:24:37 | 	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
      INFO   | jvm 1    | 2011/12/06 10:24:37 | 	at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
      INFO   | jvm 1    | 2011/12/06 10:24:37 | 	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
      

      Downgrading the Jetty binaries in Sonar to 6.1.24 (from Sonar 2.11) seems to have fixed that issue.

        Issue Links

          Activity

          Simon Brandhof made changes -
          Field Original Value New Value
          Link This issue depends upon JETTY-1308 [ JETTY-1308 ]
          Freddy Mallet made changes -
          Fix Version/s 2.14 [ 18034 ]
          Hide
          Simon Brandhof added a comment -

          Jetty 6.1.27 is not released yet. The good alternative is to downgrade to jetty 6.1.25.

          Show
          Simon Brandhof added a comment - Jetty 6.1.27 is not released yet. The good alternative is to downgrade to jetty 6.1.25.
          Simon Brandhof made changes -
          Summary AJP connector seems to be broken in 2.12 (jetty 6.1.26) AJP connector is broken in 2.12 (jetty 6.1.26)
          Fix Version/s 2.13 [ 17820 ]
          Fix Version/s 2.14 [ 18034 ]
          Simon Brandhof made changes -
          Assignee Simon Brandhof [ simon.brandhof ]
          Simon Brandhof made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Assignee Simon Brandhof [ simon.brandhof ] Freddy Mallet [ freddy.mallet ]
          Resolution Fixed [ 1 ]
          Freddy Mallet made changes -
          Assignee Freddy Mallet [ freddy.mallet ] Simon Brandhof [ simon.brandhof ]
          Simon Brandhof made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Simon Brandhof
              Reporter:
              Kristoffer Peterhansel
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: