Error: “401 Unauthorized” or "Connection Closed, EOF Detected" From Prime REST Services API.
(Doc ID 2555048.1)
Last updated on SEPTEMBER 29, 2022
Applies to:
Oracle Primavera Cloud Service - Version 18.11 and laterInformation 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”
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 |