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

StringIndexOutOfBoundsException in UnreliableSlaveDetection.getAddresses

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • linux centos 7

      Jenkins version is 2.42-1.1
      WARNING: Caught exception evaluating: descriptor.settings.addresses in /configure. Reason: java.lang.reflect.InvocationTargetException
      java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:497)
      at org.apache.commons.jexl.util.PropertyExecutor.execute(PropertyExecutor.java:125)
      at org.apache.commons.jexl.util.introspection.UberspectImpl$VelGetterImpl.invoke(UberspectImpl.java:314)
      at org.apache.commons.jexl.parser.ASTArrayAccess.evaluateExpr(ASTArrayAccess.java:185)
      at org.apache.commons.jexl.parser.ASTIdentifier.execute(ASTIdentifier.java:75)
      at org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:83)
      at org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:57)
      at org.apache.commons.jexl.parser.ASTReferenceExpression.value(ASTReferenceExpression.java:51)
      at org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:80)
      at hudson.ExpressionFactory2$JexlExpression.evaluate(ExpressionFactory2.java:74)
      at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:58)
      at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:99)
      at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91)
      at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
      at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
      at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
      at org.kohsuke.stapler.jelly.ReallyStaticTagLibrary$1.run(ReallyStaticTagLibrary.java:99)
      at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
      at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)

          [JENKINS-41601] StringIndexOutOfBoundsException in UnreliableSlaveDetection.getAddresses

          Oleg Nenashev added a comment -

          Seems the stacktrace is not complete. Could you provide the full one?

          Oleg Nenashev added a comment - Seems the stacktrace is not complete. Could you provide the full one?

          marlene cote added a comment -

          sorry about that. I have attached the complete trace.

          marlene cote added a comment - sorry about that. I have attached the complete trace.

          Oleg Nenashev added a comment -

          So, I suspect it is unrelated to the core. Will fix the issue title and the component

          Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
          	at java.lang.AbstractStringBuilder.deleteCharAt(AbstractStringBuilder.java:797)
          	at java.lang.StringBuilder.deleteCharAt(StringBuilder.java:253)
          	at org.jenkinsci.plugins.detection.unreliable.slave.UnreliableSlaveDetection.getAddresses(UnreliableSlaveDetection.java:69)
          	... 163 more
          

          Oleg Nenashev added a comment - So, I suspect it is unrelated to the core. Will fix the issue title and the component Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.AbstractStringBuilder.deleteCharAt(AbstractStringBuilder.java:797) at java.lang.StringBuilder.deleteCharAt(StringBuilder.java:253) at org.jenkinsci.plugins.detection.unreliable.slave.UnreliableSlaveDetection.getAddresses(UnreliableSlaveDetection.java:69) ... 163 more

          Oleg Nenashev added a comment -

          Oleg Nenashev added a comment - So this is https://github.com/lvotypko/unreliable-slave-plugin

          marlene cote added a comment -

          should I just uninstall that one?

          marlene cote added a comment - should I just uninstall that one?

          Oleg Nenashev added a comment -

          If you do not use it, then likely yes. Or you can contribute a fix to the plugin

          Oleg Nenashev added a comment - If you do not use it, then likely yes. Or you can contribute a fix to the plugin

            Unassigned Unassigned
            funeeldy marlene cote
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: