Error: "NullPointerException" or "java.lang.NullPointerException" Running a Project Scheduled Service (Doc ID 1556056.1)

Last updated on DECEMBER 21, 2016

Applies to:

Primavera P6 Enterprise Project Portfolio Management - Version 8.0 and later
Information in this document applies to any platform.

Symptoms

Trying to schedule in the web or run a Scheduled Service (like summarization) shows the following error in the P6WebAccess logs, Error:  "NullPointerException" or "java.lang.NullPointerException"

ERROR
---------------------
java.lang.NullPointerException
    at java.util.Date.before(Date.java:898)
    at
com.primavera.bo.rules.calc.AssignmentCE.calc_ResourceAssignmentSpread(Unknown Source)
    at com.primavera.bo.schema.dispatch.AssignmentCEDispatch.dispatch(Unknown
Source)
    at com.primavera.bo.rules.calc.AssignmentCE.dispatch(Unknown Source)
    at com.primavera.bo.base.CalculateEngineImpl.getObjects(Unknown Source)
    at com.primavera.bo.base.CalculateEngineImpl.getObjects(Unknown Source)
    at com.primavera.bo.base.server.ServerDAOImpl.load(Unknown Source)
    at com.primavera.bo.base.server.ServerDAOImpl.load(Unknown Source)
    at com.primavera.bo.spread.ActivitySpreadCalculator.a(Unknown Source)
    at
com.primavera.bo.spread.ActivitySpreadCalculator.calculateActivitySpreads(Unknown Source)
    at com.primavera.bo.rules.calc.ActivityCE.calc_ActivitySpread(Unknown
Source)
    at com.primavera.bo.schema.dispatch.ActivityCEDispatch.dispatch(Unknown
Source)
    at com.primavera.bo.rules.calc.ActivityCE.dispatch(Unknown Source)
    at com.primavera.bo.base.CalculateEngineImpl.getObjects(Unknown Source)
    at com.primavera.bo.base.CalculateEngineImpl.getObjects(Unknown Source)
    at com.primavera.bo.base.server.ServerDAOImpl.load(Unknown Source)
    at com.primavera.bo.base.server.ServerDAOImpl.load(Unknown Source)
    at com.primavera.summarizer.dao.ActivityDAO.a(Unknown Source)
    at
com.primavera.summarizer.dao.ActivityDAO.buildShallowSummarizedSpreads(Unknown Source)
    at com.primavera.summarizer.ProjectDataSummarizer.a(Unknown Source)
    at com.primavera.summarizer.ProjectDataSummarizer.summarize(Unknown
Source)
    at com.primavera.summarizer.Summarizer.a(Unknown Source)
    at com.primavera.summarizer.Summarizer.a(Unknown Source)
    at com.primavera.summarizer.Summarizer.runJob(Unknown Source)
    at com.primavera.jobsvc.common.JobServiceExecutable.c(Unknown Source)
    at com.primavera.jobsvc.common.JobServiceExecutable.a(Unknown Source)
    at com.primavera.jobsvc.common.JobServiceExecutable.execute(Unknown
Source)
    at com.primavera.infr.threadpool.ThreadPoolImpl.run(Unknown Source)


OR

ERROR
----------------
com.primavera.summarizer.SummarizerException: Problem summarizing SummaryTaskSpread data
     at com.primavera.summarizer.ProjectDataSummarizer.summarize(Unknown Source)
     at com.primavera.summarizer.Summarizer.a(Unknown Source)
     at com.primavera.summarizer.Summarizer.a(Unknown Source)
     at com.primavera.summarizer.Summarizer.runJob(Unknown Source)
     at com.primavera.jobsvc.common.JobServiceExecutable.c(Unknown Source)
     at com.primavera.jobsvc.common.JobServiceExecutable.a(Unknown Source)
     at com.primavera.jobsvc.common.JobServiceExecutable.execute(Unknown Source)
     at com.primavera.infr.threadpool.ThreadPoolImpl.run(Unknown Source)
     at java.lang.Thread.run(Thread.java:724)
    Caused by: java.lang.NullPointerException
     at java.util.Date.getMillisOf(Date.java:956)
     at java.util.Date.before(Date.java:915)
     at com.primavera.bo.rules.calc.AssignmentCE.calc_ResourceAssignmentSpread(Unknown Source)
     at com.primavera.bo.schema.dispatch.AssignmentCEDispatch.dispatch(Unknown Source)
     at com.primavera.bo.rules.calc.AssignmentCE.dispatch(Unknown Source)
     at com.primavera.bo.base.CalculateEngineImpl.getObjects(Unknown Source)
     at com.primavera.bo.base.CalculateEngineImpl.getObjects(Unknown Source)
     at com.primavera.bo.base.server.ServerDAOImpl.load(Unknown Source)
     at com.primavera.bo.base.server.ServerDAOImpl.load(Unknown Source)
     at com.primavera.bo.spread.ActivitySpreadCalculator.a(Unknown Source)
     at com.primavera.bo.spread.ActivitySpreadCalculator.calculateActivitySpreads(Unknown Source)
     at com.primavera.bo.rules.calc.ActivityCE.calc_ActivitySpread(Unknown Source)
     at com.primavera.bo.schema.dispatch.ActivityCEDispatch.dispatch(Unknown Source)
     at com.primavera.bo.rules.calc.ActivityCE.dispatch(Unknown Source)
     at com.primavera.bo.base.CalculateEngineImpl.getObjects(Unknown Source)
     at com.primavera.bo.base.CalculateEngineImpl.getObjects(Unknown Source)
     at com.primavera.bo.base.server.ServerDAOImpl.load(Unknown Source)
     at com.primavera.bo.base.server.ServerDAOImpl.load(Unknown Source)
     at com.primavera.summarizer.dao.ActivityDAO.a(Unknown Source)
     at com.primavera.summarizer.dao.ActivityDAO.buildDeepSummarizedSpreads(Unknown Source)
     at com.primavera.summarizer.ProjectDataSummarizer.a(Unknown Source)
     ... 9 more


