java.lang.IllegalArgumentException: Invalid proxy port: sample_port

Jenkins JIRA | Hiroki Yonezawa | 5 years ago
  1. 0

    There is no check for Port on HTTP Proxy Configure. So, it accepts characters except the digits. When we enter some string(ex. port_number) for Port, Jenkins shows the following stack trace. java.lang.IllegalArgumentException: Invalid proxy port: sample_port at hudson.PluginManager.doProxyConfigure(PluginManager.java:564) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:282) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:149) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:88) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:103) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:561) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:646) at org.kohsuke.stapler.MetaClass$3.doDispatch(MetaClass.java:167) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:561) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:646) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:477) at org.kohsuke.stapler.Stapler.service(Stapler.java:159) at javax.servlet.http.HttpServlet.service(HttpServlet.java:45) at winstone.ServletConfiguration.execute(ServletConfiguration.java:249) at winstone.RequestDispatcher.forward(RequestDispatcher.java:335) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) at winstone.RequestDispatcher.forward(RequestDispatcher.java:333) at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244) at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NumberFormatException: For input string: "sample_port" at java.lang.NumberFormatException.forInputString(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at hudson.PluginManager.doProxyConfigure(PluginManager.java:560) ... 40 more

    Jenkins JIRA | 5 years ago | Hiroki Yonezawa
    java.lang.IllegalArgumentException: Invalid proxy port: sample_port
  2. 0

    There is no check for Port on HTTP Proxy Configure. So, it accepts characters except the digits. When we enter some string(ex. port_number) for Port, Jenkins shows the following stack trace. java.lang.IllegalArgumentException: Invalid proxy port: sample_port at hudson.PluginManager.doProxyConfigure(PluginManager.java:564) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:282) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:149) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:88) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:103) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:561) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:646) at org.kohsuke.stapler.MetaClass$3.doDispatch(MetaClass.java:167) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:561) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:646) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:477) at org.kohsuke.stapler.Stapler.service(Stapler.java:159) at javax.servlet.http.HttpServlet.service(HttpServlet.java:45) at winstone.ServletConfiguration.execute(ServletConfiguration.java:249) at winstone.RequestDispatcher.forward(RequestDispatcher.java:335) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) at winstone.RequestDispatcher.forward(RequestDispatcher.java:333) at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244) at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NumberFormatException: For input string: "sample_port" at java.lang.NumberFormatException.forInputString(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at hudson.PluginManager.doProxyConfigure(PluginManager.java:560) ... 40 more

    Jenkins JIRA | 5 years ago | Hiroki Yonezawa
    java.lang.IllegalArgumentException: Invalid proxy port: sample_port
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    GitHub comment 854#257133286

    GitHub | 1 month ago | cyberdak
    com.alibaba.fastjson.JSONException: For input string: "v"
  5. 0

    java : convert string value to int

    Stack Overflow | 5 years ago | lamisse
    java.lang.NumberFormatException: For input string: ""

  1. Handemelindo 6 times, last 4 days ago
  2. bmacedo 2 times, last 6 days ago
  3. MoYapro 1 times, last 1 week ago
  4. filpgame 4 times, last 3 weeks ago
  5. silex 6 times, last 1 month ago
32 more registered users
63 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NumberFormatException

    For input string: "sample_port"

    at java.lang.NumberFormatException.forInputString()
  2. Java RT
    Integer.parseInt
    1. java.lang.NumberFormatException.forInputString(Unknown Source)
    2. java.lang.Integer.parseInt(Unknown Source)
    3. java.lang.Integer.parseInt(Unknown Source)
    3 frames
  3. Hudson
    PluginManager.doProxyConfigure
    1. hudson.PluginManager.doProxyConfigure(PluginManager.java:560)
    1 frame
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    4. java.lang.reflect.Method.invoke(Unknown Source)
    4 frames
  5. Stapler
    Stapler.service
    1. org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:282)
    2. org.kohsuke.stapler.Function.bindAndInvoke(Function.java:149)
    3. org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:88)
    4. org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:103)
    5. org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
    6. org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:561)
    7. org.kohsuke.stapler.Stapler.invoke(Stapler.java:646)
    8. org.kohsuke.stapler.MetaClass$3.doDispatch(MetaClass.java:167)
    9. org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
    10. org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:561)
    11. org.kohsuke.stapler.Stapler.invoke(Stapler.java:646)
    12. org.kohsuke.stapler.Stapler.invoke(Stapler.java:477)
    13. org.kohsuke.stapler.Stapler.service(Stapler.java:159)
    13 frames
  6. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
    1 frame
  7. winstone
    RequestDispatcher.doFilter
    1. winstone.ServletConfiguration.execute(ServletConfiguration.java:249)
    2. winstone.RequestDispatcher.forward(RequestDispatcher.java:335)
    3. winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378)
    3 frames
  8. Hudson
    PluginServletFilter.doFilter
    1. hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94)
    2. hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86)
    2 frames
  9. winstone
    RequestDispatcher.doFilter
    1. winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
    2. winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
    2 frames
  10. Hudson
    CrumbFilter.doFilter
    1. hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
    1 frame
  11. winstone
    RequestDispatcher.doFilter
    1. winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
    2. winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
    2 frames
  12. Hudson
    HudsonFilter.doFilter
    1. hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
    2. hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
    3. hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
    3 frames
  13. winstone
    RequestDispatcher.doFilter
    1. winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
    2. winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
    2 frames
  14. Hudson
    CharacterEncodingFilter.doFilter
    1. hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
    1 frame
  15. winstone
    RequestHandlerThread.run
    1. winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
    2. winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
    3. winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
    4. winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244)
    5. winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
    5 frames
  16. Java RT
    Thread.run
    1. java.lang.Thread.run(Unknown Source)
    1 frame