SAP Knowledge Base Article - Preview

3154508 - Receiver REST adapter call fails with java.lang.RuntimeException: java.net.MalformedURLException: no protocol: ../login?return_url=

Symptom

Message processing fails with below error in REST receiver adapter while calling endpoint:

com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.lang.RuntimeException: java.net.MalformedURLException: no protocol: ../login?return_url=<path_of_endpoint_url>

Message processing failed. Cause: java.lang.RuntimeException: java.net.MalformedURLException: no protocol: ../login?return_url=<path_of_endpoint_url>
Error while processing outbound message. java.net.MalformedURLException: no protocol: ../login?return_url=<path_of_endpoint_url>: no protocol: ../login?return_url=<path_of_endpoint_url>

The following HTTP communication can be seen in the XPI Inspector with HTTP Traces:

Open connection to <hostname>:<port>

HTTP_CLIENT : XXXX REQUEST: 

POST <path_of_endpoint_url> HTTP/1.1..Content-Type: application/json..User-Agent: SAP HttpClient vHost: <hostname>:<port>..Content-Length: 506....

HTTP_CLIENT : XXXX REPLY: 

HTTP/1.1 302 Unauthorized..Cache-Control: no-cache..Pragma: no-cache..Content-Length: 0..Expires: -1..Location: ../login?return_url=<path_of_endpoint_url>..Server: Microsoft-HTTPAPI/2.0..X-Content-Type-Options: nosniff..X-XSS-Protection: 1; mode=block..X-Frame-Options


Read more...

Environment

Above issue might be experienced on:

  • a newly implemented integration on a SAP Process Integration 7.50 SP17 or higher system,
  • an already well working scenario started to fail with this error after upgrading to SAP Process Integration 7.50 SP17 or higher system versions. 

Product

SAP NetWeaver 7.4

Keywords

REST Adapter, Rest receiver, preemptive authentication, useAuthPreemptive, Authentication Preemptive, MalformedURLException: no protocol: ../login?return_url=
, KBA , BC-XI-CON-RST , Rest Adapter , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.