Error Message
When trying to send a message with dynamic discovery, the following error message appears: “UserCredential for Proxy Authentication is missing”. eu.europa.ec.dynamicdiscovery.exception.ConnectionException: UserCredential for Proxy Authentication is missing. eu.europa.ec.dynamicdiscovery.core.security.impl.DefaultProxy.<init>(DefaultProxy.java:49) eu.domibus.common.services.impl.DynamicDiscoveryServiceOASIS.getConfiguredProxy(DynamicDiscoveryServiceOASIS.java:142) eu.domibus.common.services.impl.DynamicDiscoveryServiceOASIS.createDynamicDiscoveryClient(DynamicDiscoveryServiceOASIS.java:95)
Cause
When trying to send a message with dynamic discovery, you can use a proxy without user authentication for outgoing request (if it was configured).
Workaround/Fix
In the PMode, the values of the username and password fields must be set to null as shown below, they must not be empty:
<prop key="domibus.proxy.enabled">true</prop>
<prop key="domibus.proxy.http.host">proxy-host</prop>
<prop key="domibus.proxy.http.port">8080</prop>
<prop key="domibus.proxy.user">null</prop>
<prop key="domibus.proxy.password">null</prop>
<prop key="domibus.proxy.nonProxyHosts">localhost</prop>