Unable to Open the Dashboard Portlet: "Not able to get the current user or the roles associated with the user"

Document ID : KB000007071
Last Modified Date : 14/02/2018
Show Technical Document Details
Issue:

Since the upgrade to UMP 8.5.1 I cannot open the dashboard portlet, instead I receive an error message saying: 

"Not able to get the current user or the roles associated with the user"

dash.JPG

This issue happens for every user and even after redeploying the portlet completely.

 

In the wasp.log the below exception is seen:

May 17 14:02:05:246 ERROR [http-bio-80-exec-7, org.apache.catalina.core.ContainerBase.[wasp-engine].[localhost].[/dashboard]] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.firehunter.dashboard.config.ActorSetup': Invocation of init method failed; nested exception is java.lang.RuntimeException: For input string: ""

 

 

Environment:
UIM/UMP 8.5.1
Cause:

The  <dashboard> webepp section in the wasp.cfg contains the details of the <jdbc> connection to an external database data source  (If a Database for SQL Data Sources has been created).

i.e.

<dashboard>

...

<jdbc>

            <1>

                jdbc_driver = com.microsoft.sqlserver.jdbc.SQLServerDriver

                name = jdbc/uimserver

                jdbc_username = 

                jdbc_url = jdbc:sqlserver://UIMserver831;DatabaseName=CA_UIM

                jdbc_password = 

             </1>

 </jdbc>

...

<dashboard>

 

Empty credentials strings as shown above might cause this issue.

Resolution:

To solve the problem:

 

1. Deactivate the UMP wasp

2. Remove the section from the wasp.cfg:

 

i.e.

 

     <1>

                jdbc_driver = com.microsoft.sqlserver.jdbc.SQLServerDriver

                name = jdbc/uimserver

                jdbc_username = 

                jdbc_url = jdbc:sqlserver://UIMserver831;DatabaseName=CA_UIM

                jdbc_password = 

             </1>

 

3. activate the wasp

4. Open a new browser session, log in to UMP and check the dashboard portlet

Additional Information:

UIM Documentation:

Add a Database for SQL Data Sources

https://docops.ca.com/ca-unified-infrastructure-management/8-4/en/using-ump/the-dashboard-portlet/create-and-assign-the-data-source-for-a-widget#CreateandAssigntheDataSourceforaWidget-AddaDatabaseforSQLDataSources