Hi All,
I have a very strange problem with a message mapping on PI 7.4 in a single stack for a scenario IDOC->SOAP->IDOC using the BRIDGE Asynchronous to Synchronous.
In this mapping I did a lookup to a SOAP service on internet.
This service and the interface work fine on PI 7.4 but sometimes the service on internet could be unreachable (and this is normal).
The problem is that I am not able to reprocess the message in error (and this is not normal).
The following code make the lookup call:
try{
....
Channel channel = LookupService.getChannel(businessSystem, communicationChannel);
LookupService.getSystemAccessor(channel);
java.io.InputStream inputStream = new ByteArrayInputStream(rfcXML.getBytes());
LookupService.getXmlPayload(inputStream);
Payload result = null;
result = accessor.call(payload);java.io.InputStream in = result.getContent();
java.util.Scanner s = new java.util.Scanner(in).useDelimiter("\\A");
String resultXml = s.hasNext() ? s.next() : "";
in = new ByteArrayInputStream(resultXml.getBytes()); DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
Document document = builder.parse(in);
....
} catch (Exception e) {
trace.addWarning("Error:" + e.getMessage());
throw new RuntimeException("error:" + e.getMessage(), e);
}
This mapping is the first mapping of an IDOC -> SOAP -> IDOC scenario with the bridge asynchronous to synchronous.
When the service is not reachable I get this error from the log:

Mapping "urn:aptar.com:PI:etq/OP_ZVENETQ_MATMAS5_1_ETQModifyDocument_InbAsyn" failed to execute: MappingException: Mapping failed in runtimeRuntime Exception when executing application mapping program com/sap/xi/tf/_MM_ZMATETQ_MATMAS5_1_to_ETQModifyDocument_; Details: com.sap.aii.mappingtool.tf7.MessageMappingException; Runtime exception when processing target-field mapping /ns0:Messages//ns0:Messages/*etqvendorid; root message: Exception:[com.sap.aii.mapping.api.StreamTransformationException: error:Error when calling an adapter by using the communication channel SoapSyncDaoOperationsFinal2 (Party: , Service: ETQ_P, Object ID: 50677aae6f62326788770feafef37ce6) XI AF API call failed. Module exception: 'com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: Communication over HTTPS. Unable to create a socket'. Cause Exception: 'java.io.IOException: Communication over HTTPS. Unable to create a socket'.] in class aptar.com_PI_etq.ETQFMLIB method getETQMaterialId[10046304, ETQ_P, SoapSyncDaoOperationsFinal2, com.sap.aii.mappingtool.tf7.rt.Context@4cf3be97], ApplicationRuntimeException: Runtime Exception when executing application mapping program com/sap/xi/tf/_MM_ZMATETQ_MATMAS5_1_to_ETQModifyDocument_; Details: com.sap.aii.mappingtool.tf7.MessageMappingException; Runtime exception when processing target-field mapping /ns0:Messages//ns0:Messages/*etqvendorid; root message: Exception:[com.sap.aii.mapping.api.StreamTransformationException: error:Error when calling an adapter by using the communication channel SoapSyncDaoOperationsFinal2 (Party: , Service: ETQ_P, Object ID: 50677aae6f62326788770feafef37ce6) XI AF API call failed. Module exception: 'com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: Communication over HTTPS. Unable to create a socket'. Cause Exception: 'java.io.IOException: Communication over HTTPS. Unable to create a socket'.] in class aptar.com_PI_etq.ETQFMLIB method getETQMaterialId[10046304, ETQ_P, SoapSyncDaoOperationsFinal2, com.sap.aii.mappingtool.tf7.rt.Context@4cf3be97], MessageMappingException: Runtime exception when processing target-field mapping /ns0:Messages//ns0:Messages/*etqvendorid; root message: Exception:[com.sap.aii.mapping.api.StreamTransformationException: error:Error when calling an adapter by using the communication channel SoapSyncDaoOperationsFinal2 (Party: , Service: ETQ_P, Object ID: 50677aae6f62326788770feafef37ce6) XI AF API call failed. Module exception: 'com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: Communication over HTTPS. Unable to create a socket'. Cause Exception: 'java.io.IOException: Communication over HTTPS. Unable to create a socket'.] in class aptar.com_PI_etq.ETQFMLIB method getETQMaterialId[10046304, ETQ_P, SoapSyncDaoOperationsFinal2, com.sap.aii.mappingtool.tf7.rt.Context@4cf3be97], BaseRuntimeException: Exception:[com.sap.aii.mapping.api.StreamTransformationException: error:Error when calling an adapter by using the communication channel SoapSyncDaoOperationsFinal2 (Party: , Service: ETQ_P, Object ID: 50677aae6f62326788770feafef37ce6) XI AF API call failed. Module exception: 'com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: Communication over HTTPS. Unable to create a socket'. Cause Exception: 'java.io.IOException: Communication over HTTPS. Unable to create a socket'.] in class aptar.com_PI_etq.ETQFMLIB method getETQMaterialId[10046304, ETQ_P, SoapSyncDaoOperationsFinal2, com.sap.aii.mappingtool.tf7.rt.Context@4cf3be97], java.lang.reflect.InvocationTargetException, StreamTransformationException: error:Error when calling an adapter by using the communication channel SoapSyncDaoOperationsFinal2 (Party: , Service: ETQ_P, Object ID: 50677aae6f62326788770feafef37ce6) XI AF API call failed. Module exception: 'com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: Communication over HTTPS. Unable to create a socket'. Cause Exception: 'java.io.IOException: Communication over HTTPS. Unable to create a socket'., LookupException: Error when calling an adapter by using the communication channel SoapSyncDaoOperationsFinal2 (Party: , Service: ETQ_P, Object ID: 50677aae6f62326788770feafef37ce6) XI AF API call failed. Module exception: 'com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: Communication over HTTPS. Unable to create a socket'. Cause Exception: 'java.io.IOException: Communication over HTTPS. Unable to create a socket'., AFException: XI AF API call failed. Module exception: 'com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: Communication over HTTPS. Unable to create a socket'. Cause Exception: 'java.io.IOException: Communication over HTTPS. Unable to create a socket'., AFException: XI AF API call failed. Module exception: 'com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: Communication over HTTPS. Unable to create a socket'. Cause Exception: 'java.io.IOException: Communication over HTTPS. Unable to create a socket'., MessagingException: java.io.IOException: Communication over HTTPS. Unable to create a socket
after this error if I try to reprocess the messages I get the following error:

the message stand in "System error" and the mapping is not reprocessed.
I have this situation only in production system.
I was not able to replicate the problem in dev system.
Can you suggest some way for investigate?
My goal is to be able reprocessing the System Error status messages.
Thank you for any suggestion
Domenico