"Error While Trying to Perform Authentication: the Username Token Could Not Be Validated" When Attempting to Authenticate Against P6 Web Services or P6 Adapter. (Doc ID 1601907.1)

Last updated on SEPTEMBER 27, 2016

Applies to:

Primavera Web Services - Version 8.1.1.0 and later
Information in this document applies to any platform.

Symptoms

When attempting to authenticate against P6 Web Services or P6 Adapter for Primavera Gateway, the following errors are thrown in the Application Server log (ie Server.out):

UsernameToken E The username token could not be validated.
SecurityInbou E Error while trying to perform authentication: The username token could not be validated.

 

com.primavera.ws.security.AuthenticationManagerException: The username token could not be validated.

 

org.apache.cxf.binding.soap.SoapFault: The username token could not be validated.
Caused by: com.primavera.ws.security.AuthenticationManagerException: The username token could not be validated.

 

<Error> <com.primavera.ws.security.impl.UsernameTokenAuthenticationManager> <2002-1618-03> <P6Adapter> <[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1474459965190> <BEA-000000> <Timestamp isn't valid. It is too old.>
<Error> <com.primavera.ws.security.impl.UsernameTokenAuthenticationManager> <2002-1618-03> <P6Adapter> <[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1474459965190> <BEA-000000> <The username token could not be validated.>

  

The following SOAP response is returned by P6 Web Services:

Response-Code: 500
Encoding: UTF-8
Content-Type: text/xml
Headers: {}
Payload:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

<soap:Body>

<soap:Fault>

<faultcode>

soap:Client

</faultcode>

<faultstring>

The username token could not be validated.

</faultstring>

</soap:Fault>

</soap:Body>

</soap:Envelope>

 

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms