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

book

Article ID: 7071

calendar_today

Updated On:

Products

DX Infrastructure Management NIMSOFT PROBES

Issue/Introduction

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"

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: ""

 

 

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.

Environment

UIM/UMP 8.5.1

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

Attachments

1558703249203000007071_sktwi1f5rjvs16q6d.jpeg get_app