OR

ERROR
--------------
com.primavera.summarizer.SummarizerException: Problem summarizing SummaryTaskSpread data
    at com.primavera.summarizer.ProjectDataSummarizer.summarize(Unknown Source)
    at com.primavera.summarizer.Summarizer.a(Unknown Source)
    at com.primavera.summarizer.Summarizer.a(Unknown Source)
    at com.primavera.summarizer.Summarizer.runJob(Unknown Source)
    at com.primavera.jobsvc.common.JobServiceExecutable.c(Unknown Source)
    at com.primavera.jobsvc.common.JobServiceExecutable.a(Unknown Source)
    at com.primavera.jobsvc.common.JobServiceExecutable.execute(Unknown Source)
    at com.primavera.infr.threadpool.ThreadPoolImpl.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
   Caused by: java.lang.NullPointerException
    at java.lang.Thread.run(Thread.java:662

 

OR

com.primavera.summarizer.SummarizerException: Problem summarizing SummaryTaskSpread data
at com.primavera.summarizer.ProjectDataSummarizer.summarize(Unknown Source)
at com.primavera.summarizer.Summarizer.a(Unknown Source)
at com.primavera.summarizer.Summarizer.a(Unknown Source)
at com.primavera.summarizer.Summarizer.runJob(Unknown Source)
at com.primavera.jobsvc.common.JobServiceExecutable.c(Unknown Source)
at com.primavera.jobsvc.common.JobServiceExecutable.a(Unknown Source)
at com.primavera.jobsvc.common.JobServiceExecutable.execute(Unknown Source)
at com.primavera.infr.threadpool.ThreadPoolImpl.run(Unknown Source)
at java.lang.Thread.run(Thread.java:745)
Caused by: com.primavera.summarizer.SummarizerException
at com.primavera.summarizer.dao.ActivityDAO.a(Unknown Source)
at com.primavera.summarizer.dao.ActivityDAO.buildDeepSummarizedSpreads(Unknown Source)
at com.primavera.summarizer.ProjectDataSummarizer.a(Unknown Source)
... 9 more
Caused by: com.primavera.PhoenixException
at com.primavera.bo.spread.ActivitySpreadCalculator.calculateActivitySpreads(Unknown Source)
at com.primavera.bo.rules.calc.ActivityCE.calc_ActivitySpread(Unknown Source)
at com.primavera.bo.schema.dispatch.ActivityCEDispatch.dispatch(Unknown Source)
at com.primavera.bo.rules.calc.ActivityCE.dispatch(Unknown Source)
at com.primavera.bo.base.CalculateEngineImpl.getObjects(Unknown Source)
at com.primavera.bo.base.CalculateEngineImpl.getObjects(Unknown Source)
at com.primavera.bo.base.server.ServerDAOImpl.load(Unknown Source)
at com.primavera.bo.base.server.ServerDAOImpl.load(Unknown Source)
at com.primavera.bo.spread.ActivitySpreadCalculator.a(Unknown Source)
at com.primavera.bo.spread.ActivitySpreadCalculator.a(Unknown Source)
at com.primavera.bo.spread.ActivitySpreadCalculator.calculateActivitySpreads(Unknown Source)
at com.primavera.bo.rules.calc.ActivityCE.calc_ActivitySpread(Unknown Source)
at com.primavera.bo.schema.dispatch.ActivityCEDispatch.dispatch(Unknown Source)
at com.primavera.bo.rules.calc.ActivityCE.dispatch(Unknown Source)
at com.primavera.bo.base.CalculateEngineImpl.getObjects(Unknown Source)
at com.primavera.bo.base.CalculateEngineImpl.getObjects(Unknown Source)
at com.primavera.bo.base.server.ServerDAOImpl.load(Unknown Source)
at com.primavera.bo.base.server.ServerDAOImpl.load(Unknown Source)
... 12 more
Caused by: java.lang.NullPointerException

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