My Oracle Support Banner

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 NOVEMBER 15, 2023

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.

Another potential error is:

javax.ws.rs.ProcessingException: java.io.IOException: A connection with a remote socket was reset by that socket.
at org.glassfish.jersey.client.internal.HttpUrlConnector.apply(HttpUrlConnector.java:287)
at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:255)
at org.glassfish.jersey.client.JerseyInvocation$2.call(JerseyInvocation.java:700)
at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
at org.glassfish.jersey.internal.Errors.process(Errors.java:228)
at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:444)
at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:696)
at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:420)
at oracle.integration.platform.blocks.rest.bc.reference.RestResource.request(RestResource.java:116)
at oracle.integration.platform.blocks.rest.bc.reference.RestReference.request(RestReference.java:298)
... 84 more
Caused by: java.io.IOException: A connection with a remote socket was reset by that socket.
at sun.nio.ch.FileDispatcherImpl.readv0(Native Method)
at sun.nio.ch.SocketDispatcher.readv(SocketDispatcher.java:55)
at sun.nio.ch.IOUtil.read(IOUtil.java:290)
at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:454)
at weblogic.socket.NIOInputStream.readInternal(NIOInputStream.java:168)
at weblogic.socket.NIOInputStream.read(NIOInputStream.java:110)
at weblogic.socket.NIOInputStream.read(NIOInputStream.java:73)
at com.ibm.jsse2.a.a(a.java:79)
at com.ibm.jsse2.a.a(a.java:182)
at com.ibm.jsse2.as.a(as.java:883)
at com.ibm.jsse2.as.i(as.java:969)
at com.ibm.jsse2.as.a(as.java:680)
at com.ibm.jsse2.as.startHandshake(as.java:859)
at weblogic.net.http.HttpsClient.New(HttpsClient.java:566)
at weblogic.net.http.HttpsURLConnection.getHttpClient(HttpsURLConnection.java:332)

 

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.