java.lang.StringIndexOutOfBoundsException: String index out of range: -4

GitHub | tomzo | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 2464#244779458

    GitHub | 9 months ago | tomzo
    java.lang.StringIndexOutOfBoundsException: String index out of range: -4
  2. 0

    Agent can't register with server: String index out of range: -4

    Google Groups | 6 months ago | Moritz Lenz
    java.lang.StringIndexOutOfBoundsException: String index out of range: -4
  3. 0

    Lost contact: There was a problem registering with the go server, String index out of range: -4

    Google Groups | 8 months ago | Unknown author
    java.lang.StringIndexOutOfBoundsException: String index out of range: -4
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Pending agent shows a misleading stack trace

    GitHub | 10 months ago | arvindsv
    java.lang.StringIndexOutOfBoundsException: String index out of range: -4
  6. 0

    Enable agent debug log

    Google Groups | 10 months ago | Gerd Katzenbeisser
    java.lang.StringIndexOutOfBoundsException: String index out of range: -4
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.StringIndexOutOfBoundsException

    String index out of range: -4

    at java.lang.String.charAt()
  2. Java RT
    String.charAt
    1. java.lang.String.charAt(String.java:658)
    1 frame
  3. BouncyCastle
    Base64.decode
    1. org.bouncycastle.util.encoders.Base64Encoder.decode(Unknown Source)
    2. org.bouncycastle.util.encoders.Base64.decode(Unknown Source)
    2 frames
  4. Bouncy Castle Provider
    PemReader.readPemObject
    1. org.bouncycastle.util.io.pem.PemReader.loadObject(Unknown Source)
    2. org.bouncycastle.util.io.pem.PemReader.readPemObject(Unknown Source)
    2 frames
  5. com.thoughtworks.go
    AgentController.loop
    1. com.thoughtworks.go.security.Registration.fromJson(Registration.java:43)
    2. com.thoughtworks.go.agent.service.SslInfrastructureService$RemoteRegistrationRequester.readResponse(SslInfrastructureService.java:186)
    3. com.thoughtworks.go.agent.service.SslInfrastructureService$RemoteRegistrationRequester.requestRegistration(SslInfrastructureService.java:178)
    4. com.thoughtworks.go.agent.service.SslInfrastructureService.register(SslInfrastructureService.java:102)
    5. com.thoughtworks.go.agent.service.SslInfrastructureService.registerIfNecessary(SslInfrastructureService.java:86)
    6. com.thoughtworks.go.agent.AgentController.rpcLoop(AgentController.java:181)
    7. com.thoughtworks.go.agent.AgentController.loop(AgentController.java:173)
    7 frames
  6. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    3. java.lang.reflect.Method.invoke(Method.java:606)
    3 frames
  7. Spring Core
    MethodInvoker.invoke
    1. org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:273)
    1 frame
  8. Spring Context
    DelegatingTimerTask.run
    1. org.springframework.scheduling.support.MethodInvokingRunnable.run(MethodInvokingRunnable.java:65)
    2. org.springframework.scheduling.timer.DelegatingTimerTask.run(DelegatingTimerTask.java:70)
    2 frames
  9. Java RT
    TimerThread.run
    1. java.util.TimerThread.mainLoop(Timer.java:555)
    2. java.util.TimerThread.run(Timer.java:505)
    2 frames