cancel
Showing results for 
Search instead for 
Did you mean: 

Proxy: Error code 401

Former Member
0 Kudos

Hi,

In my file to proxy(XI adapter), i am getting the following error:

"<i>HTTP response contains status code 401 with the

description User not authorized for message

processing</i>"

The user that i am using on the xi adapter has the role "SAP_XI_APPL_SERV_USER" added.

Is there something that i am missing

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Thank you all for the feedback. The problem was with the Authorization. The correct roles were assigned but, they were not active in the Business System

Former Member
0 Kudos

Hi Danny Molepo

error code 401stands for Unauthorized

This code is used when access to a resource is protected and the client did not provide valid authentication credentials. Often the 401 response includes information that causes the user agent to prompt the user for a username and password.

for more details on error code follow the link

http://www.web-cache.com/Writings/http-status-codes.html

Check whether you have given the right credentials. If you are very sure that you have given right credentials then your problem will be solved by restarting J2EE engine

steps to restart J2EE engine

1) run transaction SMICM

2) then in the tab administration => J2EE instance(local) =>send soft shutdown with restart

by this java engine will restart and will be up in 5-10 minutes and your problem will be solved

Thanks

sandeep sharma

PS ; if helpful kindly reward points

Message was edited by:

sandeep sharma

Former Member
0 Kudos

Hi Danny,

Look in this Link for all HTTP errors,

/people/krishna.moorthyp/blog/2006/07/23/http-errors-in-xi

**Reward if helpfull**

prateek
Active Contributor
0 Kudos

Check if ur PIAFUSER and PIISUSER are locked.

Also please brief whr exactly u r gettin this error and how much of the scenario is successful

Regards,

Prateek

Former Member
0 Kudos

The message fails on a step where it calls the XI adapter. Here is the message from the pipeline:

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>

- <!-- Call Adapter

-->

- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">

<SAP:Category>XIServer</SAP:Category>

<SAP:Code area="INTERNAL">HTTP_RESP_STATUS_CODE_NOT_OK</SAP:Code>

<SAP:P1>401</SAP:P1>

<SAP:P2>User not authorized for message processing</SAP:P2>

<SAP:P3 />

<SAP:P4 />

<SAP:AdditionalText><html><body><H1>SAP Integration Engine</H1><BR />User not authorized for message processing.<BR /></body></html></SAP:AdditionalText>

<SAP:ApplicationFaultMessage namespace="" />

<SAP:Stack>HTTP response contains status code 401 with the description User not authorized for message processing Authorization error when sending using HTTP (error code: 401, error text: User not authorized for message processing)</SAP:Stack>

<SAP:Retry>M</SAP:Retry>

</SAP:Error>

Former Member
0 Kudos

In SU01, how do i confirm if a user is locked on or not?

prateek
Active Contributor
0 Kudos

In su01, select the username and click on the lock icon. It wil display if it locked or not

Regards,

Prateek

Former Member
0 Kudos

Both the Users are not locked

prateek
Active Contributor
0 Kudos

Please providde ur XI adapter configurations. I think there is some problem with that. e.g. Port

Regards,

Prateek

Former Member
0 Kudos

Adapter Details:

SAP system is 6.20

Transport Protocol: HTTP 1.0

Message Protocol: XI 2.0

Addresing type: URL Address

TargetHost: XYZ

Port: 8000

Path: /sap/xi/engine?type=receiver

Any ideas?

VijayKonam
Active Contributor
0 Kudos

Are u on XI 3.0 or 2.0? Change the Messgae protocol to 3.0 if you or in Xi 3.0 or higher.. Also url ?type=entry

VJ

Message was edited by:

VJ

prateek
Active Contributor
0 Kudos

The configurations looks correct. Just check the ABAP port 8000 again in smicm - menu goto - services.

Also u may try this, instead of using Addresing type: URL Address, use HTTP Destination. Go to sm59, create a new http destination and there Use the following path prefixes in the Target System Settings.

/sap/xi/engine?type=receiver

Regards,

Prateek

Former Member
0 Kudos

I have created an RFC destination of type "H", with path prefix: /sap/xi/engine?type=receiver.

When i try to test the connection, i get another login screen. After a few tries, i get the following error:

html><body><H1>SAP Integration Engine</H1><BR />User not authorized for

message processing.<BR /></body></html>

Any ideas

Former Member
0 Kudos

HI,

Make sure your business system is set up as follows:

1. Transaction SXMB_ADM

- Role of System: Application System

- Corresponding Integration Server: dest://<your_sm59_http_destination>

2. Ensure that the RFC destinations LCRSAPRFC and SAPSLDAPI are maintained and working (see the Configuration Guide, chapter 5.3)

3. Run SLDCHECK to verify that the connection to the System Landscape Directory works.

4. Check that the Integration Repository is running and data is maintained there.

thnx

Chirag Gohil