cancel
Showing results for 
Search instead for 
Did you mean: 

http: error 401

Former Member
0 Kudos

Hello ,

I am having HTTP to RFC scenario.......In which i am sending XML file to PI...but i am getting error as 401 i.e. unauthorized for some of the XML files......i have assigned proper roles and authentication.


Regards,

sagar gujar

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Sagar,

As if suggetsed by Mark above, please change the below parameters in NWA;

ume.r3.connection.master.poolmaxsize

ume.r3.connection.master.poolmaxwait

By changing these parameters, you may not get the HTTP 401 error.

Hope this helps.

Regards,

Amit Patil

markangelo_dihiansan
Active Contributor
0 Kudos

Hi Sagar,

Please check this blog under section 2.2.2 HTTP 401 - Authentication Failure


Potential cause for the error:

Calling the AF may result in HTTP 401 during high load; this is caused by too few connections to the

ABAP user management or a timeout waiting for a new connection.

In the standard J2EE installation the User Management Engine (UME) is configured to use the user

database from ABAP-backend.

UME has a connection pool wrapper which takes connections from the JCo pool for the backend

communication. During creation of a session within the J2EE engine this user is verified directly in the

ABAP-database.

The connection pool for these verification calls to the ABAP-side is controlled with J2EE properties in

the J2EE service 'UME Provider‘. The problem here is that this connection pool gets exhausted - its

default for max number of 10 connections gets reached, and there are no more connections for the

other application threads.

The solution is already provided on the document.

Hope this helps,

Mark

Former Member
0 Kudos

Hi Mark,

where did i get,

ume.r3.connection.master.poolmaxsize

ume.r3.connection.master.poolmaxwait


regards,

sagar

Former Member
0 Kudos

Hi Sagar,

        Please check whether the user being used is assigned one of the following roles SAP_XI_IS_SERV_USER, SAP_XI_APPL_SERV_USER,

SAP_XI_DEVELOPER_J2EE, SAP_XI_ADMINISTRATOR_J2EE. Assigning any one of these roles to the user provides necessary permissions for the user to access.

- Muru

former_member184720
Active Contributor
0 Kudos

Hi Sagar - Did you check if you provided valid credentials.

Also check the thread

http://scn.sap.com/thread/1703904