Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-51327

Random java.lang.NumberFormatException

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: core
    • Labels:
    • Environment:
      Debian 9.4
      Jenkins ver. 2.107.2
      SSL Gateway + Apache HTTP Proxy
    • Similar Issues:

      Description

      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

        Attachments

          Activity

          Hide
          wawanbreton Erwan MATHIEU added a comment - - edited

          Unfortunately, error is still present with version 2.122. Can you tell me how to disable IPv6 ? I will try to do some tests to see where it comes from. I don't really understand how it can happen, as all the traffic to Jenkins is supposed to come from the Apache proxy from localhost...

          Show
          wawanbreton Erwan MATHIEU added a comment - - edited Unfortunately, error is still present with version 2.122. Can you tell me how to disable IPv6 ? I will try to do some tests to see where it comes from. I don't really understand how it can happen, as all the traffic to Jenkins is supposed to come from the Apache proxy from localhost...
          Hide
          wawanbreton Erwan MATHIEU added a comment -

          Hi, I am now at version 2.168.1, and I'm still affected by this issue. Any update or recommandation ?

          Show
          wawanbreton Erwan MATHIEU added a comment - Hi, I am now at version 2.168.1, and I'm still affected by this issue. Any update or recommandation ?
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          2.138.1, I'd guess.

          Show
          oleg_nenashev Oleg Nenashev added a comment - 2.138.1, I'd guess.
          Hide
          wawanbreton Erwan MATHIEU added a comment -

          Oh yes obviously you're right, my new version is 2.138.1

          Show
          wawanbreton Erwan MATHIEU added a comment - Oh yes obviously you're right, my new version is 2.138.1
          Hide
          wawanbreton Erwan MATHIEU added a comment -

          Hi, just for the update, still present in version 2.176.2

           

          Show
          wawanbreton Erwan MATHIEU added a comment - Hi, just for the update, still present in version 2.176.2  

            People

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

              Dates

              • Created:
                Updated: