• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • core
    • Debian 9.4
      Jenkins ver. 2.107.2
      SSL Gateway + Apache HTTP Proxy

      Hi,

      I'm accessing my remote Jenkins server, with HTTPS stream passing through an SSL Gateway, then the Apache server redirecting calls to the Jenkins server.

      I works well, but I regularly have the following error, when accessing any page :

      java.lang.NumberFormatException: 2a01:e35:8a4a:8c0:30a6:4764:692b:f7da
       at org.eclipse.jetty.util.StringUtil.toInt(StringUtil.java:724)
       at org.eclipse.jetty.util.HostPort.<init>(HostPort.java:66)
       at org.eclipse.jetty.http.HostPortHttpField.<init>(HostPortHttpField.java:44)
      Caused: org.eclipse.jetty.http.BadMessageException: 400: Bad HostPort
       at org.eclipse.jetty.http.HostPortHttpField.<init>(HostPortHttpField.java:48)
       at org.eclipse.jetty.http.HostPortHttpField.<init>(HostPortHttpField.java:35)
       at org.eclipse.jetty.server.ForwardedRequestCustomizer$RFC7239.parsedParam(ForwardedRequestCustomizer.java:485)
       at org.eclipse.jetty.http.QuotedCSV.addValue(QuotedCSV.java:135)
       at org.eclipse.jetty.server.ForwardedRequestCustomizer.customize(ForwardedRequestCustomizer.java:348)
       at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
       at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
       at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
       at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:110)
       at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)
       at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
       at java.lang.Thread.run(Thread.java:748)

      I have to reload the page a few times, and it eventually works, but this is very annoying as it occurs quite often.

      I can give you the public URL of the server in private message if required, so that you can reproduce the error with some (bad) luck. I have reproduced it with many different users.

      Thanks for your support

          [JENKINS-51327] Random java.lang.NumberFormatException

          Erwan MATHIEU created issue -
          Daniel Beck made changes -
          Description Original: Hi,

          I'm accessing my remote Jenkins server, with HTTPS stream passing through an SSL Gateway, then the Apache server redirecting calls to the Jenkins server.

          I works well, but I regularly have the following error, when accessing any page :

          java.lang.NumberFormatException: 2a01:e35:8a4a:8c0:30a6:4764:692b:f7da at org.eclipse.jetty.util.StringUtil.toInt(StringUtil.java:724) at org.eclipse.jetty.util.HostPort.<init>(HostPort.java:66) at org.eclipse.jetty.http.HostPortHttpField.<init>(HostPortHttpField.java:44) Caused: org.eclipse.jetty.http.BadMessageException: 400: Bad HostPort at org.eclipse.jetty.http.HostPortHttpField.<init>(HostPortHttpField.java:48) at org.eclipse.jetty.http.HostPortHttpField.<init>(HostPortHttpField.java:35) at org.eclipse.jetty.server.ForwardedRequestCustomizer$RFC7239.parsedParam(ForwardedRequestCustomizer.java:485) at org.eclipse.jetty.http.QuotedCSV.addValue(QuotedCSV.java:135) at org.eclipse.jetty.server.ForwardedRequestCustomizer.customize(ForwardedRequestCustomizer.java:348) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:110) at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124) at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)

          I have to reload the page a few times, and it eventually works, but this is very annoying as it occurs quite often.

          I can give you the public URL of the server in private message if required, so that you can reproduce the error with some (bad) luck. I have reproduced it with many different users.

          Thanks for your support
          New: Hi,

          I'm accessing my remote Jenkins server, with HTTPS stream passing through an SSL Gateway, then the Apache server redirecting calls to the Jenkins server.

          I works well, but I regularly have the following error, when accessing any page :

          java.lang.NumberFormatException: 2a01:e35:8a4a:8c0:30a6:4764:692b:f7da
           at org.eclipse.jetty.util.StringUtil.toInt(StringUtil.java:724)
           at org.eclipse.jetty.util.HostPort.<init>(HostPort.java:66)
           at org.eclipse.jetty.http.HostPortHttpField.<init>(HostPortHttpField.java:44)
          Caused: org.eclipse.jetty.http.BadMessageException: 400: Bad HostPort
           at org.eclipse.jetty.http.HostPortHttpField.<init>(HostPortHttpField.java:48)
           at org.eclipse.jetty.http.HostPortHttpField.<init>(HostPortHttpField.java:35)
           at org.eclipse.jetty.server.ForwardedRequestCustomizer$RFC7239.parsedParam(ForwardedRequestCustomizer.java:485)
           at org.eclipse.jetty.http.QuotedCSV.addValue(QuotedCSV.java:135)
           at org.eclipse.jetty.server.ForwardedRequestCustomizer.customize(ForwardedRequestCustomizer.java:348)
           at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
           at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
           at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
           at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:110)
           at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)
           at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
           at java.lang.Thread.run(Thread.java:748)

          I have to reload the page a few times, and it eventually works, but this is very annoying as it occurs quite often.

          I can give you the public URL of the server in private message if required, so that you can reproduce the error with some (bad) luck. I have reproduced it with many different users.

          Thanks for your support

          Daniel Beck added a comment -

          TBH I am not sure what our IPv6 situation is overall. Might be interesting to go with IPv4 in some of the involved components and see whether that resolves the problem.

          Daniel Beck added a comment - TBH I am not sure what our IPv6 situation is overall. Might be interesting to go with IPv4 in some of the involved components and see whether that resolves the problem.

          Oleg Nenashev added a comment -

          CC olamy. I am not sure what is IPv6 situation in Jetty, it does not look like an issue in the Jenkins codebase

          Oleg Nenashev added a comment - CC olamy . I am not sure what is IPv6 situation in Jetty, it does not look like an issue in the Jenkins codebase
          Oleg Nenashev made changes -
          Labels New: jetty

          Olivier Lamy added a comment -

          fyi https://github.com/eclipse/jetty.project/issues/1503
          proper support will be 9.4.7 onward.

          Olivier Lamy added a comment - fyi https://github.com/eclipse/jetty.project/issues/1503 proper support will be 9.4.7 onward.

          Oleg Nenashev added a comment -

          So the version with the fix is available in 2.117 (https://jenkins.io/changelog/#v2.117), and it will be available in the next LTS release (2.121.1) baring major issues there.

          danielbeck olamy I propose to add it to the weekly changelog and mention is a whatever "IPv6 support in Jetty". Maybe useful for LTS changelog as well

          Oleg Nenashev added a comment - So the version with the fix is available in 2.117 ( https://jenkins.io/changelog/#v2.117 ), and it will be available in the next LTS release (2.121.1) baring major issues there. danielbeck olamy I propose to add it to the weekly changelog and mention is a whatever "IPv6 support in Jetty". Maybe useful for LTS changelog as well

          Daniel Beck added a comment -

          Took almost through the entire LTS line to get noticed, so doesn't seem to be that big of a deal.

          Daniel Beck added a comment - Took almost through the entire LTS line to get noticed, so doesn't seem to be that big of a deal.

          Erwan MATHIEU added a comment -

          Ok thanks, I will test version 2.117 ASAP and tell you if that fixes the issue.

          Erwan MATHIEU added a comment - Ok thanks, I will test version 2.117 ASAP and tell you if that fixes the issue.

          Olivier Lamy added a comment -

          something to verify as well but there might be some bad RFC7239 header as well...

          Olivier Lamy added a comment - something to verify as well but there might be some bad RFC7239 header as well...

            Unassigned Unassigned
            wawanbreton Erwan MATHIEU
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: