thoughtworks.go.agent.AgentController

192 - [Agent Loop] Error occurred during loop:* *java.lang.StringIndexOutOfBoundsException: String index out of range: -4*

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web2

  • 192 - [Agent Loop] Error occurred during loop:* *java.lang.StringIndexOutOfBoundsException: String index out of range: -4*
  • Stack trace

    • thoughtworks.go.agent.AgentController: 192 - [Agent Loop] Error occurred during loop:* *java.lang.StringIndexOutOfBoundsException: String index out of range: -4* at java.lang.String.charAt(String.java:658) at org.bouncycastle.util.encoders.Base64Encoder.decode(Unknown Source) at org.bouncycastle.util.encoders.Base64.decode(Unknown Source) at org.bouncycastle.util.io.pem.PemReader.loadObject(Unknown Source) at org.bouncycastle.util.io.pem.PemReader.readPemObject(Unknown Source) at com.thoughtworks.go.security.Registration.fromJson(Registration.java:43) at com.thoughtworks.go.agent.service.SslInfrastructureService$RemoteRegistrationRequester.readResponse(SslInfrastructureService.java:186) at com.thoughtworks.go.agent.service.SslInfrastructureService$RemoteRegistrationRequester.requestRegistration(SslInfrastructureService.java:178) at com.thoughtworks.go.agent.service.SslInfrastructureService.register(SslInfrastructureService.java:102) at com.thoughtworks.go.agent.service.SslInfrastructureService.registerIfNecessary(SslInfrastructureService.java:86) at com.thoughtworks.go.agent.AgentController.rpcLoop(AgentController.java:181) at com.thoughtworks.go.agent.AgentController.loop(AgentController.java:173) 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:498) at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:273) at org.springframework.scheduling.support.MethodInvokingRunnable.run(MethodInvokingRunnable.java:65) at org.springframework.scheduling.timer.DelegatingTimerTask.run(DelegatingTimerTask.java:70) at java.util.TimerThread.mainLoop(Timer.java:555) at java.util.TimerThread.run(Timer.java:505)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.