• 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
          Oleg Nenashev made changes -
          Labels New: jetty

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

              Created:
              Updated: