[JIRA] (JENKINS-51327) Random java.lang.NumberFormatException

7 views
Skip to first unread message

wawanbreton@gmail.com (JIRA)

unread,
May 15, 2018, 6:25:02 AM5/15/18
to jenkinsc...@googlegroups.com
Erwan MATHIEU created an issue
 
Jenkins / Bug JENKINS-51327
Random java.lang.NumberFormatException
Issue Type: Bug Bug
Assignee: Unassigned
Components: core
Created: 2018-05-15 10:24
Environment: Debian 9.4
Jenkins ver. 2.107.2
SSL Gateway + Apache HTTP Proxy
Priority: Minor Minor
Reporter: Erwan MATHIEU

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

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

dbeck@cloudbees.com (JIRA)

unread,
May 15, 2018, 2:47:02 PM5/15/18
to jenkinsc...@googlegroups.com

dbeck@cloudbees.com (JIRA)

unread,
May 15, 2018, 2:48:01 PM5/15/18
to jenkinsc...@googlegroups.com
Daniel Beck commented on Bug JENKINS-51327
 
Re: Random java.lang.NumberFormatException

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.

o.v.nenashev@gmail.com (JIRA)

unread,
May 16, 2018, 3:06:02 AM5/16/18
to jenkinsc...@googlegroups.com
Oleg Nenashev commented on Bug JENKINS-51327
 
Re: Random java.lang.NumberFormatException

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

o.v.nenashev@gmail.com (JIRA)

unread,
May 16, 2018, 3:06:02 AM5/16/18
to jenkinsc...@googlegroups.com

olamy@apache.org (JIRA)

unread,
May 16, 2018, 8:11:02 AM5/16/18
to jenkinsc...@googlegroups.com

o.v.nenashev@gmail.com (JIRA)

unread,
May 16, 2018, 8:16:03 AM5/16/18
to jenkinsc...@googlegroups.com
Oleg Nenashev commented on Bug JENKINS-51327
 
Re: Random java.lang.NumberFormatException

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

dbeck@cloudbees.com (JIRA)

unread,
May 16, 2018, 8:18:02 AM5/16/18
to jenkinsc...@googlegroups.com
Daniel Beck commented on Bug JENKINS-51327
 
Re: Random java.lang.NumberFormatException

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

wawanbreton@gmail.com (JIRA)

unread,
May 16, 2018, 2:59:03 PM5/16/18
to jenkinsc...@googlegroups.com
Erwan MATHIEU commented on Bug JENKINS-51327
 
Re: Random java.lang.NumberFormatException

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

olamy@apache.org (JIRA)

unread,
May 17, 2018, 2:02:02 AM5/17/18
to jenkinsc...@googlegroups.com
Olivier Lamy commented on Bug JENKINS-51327
 
Re: Random java.lang.NumberFormatException

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

wawanbreton@gmail.com (JIRA)

unread,
May 17, 2018, 5:12:02 AM5/17/18
to jenkinsc...@googlegroups.com
Erwan MATHIEU commented on Bug JENKINS-51327
 
Re: Random java.lang.NumberFormatException

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

wawanbreton@gmail.com (JIRA)

unread,
May 22, 2018, 8:08:02 AM5/22/18
to jenkinsc...@googlegroups.com
 
Re: Random java.lang.NumberFormatException

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.

wawanbreton@gmail.com (JIRA)

unread,
May 22, 2018, 8:09:02 AM5/22/18
to jenkinsc...@googlegroups.com
Erwan MATHIEU edited a comment on Bug JENKINS-51327
 
Re: Random java.lang.NumberFormatException
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...

wawanbreton@gmail.com (JIRA)

unread,
Sep 27, 2018, 10:02:03 AM9/27/18
to jenkinsc...@googlegroups.com
Erwan MATHIEU commented on Bug JENKINS-51327
 
Re: Random java.lang.NumberFormatException

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

This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

o.v.nenashev@gmail.com (JIRA)

unread,
Sep 27, 2018, 10:04:02 AM9/27/18
to jenkinsc...@googlegroups.com

wawanbreton@gmail.com (JIRA)

unread,
Sep 27, 2018, 12:46:02 PM9/27/18
to jenkinsc...@googlegroups.com
Erwan MATHIEU commented on Bug JENKINS-51327
 
Re: Random java.lang.NumberFormatException

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

wawanbreton@gmail.com (JIRA)

unread,
Jul 30, 2019, 10:22:02 AM7/30/19
to jenkinsc...@googlegroups.com
 
Re: Random java.lang.NumberFormatException

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

 

Reply all
Reply to author
Forward
0 new messages