Description

When clinking Run Analysis only, it fails with error "java.lang.NullPointerException" as below screenshot :


 

Observed in CAST AIP
Release
Yes/No
8.3.x(tick)
Observed on RDBMS
RDBMS
Yes/No
CSS(tick)
Step by Step Scenario
  1. Package and deliver the source code
  2. Accept the delivery,set as current version and launch the analysis
  3. The analysis would not launch and fails with error "java.lang.NullPointerException"
Action Plan
  1. Open the CAST-MS log file
  2. Search for the error message : java.lang.NullPointerException:null
  3. Check that the following lines appear in the CAST-MS log file :

    java.lang.NullPointerException
    java.lang.NullPointerException:null
    com.castsoftware.pmc.techno.TechnologyDependenciesManager.needsLinker(TechnologyDependenciesManager.java:119)
    com.castsoftware.pmc.features.RunLinker.configureTask(RunLinker.java:168)
    com.castsoftware.pmc.actions.application.RunAnalysis.fill(RunAnalysis.java:643)
    com.castsoftware.pmc.actions.application.RunAnalysis.configure(RunAnalysis.java:430)
    com.castsoftware.mda.ui.actions.EntityJFaceActionCustom.execute(EntityJFaceActionCustom.java:274)
    com.castsoftware.mda.ui.actions.EntityJFaceActionCustom.execute(EntityJFaceActionCustom.java:201)
  4. In CAST Management Studio, go to the dependencies tab

  5. Check if there are dependencies that should not exist. For instance, in the below screenshot, there is a dependency between Java technology and UA technology. But no UA analysis unit have been discovered.

  6. If there are wrong dependencies, remove them.
  7. In the Execute tab, click run analysis only.
  8. If the below point do not help you to resolve the issue, contact CAST Technical Support with relevant input 
Impact on Analysis Results and Dashboard

Impact of issue: Analysis will not initiate and fails with error "java.lang.NullPointerException"
Impact after applying solution: Analysis runs fine.

Notes/comments

Ticket # 4940

Related Pages