My Oracle Support Banner

When Connecting to P6 Web Services from SAP EPC the Error "com.ctc.wstx.exc.WstxEOFException: Unexpected Eof in Prolog" Occurs (Doc ID 2449332.1)

Last updated on DECEMBER 03, 2019

Applies to:

Primavera P6 Enterprise Project Portfolio Management Cloud Service - Version 18.1 and later
Primavera Web Services - Version 18.8 and later
Information in this document applies to any platform.


When attempting to connect SAP EPC to P6 in the Oracle Cloud or using an SSL connection, the following error occurs.

Oracle Primavera Web Service Connection Exception: Client received SOAP Fault from server: Couldn't create SOAP message due to exception: XML reader error: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog at [row, col {unknown-source}]: [1,0] Please see the server log to find more detail regarding exact cause of the failure.

The issue can be reproduced at will with the following steps:
1. In EPC run Manage Connection with 3rd Party Systems. Select the Primavera Web Service setup option and on the Oracle Primavera EPPM Web Service Set Up page, select the Update checkbox in the case of first time configuration or update.
2. Enter the path to the P6 EPPM Web Service client library file p6ws-jaxws-client.jar.
3. Click Next.
4. On Connection Setup page, select the Update checkbox in the case of first time configuration or update.
5. In the Primavera User Name and Password fields, enter the Technical User credentials created during the preparation of the third party system environment.
6. In the Primavera Web Service Host field, enter the host name of an Application Server that is running the Oracle Primavera P6 EPPM Web Service.
7. In the Primavera Web Service Port field, enter the Oracle Primavera P6 EPPM Web Service Port.
8. Select the Enable Username Token Nonce checkbox.
9. Enter the User Token Timeout value.
10. Click Next.
11. Click the Test Connection URL


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

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