cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

There is no RestTemplate supported for given consumed destination

martin_pop
Newcomer
0 Kudos
702

Hi Experts,

I followed Tutorial: Outbound Sync to SCPI Integration Flow (https://help.sap.com/viewer/50c996852b32456c96d3161a95544cdb/1905/en-US/45c632aa498c42e4a93699b7a6d6... ) step by step.

As soon as I run Outbound Sync Scheduling Cronjob from Integration UI Tool for the Outbound Sync Channel, following exception is raised:

ERROR [Thread-106] [ErrorHandler] unexpected exception caught

org.springframework.messaging.MessageHandlingException: nested exception is de.hybris.platform.outboundservices.client.impl.UnsupportedRestTemplateException: There is no RestTemplate supported for given consumed destination.

Does anybody know how to solve it?

I am running the tutorial on SAP Commerce 1905

Thank you!

Martin

Accepted Solutions (0)

Answers (1)

Answers (1)

nielshorn
Member
0 Kudos

When you are looking into the create() methode you will find the following part.

final IntegrationRestTemplateCreator creator = getRestTemplateCreators().stream()
      .filter(s -> s.isApplicable(destination)).findFirst()
      .orElseThrow(UnsupportedRestTemplateException::new);

so there is this 'isApplicable' check. This check looks either in the BasicRestTemplateCreator or in the oAuth2RestTemplateCreator. By the BasicRestTemplateCreator you will find

public boolean isApplicable(final ConsumedDestinationModel destination)
{
   return destination.getCredential() instanceof BasicCredentialModel;
}

So there is a check if there are credentials at the ConsumedDestinationModel.