Unable to run Custom CABI reports with UIM user - Server Error

book

Article ID: 225125

calendar_today

Updated On:

Products

DX Infrastructure Management

Issue/Introduction

We are running UIM 20.3.3 and have created a custom report with "ad hoc view" and saved it in a new folder (under public/ca/uim/reports/library/ in Repository) (as desccribed in UIM - Add a CABI Custom Reports to Operator Console (broadcom.com) However,  when running it from OC, I got the below error:

 

 

Server Error. There was an error on the server. Try again or contact site administrators. (Error UID: f43ab919-bf56-41b7-b9f6-50686a5f39a8)

 

 

 

Reports work fine with Superuser from CABIjs directly. 

Reports fail from CABijs directly with other UIm users, impersonated in CABIjs. 

Reports fail from OC with the same error. 

 

 

Jasperserver.log:

Caused by: com.jaspersoft.jasperserver.multipleTenancy.MTResourceNotVisibleException: Path /My_first_Ad_Hoc_View is not visible in organization context Multitenancy context: organization UIM
Arguments: 
 at com.jaspersoft.jasperserver.multipleTenancy.DefaultPathTransformer.toExternalPath(DefaultPathTransformer.java:146)
 ... 199 more

2021-08-31T13:02:47,810 ERROR SecureExceptionHandlerImpl,http-nio-8080-exec-1363:116 - There was an error on the server. Try again or contact site administrators. (Error UID: 2ab98fd6-0ce5-4475-9338-5760ad31f96b)
2021-08-31T13:02:47,829 ERROR ErrorPageHandlerAction,http-nio-8080-exec-1363:118 - Error UID 2ab98fd6-0ce5-4475-9338-5760ad31f96b com.jaspersoft.jasperserver.multipleTenancy.MTResourceNotVisibleException: You may not access resources which do not belong to your organization.

 

and:

Wasp:

sept. 01 13:01:26:223 ERROR [http-nio-80-exec-5, com.ca.cabi4uim.jaspersoft.JasperRestClient] Failed to get  : http://xxxxxxxx8080/cabijs/rest_v2/resources?folderUri=/organizations/UIM/organizations/UIM/users&recursive=false&type=reportUnit&jaspertoken=/YHFFmrgE8xxxxxxxxxxxxxxBmXK/T3uAvniRI14etLGGCaxxxxxxxxxxxxxxxxxxxxxxx15cq&orgidl=uim
sept. 01 13:01:26:590 ERROR [http-nio-80-exec-5, com.ca.cabi4uim.controllers.CABIController] status code and response from jasper
sept. 01 13:01:26:590 ERROR [http-nio-80-exec-5, com.ca.cabi4uim.controllers.CABIController] 404 
sept. 01 13:01:26:590 ERROR [http-nio-80-exec-5, com.ca.cabi4uim.controllers.CABIController] 404
sept. 01 13:01:26:590 ERROR [http-nio-80-exec-5, com.ca.cabi4uim.controllers.CABIController] sending status as OK and empty list instead of error
sept. 01 13:02:37:119 ERROR [attach_socket, com.nimsoft.nimbus.NimServerSession] Exception in NimServerSessionThread.run.  Closing session.
sept. 01 13:02:37:119 ERROR [attach_socket, com.nimsoft.nimbus.NimServerSession] (2) communication error, I/O error on nim session (S) com.nimsoft.nimbus.NimServerSession(Socket[addr=/xxxxxxxx,port=5xxxxxx,localport=48xxxxx]): End of stream while trying to read header
 at com.nimsoft.nimbus.NimSessionBase.recv(NimSessionBase.java:944)
 at com.nimsoft.nimbus.NimServerSession.recv(NimServerSession.java:90)
 at com.nimsoft.nimbus.NimServerSession$NimServerSessionThread.handleMessage(NimServerSession.java:154)
 at com.nimsoft.nimbus.NimServerSession$NimServerSessionThread.run(NimServerSession.java:123)
Caused by: java.io.EOFException: End of stream while trying to read header
 at com.nimsoft.nimbus.NimSessionBase.readNimbusHeader(NimSessionBase.java:1080)
 at com.nimsoft.nimbus.NimSessionBase.recv(NimSessionBase.java:883)
 ... 3 more

Cause

The report is failing to be run by a UIM user because the report was created using the superuser account and not a UIM user. error: (com.jaspersoft.jasperserver.multipleTenancy.MTResourceNotVisibleException: You may not access resources which do not belong to your organization.)

 

The Superuser, if logged into CABI is able to run the custom report, while other users receive the error above mentioned because the report is created with superuser and it creates an organization mismatch. 

Environment

Release : 20.3

Component : UIM - CABI

Resolution

To resolve this issue, the reports must be created again by a UIM user properly logged in to CABI, and not using the cabijs superuser/superuser. 

It is possible to create a custom cabi report in 2 ways:

 

1. with a UIM user by logging into cabijs directly with the UIM user:

 

Browse to http(s)://<cabi_server>/cabijs > enter UIM in organization and use UIM user username and password. 

If getting invalid credentials see: UIM - CABI invalid credentials supplied: could not login to CA Business Intelligence (broadcom.com)

 

 

2. Or via OC/reports > Create custom reports. 

 

 

Additional Information

Related KBs:

UIM - Add a CABI Custom Reports to Operator Console (broadcom.com)

UIM - CABI invalid credentials supplied: could not login to CA Business Intelligence (broadcom.com)

CABI Login Page Comes Up when trying to run r)eport from the OC (broadcom.com

Attachments