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

Random java.lang.NumberFormatException

    XMLWordPrintable

    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
          danielbeck 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.

          Show
          danielbeck 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.
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

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

          Show
          oleg_nenashev Oleg Nenashev added a comment - CC Olivier Lamy . I am not sure what is IPv6 situation in Jetty, it does not look like an issue in the Jenkins codebase
          Hide
          olamy Olivier Lamy added a comment -

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

          Show
          olamy Olivier Lamy added a comment - fyi https://github.com/eclipse/jetty.project/issues/1503 proper support will be 9.4.7 onward.
          Hide
          oleg_nenashev 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.

          Daniel Beck Olivier Lamy 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

          Show
          oleg_nenashev 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. Daniel Beck Olivier Lamy 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
          Hide
          danielbeck 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.

          Show
          danielbeck 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.
          Hide
          wawanbreton Erwan MATHIEU added a comment -

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

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

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

          Show
          olamy Olivier Lamy added a comment - something to verify as well but there might be some bad RFC7239 header as well...
          Hide
          wawanbreton Erwan MATHIEU added a comment -

          I installed version 2.122 this morning, no error so far. I'll let you know in a few days.

          Show
          wawanbreton Erwan MATHIEU added a comment - I installed version 2.122 this morning, no error so far. I'll let you know in a few days.
          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: