cancel
Showing results for 
Search instead for 
Did you mean: 

SAP CPI to S/4 HANA webservice call - Unexpected character 'j' error

0 Kudos

Hi All,

I am getting below error when I am making an Webservice call to S/4 HANA (on-premise) system . The webservice calls were working fine till last Friday .

I had got an update saying that SAP will be supporting CPI on Apache Karaf runtime from the beginning of 2019 .

I am not sure whether this issue is due to Apache Karaf runtime .

Any suggestions or pointers regarding this please .

Error Details are as below . I verified my payload and everything seems to be fine(the same payload was working fine till last Thursday) . Same error is being thrown for different webservice calls I am making to S/4 HANA .

org.apache.cxf.binding.soap.SoapFault: Error reading XMLStreamReader: Unexpected character 'j' (code 106) in prolog; expected '<' at [row,col {unknown-source}]: [1,1], cause: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'j' (code 106) in prolog; expected '<' at [row,col {unknown-source}]: [1,1]

Regards

Vinay

NareshDasika18
Participant
0 Kudos

Hello Vinay,

Since it is a web service call from Middleware, you may try posting the payload from any other web client's (Postman/SOAP UI etc) to see If the Issue is with CPI or with target application server.

Regards,

Naresh Dasika

0 Kudos

Hi Naresh,

Thanks for your inputs. It did help in debugging.

Regards

Vinay

Accepted Solutions (1)

Accepted Solutions (1)

Sriprasadsbhat
Active Contributor
0 Kudos

Hello Vinay,

Have a look at below KBA it might help you.I think you are not getting any response from S4Hana because of this messages are getting errored out in CPI. Please check once in your S4H OnPrem

https://launchpad.support.sap.com/#/notes/0002396377

Regards,

Sriprasad Shivaram Bhat

Hi Sriprasad,

Thanks for sharing the SAP note . Issue is resolved now . The error was indeed due to no response being returned from S4 HANA system.

Issue : CPI was connecting to S4 HANA backend system via cloud connector . Connection between Cloud Connector and S4 HANA back end was in error status due to certificate issues . Issue has been fixed now.

Answers (1)

Answers (1)

former_member194481
Participant
0 Kudos

Hi Vinay,

It seems to me like a payload issue , and as you mentioned whether your runtime is in karaf or equinox we can check via the CPI version if it is with 2.4X.X the it is older equinox version only not the karaf.

Thanks and Regards,

Vijay.