cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

java.io.IOException: Server returned HTTP response code: 401 for URL

Former Member
0 Likes
12,645

Hi,

Third part is getting the below error when invoking the webservice in XI

at java.lang.Thread.run(Thread.java:662)

Caused by: java.io.IOException: Server returned HTTP response code: 401 for URL <URL LINK>

at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)

at java.net.URL.openStream(URL.java:1010)

at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.createReader(RuntimeWSDLParser.java:804)

at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.resolveWSDL(RuntimeWSDLParser.java:262)

at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:129)

This is not because of the invalid credentials. It was working before one month. Please suggest.

Thanks and Regards

Suma S

View Entire Topic
Former Member
0 Likes

Hi

Check the solution.

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.

The connection pool for user verification calls to the ABAP side is controlled with Java destination UMEBackendConnection. The settings u201EMax. Connections‟ and u201EMax. Wait Time‟ can be used to control the timeout.

The u201EMax. Connections‟ setting controls the maximum number of connections that can be used in parallel. If all connections are in use and a new one is needed, the u201EMax Wait Time‟ setting specifies the time to wait for a free connection (in milliseconds). After this time the attempt is treated as an error.

Default for Max. Connections: 20

Default for Max. Wait Time: 10.000 ms

Increase parameters until problem disappears: for example, Max. Connections=50, Max. Wait Time=60000

For more information, see SAP Note 816022 - FAQ: XI 3.0 J2EE Adapter Engine / Messaging System.

Regards

Pothana

Former Member
0 Likes

The webservice call is made to Integration engine.

Thanks

Suma