My Oracle Support Banner

Error: “401 Unauthorized” or "Connection Closed, EOF Detected" From Prime REST Services API. (Doc ID 2555048.1)

Last updated on MARCH 01, 2024

Applies to:

Oracle Primavera Cloud Service - Version 18.11 and later
Information in this document applies to any platform.

Symptoms

When making REST services calls to Prime using the API, intermittently, the following errors may occur:

ERROR:

“401—Unauthorized”

From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:


10.4.2 401 Unauthorized


The request requires user authentication. The response MUST include a WWW-Authenticate header field (section 14.46) containing a challenge applicable to the requested resource. The client MAY repeat the request with a suitable Authorization header field (section 14.8). If the request already included Authorization credentials, then the 401 response indicates that authorization has been refused for those credentials. If the 401 response contains the same challenge as the prior response, and the user agent has already attempted authentication at least once, then the user SHOULD be presented the entity that was given in the response, since that entity MAY include relevant diagnostic information. HTTP access authentication is explained in section 11.

ERROR:

org.springframework.web.client.ResourceAccessException: I/O error on GET request for "https://primeprojects.oraclecloud.com/primeapi/restapi/project/116001":Connection closed, EOF detected; nested exception is java.io.IOException: Connection closed, EOF detected
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:584)
at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:529)
at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:447)
at com.oracle.pif.wsc.prime.PrimeClient.getPrimeData(PrimeClient.java:86)
at com.oracle.pif.bll.PrimeService.viewRecordFromPrimeList(PrimeService.java:663)
at com.oracle.pif.bll.PrimeService.execute(PrimeService.java:85)
at com.oracle.pif.bll.InterfaceManager.execute(InterfaceManager.java:810)
at com.oracle.pif.bll.InterfaceManager.execute(InterfaceManager.java:156)
at com.oracle.pif.bll.InterfaceJob.execute(InterfaceJob.java:37)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
Caused by: java.io.IOException: Connection closed, EOF detected
at weblogic.socket.JSSEFilterImpl.handleUnwrapResults(JSSEFilterImpl.java:678)
at weblogic.socket.JSSEFilterImpl.unwrapAndHandleResults(JSSEFilterImpl.java:554)
at weblogic.socket.JSSEFilterImpl.doHandshake(JSSEFilterImpl.java:99)
at weblogic.socket.JSSEFilterImpl.doHandshake(JSSEFilterImpl.java:78)
at weblogic.socket


STEPS:

The issue can be reproduced at will with the following steps:
1. Make REST services call to Prime using the API
2. Error occurs (intermittently).

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
 From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
 10.4.2 401 Unauthorized
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.