Monitoring Studio X: HTTP Proxy Authentication Fails When Using Java 8 Update 111 or Later

Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required" when using Monitoring Studio X.

Related Topics

Problem

When using an HTTP Proxy server for authenticating your Web requests, the basic authentication may fail with the following exception:

HTTP Proxy Authentication Fails When Using Java 8 Update 111 or Later

This exception occurs because proxies requiring Basic authentication when setting up a tunnel for HTTPS no longer succeeds by default starting from Java 8 Update 111.

Solution

To solve this issue, you need to reactivate the authentication scheme by removing Basic from the jdk.http.auth.tunneling.disabledSchemes networking property, or by setting a system property of the same name to "" ( empty ).

To reactivate the authentication scheme from Monitoring Studio X:

  1. Log in to the Monitoring Studio X Web Interface
  2. Go to Agent > Java Settings
  3. In the JVM Arguments field, enter:
-Djdk.http.auth.tunneling.disabledSchemes=""

Reactivating the authentication scheme from Monitoring Studio X