Saturday, January 7, 2012

"Unable to access the following endpoint(s)" behavior in SOA Suite 11g

In Oracle SOA Suite 11g, you may get an "Unable to access the following endpoint(s)" error, as shown in the figure below:



From the Oracle Enterprise Manager Fusion Middleware Control console, it is impossible to tell of the actual cause of this. It may be due to a timeout or it may be due to some other exception.

Any time you receive this error, you should review the soa_server1-diagnostic.log and soa_server1.out log files.

For example, it could be due to a timeout exception as shown:
<Dec 31, 2011 5:31:00 PM EST> <Error> <oracle.soa.mediator.service.common.functions> <BEA-000000> <Invalid argument for setting property[Property:'/soap:Header/wsa:ReplyTo/wsa:Address' , Value:'']>
SEVERE: WebServiceExternalBindingComponent.processOutboundMessage Unable to dispatch request to https://services.otir.thomsonreuters.com/Services.svc due to exceptionjavax.xml.ws.WebServiceException: javax.xml.soap.SOAPException: javax.xml.soap.SOAPException: Message send failed: Read timed out
        at oracle.j2ee.ws.client.jaxws.DispatchImpl.invoke(DispatchImpl.java:837)

Caused by: javax.xml.soap.SOAPException: javax.xml.soap.SOAPException: Message send failed: Read timed out
        at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.call2(HttpSOAPConnection.java:231)

Caused by: javax.xml.soap.SOAPException: Message send failed: Read timed out
        at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.post2(HttpSOAPConnection.java:520)

Caused by: java.net.SocketTimeoutException: Read timed out
        at jrockit.net.SocketNativeIO.readBytesPinned(Native Method)

SEVERE: WebServiceExternalBindingComponent.request Unable to dispatch request to https://services.otir.thomsonreuters.com/Services.svc due to exceptionoracle.fabric.common.FabricInvocationException: Unable to access the following endpoint(s): https://services.otir.thomsonreuters.com/Services.svc
        at oracle.integration.platform.blocks.soap.AbstractWebServiceBindingComponent.dispatchRequest(AbstractWebServiceBindingComponent.java:545
Or it could be due to some security certification path exception:
[2011-12-31T17:33:41.197-05:00] [soa_server1] [ERROR] [] [oracle.soa.mediator.serviceEngine] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: d0e97c2dcbf4ae82:4e01318d:1345f574b83:-8000-000000000004c3eb,0:2:1] [WEBSERVICE_PORT.name: execute_pt] [APP: soa-infra] [composite_name: OneSourcePassThrough] [component_name: MediatorPassthrough] [component_instance_id: 7976A04033FF11E1BFFBC36CDDB5E341] [J2EE_MODULE.name: fabric] [WEBSERVICE.name: MediatorPassthrough_ep] [J2EE_APP.name: soa-infra] [composite_instance_id: 7570719] [URI: /soa-infra/services/default/OneSourcePassThrough/MediatorPassthrough_ep] Got an exception: oracle.fabric.common.FabricInvocationException: Unable to access the following endpoint(s): https://services.otir.thomsonreuters.com/Services.svc[[
oracle.tip.mediator.infra.exception.MediatorException: ORAMED-03303:[Unexpected exception in case execution]Unexpected exception in request response operation "ValidateCredentials" on reference "OneSource". Possible Fix:Check whether the reference service is properly configured and running or look at exception for analyzing the reason or contact Oracle Support Services.
        at oracle.tip.mediator.service.SyncRequestResponseHandler.handleFault(SyncRequestResponseHandler.java:214)
        at oracle.tip.mediator.service.SyncRequestResponseHandler.process(SyncRequestResponseHandler.java:129)
        at oracle.tip.mediator.service.ActionProcessor.onMessage(ActionProcessor.java:64)

Caused by: oracle.fabric.common.FabricInvocationException: Unable to access the following endpoint(s): https://services.otir.thomsonreuters.com/Services.svc
        at oracle.integration.platform.blocks.soap.AbstractWebServiceBindingComponent.dispatchRequest(AbstractWebServiceBindingComponent.java:545)
        at oracle.integration.platform.blocks.soap.WebServiceExternalBindingComponent.processOutboundMessage(WebServiceExternalBindingComponent.java:207)

Caused by: javax.xml.ws.WebServiceException: javax.xml.soap.SOAPException: javax.xml.soap.SOAPException: Message send failed: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
        at oracle.j2ee.ws.client.jaxws.DispatchImpl.invoke(DispatchImpl.java:837)
        at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.synchronousInvocationWithRetry(OracleDispatchImpl.java:235)
        at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.invoke(OracleDispatchImpl.java:106)
The point is, the "Unable to access the following endpoint(s)" exception may be due to any number of reasons, and a review of the logs is needed to determine the root cause of it.

Good luck.


Applicable Versions:
  • Oracle SOA Suite 11g

Ahmed Aboulnaga

3 comments:

Anonymous said...

booooooo!

Anonymous said...

Its one of the lame things I have read recently. What a time waste....

DACM145 said...

You can try this:
While creating the WS adapter in Jdev, I have tried specifying the URL with the Ip address instead of server name. seems Jdev was not able to resolve the name of the server. Once I created composite with this and deployed the error got resolved.