On running analysis of an analysis unit having reference finder, analysis crashes with error as shown in the below screenshot :
The CAST-MS log displays the following stack trace :
ERR: 2016-03-24 07:39:30: Failed to generate the list of sets: the whole set of target objects is empty, the tool cannot be run.
com.castsoftware.java.InternalException:Failed to generate the list of sets: the whole set of target objects is empty, the tool cannot be run.
com.castsoftware.pmc.dataset.AnalysisUnitSelectionBuilder.createSelectionOfSets(AnalysisUnitSelectionBuilder.java:313)
com.castsoftware.pmc.features.RunOMCEmulator.documentExecute(RunOMCEmulator.java:247)
com.castsoftware.mda.impl.MemoryTask.execute(MemoryTask.java:82)
com.castsoftware.java.treatment.Task.run(Task.java:275)
com.castsoftware.java.treatment.Task.runChildren(Task.java:388)
com.castsoftware.pmc.features.RunRFOnDependency.documentExecute(RunRFOnDependency.java:66)
com.castsoftware.mda.impl.MemoryTask.execute(MemoryTask.java:82)
com.castsoftware.java.treatment.Task.run(Task.java:275)
com.castsoftware.java.treatment.Task.runChildren(Task.java:388)
com.castsoftware.pmc.features.AbstractRunExecution.documentExecute(AbstractRunExecution.java:71)
com.castsoftware.mda.impl.MemoryTask.execute(MemoryTask.java:82)
com.castsoftware.java.treatment.Task.run(Task.java:275)
com.castsoftware.java.treatment.Task.runChildren(Task.java:388)
com.castsoftware.mda.impl.DocumentTask.execute(DocumentTask.java:39)
com.castsoftware.java.treatment.Task.run(Task.java:275)
com.castsoftware.java.treatment.Task.runChildren(Task.java:388)
com.castsoftware.mda.impl.MemoryAction.execute(MemoryAction.java:253)
com.castsoftware.pmc.actions.application.RunAnalysis.execute(RunAnalysis.java:492)
com.castsoftware.mda.impl.MemoryAction.topExecute(MemoryAction.java:246)
com.castsoftware.mda.impl.MemoryAction$MemoryActionTask.documentExecute(MemoryAction.java:343)
com.castsoftware.mda.impl.MemoryTask.execute(MemoryTask.java:82)
com.castsoftware.java.treatment.Task.run(Task.java:275)
com.castsoftware.java.treatment.TaskExecutor$TaskMainThread.run(TaskExecutor.java:135)
java.lang.Thread.run(Thread.java:744)
Release | Yes/No |
---|---|
8.3.x | |
8.2.x | |
8.1.x | |
8.0.x | |
7.3.x |
RDBMS | Yes/No |
---|---|
Oracle Server | |
Microsoft SQL Server | |
CSS3 | |
CSS2 |
Below is the step-by-step scenario that leads to the problem:
Run analysis of an analysis unit having reference finder without running analysis of source and target of the dependencies.
The impact of the problem on the analysis or the dashboard is:
Analysis will crash at Run Reference pattern step.
As per the above screenshot , the problem is in Reference Pattern (Shell to sqldr) .
If we open the Dependencies tab, we can run the Check Reference Pattern If we open the dependencies tab, we can run the Check Reference Pattern on that particular pattern which is failing(shell to sqldr). As you can see in the screenshot below, there is an error stating that source and target are not analyzed
The target and sources of the dependencies are not analyzed as the analysis unit was not checked to be analyzed as shown in the screenshot below :
This scenario will lead to a crash during the Reference Pattern if the source or the target has not been analyzed.
To proceed with analysis,first you need to analyze the source and target analysis units mentioned in all the dependencies and then run the analysis unit which was failing.
Impact of the solution on the analysis or the dashboard is:Analysis will run successfully.