When Using P6 Web Services to Create New Activities the Process Fails for Some Projects With a General Error and "java.lang.NullPointerException at com.primavera.common.value.BeginDate.<init>"
(Doc ID 2761822.1)
Last updated on MARCH 22, 2021
Applies to:
Primavera Web Services - Version 16.2.0.0 and laterPrimavera P6 Enterprise Project Portfolio Management Cloud Service - Version 16.2.0.0 and later
Information in this document applies to any platform.
Symptoms
When attempting to create activities in P6 using P6 Web Services, the following error occurs.
ERROR
-----------------------
From the client application:
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Server</faultcode>
<faultstring/>
<detail>
<ns:IntegrationFault xmlns:ns="http://xmlns.oracle.com/Primavera/P6/WS/IntegrationFaultType/V1">
<ns:ErrorType>General</ns:ErrorType>
<ns:ErrorCode>0</ns:ErrorCode>
<ns:ErrorDescription/>
</ns:IntegrationFault>
</detail>
</SOAP-ENV:Fault>
In the WebLogic logs:
<Exception caught in CRUD Provider: java.lang.NullPointerException at com.primavera.common.value.BeginDate.<init>(BeginDate.java:29)
at com.primavera.bo.rules.create.CreateActivityEngine.setDynamicDefaults(CreateActivityEngine.java:158)
at com.primavera.bo.base.CreateEngineImpl.prepareForCreate(CreateEngineImpl.java:348)
STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Run a Create Activity Request
<v1:CreateActivities>
<!--1 or more repetitions:-->
<v1:Activity>
<v1:Id>Test</v1:Id>
<v1:Name>Test</v1:Name>
<v1:ProjectId>TestProj</v1:ProjectId>
<v1:ProjectObjectId>1234</v1:ProjectObjectId>
</v1:Activity>
</v1:CreateActivities>
Changes
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 |
Changes |
Cause |
Solution |