cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP_RESP_STATUS_CODE_NOT_OK - 401 Unauthorized

Former Member
0 Kudos

Hi,

We are working on MQ-XI-BW Scenario. A message posted on MQSeries was taken to Integration Server with an error stating that HTTP_RESP_STATUS_CODE_NOT_OK - Authorization Required .

The error stack with trace level 3 is

- <Trace level="1" type="B" name="CL_XMS_PLSRV_IE_ADAPTER-ENTER_PLSRV">

<Trace level="3" type="T">Channel for adapter engine: RFC</Trace>

- <Trace level="1" type="B" name="CL_XMS_PLSRV_CALL_XMB-CALL_XMS_HTTP">

<Trace level="2" type="T">return fresh values from cache</Trace>

<Trace level="2" type="T">Get logon data for adapter engine (SAI_AE_DETAILS_GET): af.mtx.bwxi</Trace>

<Trace level="3" type="T">URL = http://bwxi:8200/MessagingSystem/receive/AFW/XI</Trace>;

<Trace level="3" type="T">User = XIISUSER</Trace>

<Trace level="3" type="T">Cached = X</Trace>

<Trace level="3" type="T">Creating HTTP-client</Trace>

<Trace level="3" type="T">HTTP-client: creation finished</Trace>

<Trace level="3" type="T">Security: Basic authentication</Trace>

<Trace level="3" type="T">Serializing message object...</Trace>

<Trace level="3" type="T">HTTP-client: sending http-request...</Trace>

<Trace level="3" type="T">HTTP-client: request sent</Trace>

<Trace level="3" type="T">HTTP-client: Receiving http-response...</Trace>

<Trace level="3" type="T">HTTP-client: response received</Trace>

<Trace level="3" type="T">HTTP-client: checking status code...</Trace>

<Trace level="3" type="T">HTTP-client: status code = 401</Trace>

<Trace level="3" type="System_Error">HTTP-client: error response=</Trace>

<Trace level="3" type="T">HTTP-client: closing...</Trace>

</Trace>

</Trace>

</Trace>

- <Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_LOG_TO_PERSIST">

<Trace level="3" type="T">No persisting of message after plsrv call, because of config</Trace>

</Trace>

<Trace level="3" type="System_Error">Error exception return from pipeline processing!</Trace>

<Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_TO_PERSIST" />

- <!-- ************************************

-->

<Trace level="3" type="T">Persisting message Status = 014</Trace>

<Trace level="3" type="T">Message version 010</Trace>

<Trace level="3" type="T">Pipeline CENTRAL</Trace>

</SAP:Trace>

We are not able to rectify the error.we checked the user name in SM59.It is XIISUSER. what could be the reason for the incorrect messages in SXMB_MONI?

Regards

Sathya

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

SM59 > Create Connection type H and give proxy engine details.

ABAPPROXY_<SID>_500

connection type H.

Maintain these entries in SXMB_ADM >Configuration>integration engine configration.

edit>change Global configuration data

Role of Business System: Apllication System

Corresponding Integration Server: dest://ABAPPROXY_<SID>_500

This solved my issue.

Thanks and Regards

Suresh Bollina

Message was edited by:

Suresh Bollina

Former Member
0 Kudos

Hi Priya,

Please check the J2EE Port and also Roles assigned to the XIISUSER

For more`

Also, please take a look at

Hope this helps you!

cheers,

Prashanth

Former Member
0 Kudos

Hi,

There are number of reasons for this error.

Please can you look at this thread

Regards

Vijaya

Former Member
0 Kudos

Hi Sathya Priya,

Did you check in SM59->Http Connections to R/3 Systems->Check the HTTP Destination Used in the Receiver XI Adapter->open this and check for the service no.

I think you are right on the Service No. But Path Prefix is wrong I think- just check like this for the receiver -

/sap/xi/engine/?type=receiver

Also go through this thread:

Regards,

Suraj Kumar

Former Member
0 Kudos

Hi,

i am not able to give the path prefix as /sap/xi/engine/?type=receiver in SM59. it is giving as query string not allowed. Then i checked the roles of XIISUSER. there are two roles SAP_XI_IS_SERV_USER AND SAP_XI_IS_SERV_USER_Main. Do i need to ass some more roles?

REgards

Former Member
0 Kudos

Hi Sathya,

check if the user XIISUSER is not locked.in transaction SU01 you can check this.

regards,

Yomesh

Former Member
0 Kudos

Hi,

XIISUSER is not locked.

The port number has to be 50000 or 8200 for the MDT

http://hostname:8200/MessagingSystem/receive/AFW/XI

If i needs to be 50000, where can i change the port number?

Former Member
0 Kudos

Hi ppl,

port number in the URL specified in the error stack should be 8200 or 50000? how and where can i change the port? please help us out.

Regards

Former Member
0 Kudos

For MDT you need to give the J2ee port number.The port which you use for opening the Integration builder is the same as j2ee http port.

Former Member
0 Kudos

There yomesh, now i need to change the port number to 50000. where can i change?

former_member206604
Active Contributor
0 Kudos

Hi,

Go to the transcation <b>sifc</b> and maintain an External Aliases to the Interation server

eg : /sap/xi/engine

. Try this and let me know.

Thanks,

Prakash