cancel
Showing results for 
Search instead for 
Did you mean: 

Scheme missing error for HTTP receiver channel in SAP CPI

Subhadeep
Explorer
0 Kudos

Hello Experts,

I am facing a weird error in a Receiver HTTP channel. The Interface is a SOAP to HTTP scenario. JSON file is being sent to the HTTP receiver. The content is fine and every validation is working. We can see that we are facing an error in the HTTP receiver.

Error: org.apache.camel.CamelExchangeException: Error creating URL. Exchange[ID-33d42603-5dc6-4c2c-5a7d-982a-1675925619958-159-1]. Caused by: [java.lang.IllegalArgumentException - /cxf/SolmanToJira/CI_Qas/InsertMessage could not be parsed into a proper Uri, missing scheme], cause: java.lang.IllegalArgumentException: /cxf/SolmanToJira/CI_Qas/InsertMessage could not be parsed into a proper Uri, missing scheme.

The same payload and same Endpoint URL seems working when I trigger the payload with a timer but is failing in the E2E scenario.

Please find the step where it fails:

Please suggest.

Regards,

Subhadeep

Accepted Solutions (1)

Accepted Solutions (1)

asutoshmaharana2326
Active Participant
0 Kudos

Dear Subhadeep,

It seems like somehow "CamelHttpUri" header is coming into the runtime after the soap channel, Kindly check the Runtime Configuration tab and Allowed Header(s) section if * is mentioned then kindly review that and only allow appropriate headers only.

Or else you can delete "CamelHttpUri" header using a Content Modifier before the end and HTTP receiver adapter.

Thanks,

Asu 🙂

Answers (1)

Answers (1)

Subhadeep
Explorer
0 Kudos

Thank you dear Asutosh.

It has worked by clearing the headers as you have suggested. Much appreciated.

Regards,

Subhadeep