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 |
Observed on RDBMS
RDBMS | Yes/No |
---|---|
CSS |
Step by Step Scenario
- Package and deliver the source code
- Accept the delivery,set as current version and launch the analysis
- The analysis would not launch and fails with error "java.lang.NullPointerException"
Action Plan
- Open the CAST-MS log file
- Search for the error message : java.lang.NullPointerException:null
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)
In CAST Management Studio, go to the dependencies tab
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.
- If there are wrong dependencies, remove them.
- In the Execute tab, click run analysis only.
- 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