go.agent.service.SslInfrastructureService: 104 - [Agent Registration] There was a problem registering with the go server. *java.lang.StringIndexOutOfBoundsException: String index out of range: -4*

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Google Groups by Jeff, 11 months ago
104 - [Agent Registration] There was a problem registering with the go server. *java.lang.StringIndexOutOfBoundsException: String index out of range: -4*
go.agent.service.SslInfrastructureService: 104 - [Agent Registration] There was a problem registering with the go server. *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.io.pem.PemReader.loadObject(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.scheduling.support.MethodInvokingRunnable.run(MethodInvokingRunnable.java:65)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.