Agent is unable to register when using a Proxy

Relevant Version

All versions

Issue

When trying to register an Agent on your Server while connecting through a Proxy the registration services errors out and with the following error message.
Error registering service s.acp: Service is not connected

When connecting directly, without proxy the Agent registers and the service connects.

Resolution

Validate which Java version you are running on your Server.

If you are running Java Version 1.8.0_111 (8u111) or higher either:

  • Remove Basic from the jdk.http.auth.tunneling.disabledSchemes networking property
  • Set a system property of the same name to “” (empty)

Cause

Note : In Java Version 1.8.0_111 Basic authentication for HTTPS tunneling has been disabled.

https://www.java.com/en/download/faq/release_changes.xml

In some environments, certain authentication schemes may be undesirable when proxying HTTPS. In these cases the Basic authentication scheme is deactivated by default, in the Oracle Java Runtime, by adding Basic authentication to the jdk.http.auth.tunneling.disabledSchemes networking property. Proxies requiring Basic authentication when setting up a tunnel for HTTPS will not succeed.If required, this authentication scheme can be reactivated by removing Basic from the jdk.http.auth.tunneling.disabledSchemes networking property, or by setting a system property of the same name to “” (empty) on the command line. Additionally, the jdk.http.auth.tunneling.disabledSchemes and jdk.http.auth.proxying.disabledSchemes
networking properties, and system properties of the same name, can be used to disable other authentication schemes that may be active when setting up a tunnel for HTTPS, or proxying plain HTTP, respectively. JDK-8160838