Purpose (problem description)

This page describes how to troubleshoot issue when tiles in HD wont list tile names. This happens when upgrading from 7.3 to 8.0 or 8.1 or 8.2.

 

Please note that this wont create any problem in the upgrade of the measurement base from 7.3. The HD.war can be deployed and we can connect  to the upgraded measure schema.

Observed in CAST AIP

 

Release
Yes/No
8.3.x(error)
8.2.x(tick)
8.1.x(tick)
8.0.x(tick)
7.3.x(tick)
Observed on RDBMS
RDBMS
Yes/No
CSS3(error)
CSS2 (tick)

Measure database for HD can be installed only on CSS2.

Step by Step scenario
  1. Upgrade from HD 7.3 to 8.1 or  8.0
  2. Connect to the HD dashboard..
  3. Tile names are not listed.
Action Plan

In CAST AIP 7.3,  it is possible to use HD  with applications snapshot consolidated inside even if some application contains corrupted data. It is also possible to connect to the HD dashboard to access the data in the tiles without any issue due to permissive Uris in REST API.

But once we upgrade to 8.0 or 8.1 or 8.2 CAST AIP version some tiles in HD might not work. The reason for this is in 8.0.2 version, for security reasons the data integrity checks inside the REST API queries is improved. This has an impact on all the existing Uris already used by the HD Dashboard. 

Note that the restapi log file will return the following error: 

Error
2017-03-23 11:41:51,752| ERROR | http-bio-8080-exec-10 | com.castsoftware.adg.webservice.domains.DomainHolder | HD/results/ exception 
com.sun.jersey.api.container.MappableContainerException: java.lang.NullPointerException

So this happens when applications contain corrupted data. Tile names wont be listed as it depends on data in the database which in this case is corrupted.

The solution is to remove the corrupted application and then to re launch HD. 


To solve this perform the below actions:

  1. Do the following check to identify if some applications are corrupted.

    a. Install CAST AIP 8.2

    b. Backup 7.3 measure schema

    c. Upgrade the measure schema from 7.3 to 8.2  

    d. Launch the GUI HD Tool : C:\Program Files\CAST\8.2\HD\GUI\HDSite-GUI.exe

    e. Connect to the upgraded measure schema and run a “List Site”

    f. Identify all corrupted applications thanks to warning messages in the GUI tool:

List of all potential warnings you can find in the log:

  • Warning : Links are missing in this snapshot.
  • Warning : Snapshot is in an uncomplete state.
  • Warning : Snapshot has no compute end date.
  • Warning : Snapshot has no value for number of code lines.
  • Warning : Snapshot has no score for TQI.
  • Warning : Snapshot has erroneous violation ratio (total checks is 0 for application for some metrics).
  • Warning : Snapshot is locked in measure site.

If at least one of this message appears in the log, you will get this another warning message: "Warning : This snapshot should not be consolidated" and then you can remove the application by following the next step.

If some applications are corrupted, to remove the application use the same tool : HDSite-GUI.exe 

  • You can decide to remove application(s) in the original 7.3 measure schema before doing your upgrade to 8.0 or 8.1
  • You can decide to remove application(s) in the 8.2 measure schema if you want ot use a 8.2 HD.



2. Deploy CAST-HD.war from CAST AIP and connect to the upgraded measure schema.

3. If you are unable to find a solution for your problem then contact CAST Technical Support, with the Relevant input.

For CAST Technical Support only refer to the page - Health Dashboard - Information - How to reproduce HD issues

 

Relevant input

  1. Screenshot of the HD showing the issue
  2. Sherlock export with the following options: Export Logs (feature checked by default), Export Configuration files (feature checked by default), Export Computer Environment (feature checked by default),Export CAST Bases (central,local, mngt and measurement base)
Impact before and after applying the solution
  1. Tile names wont be listed if there was a corrupted application in the upgrade.
  2. Tile names will be listed.
Notes/comments

The solution can’t be realized with 8.1 version because checks were not implemented.

Even if you are upgrading only to 8.1, there is no inconvenience to apply the solution with 8.2 CAST AIP.

Then when the corrupted applications are identified, return to 7.3 measure backup remove them and then upgrade  to 8.1.

Related Pages