Java.net.ProtocolException: Missing WWW-Authenticate header in a two-way SSL RESTful web service that does not require authentication (Doc ID 1587955.1)

Last updated on OCTOBER 28, 2016

Applies to:

Oracle SOA Suite - Version 11.1.1.7.0 and later
Information in this document applies to any platform.

Symptoms


When attempting to call a two-way SSL REST-ful web service using HTTP Binding,
the following error occurs.

[2013-09-26T10:38:33.557-07:00] [soa_server1] [WARNING] [] [oracle.integration.platform.blocks.soap] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: 947e15883c16bc3a:-4223c808:141524e818f:-8000-000000000000c7d9,1:27853] [APP: soa-infra] [composite_instance_id: 50001] [composite_name: name] [component_name: name] Unable to invoke endpoint URI "https://.../financial/v1/testservice.xml" successfully due to: Unable to invoke endpoint URI "https://.../financial/v1/testservice.xml" successfully due to: java.net.ProtocolException: Missing WWW-Authenticate header.
[2013-09-26T10:38:33.565-07:00] [soa_server1] [ERROR] [] [oracle.soa.bpel.engine.ws] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: 947e15883c16bc3a:-4223c808:141524e818f:-8000-000000000000c7d9,1:27853] [APP: soa-infra] [composite_instance_id: 50001] [component_instance_id: 50001] [composite_name: name] [component_name: name] got FabricInvocationException[[
java.net.ProtocolException: Missing WWW-Authenticate header.
at HTTPClient.AuthorizationModule.handle_auth_challenge(AuthorizationModule.java:468)
at HTTPClient.AuthorizationModule.responsePhase2Handler(AuthorizationModule.java:366)
at HTTPClient.HTTPResponse.handleResponseImpl(HTTPResponse.java:885)
at HTTPClient.HTTPResponse.access$000(HTTPResponse.java:62)
at HTTPClient.HTTPResponse$2.run(HTTPResponse.java:839)
at HTTPClient.HTTPResponse$2.run(HTTPResponse.java:837)
at HTTPClient.HttpClientConfiguration.doAction(HttpClientConfiguration.java:708)
at HTTPClient.HTTPResponse.handleResponse(HTTPResponse.java:837)
at HTTPClient.HTTPResponse.getStatusCode(HTTPResponse.java:242)

Please note that the web service does not require authentication (username/password) just the SSL certificates therefore the "java.net.ProtocolException: Missing WWW-Authenticate header" error doesn't make sense.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms