ArrayList cannot be cast in Reporter Node Settings if the login used has no role
search cancel

ArrayList cannot be cast in Reporter Node Settings if the login used has no role

book

Article ID: 85470

calendar_today

Updated On:

Products

CA Automic Dollar Universe

Issue/Introduction

In Reporter Node Settings, If the login used to connect Reporter to the UVMS has no role, there will be an error in the console while checking the UVMS connection in the Reporter settings.

In the Console:

java.util.ArrayList cannot be cast to com.orsyp.reppub.common.parameterobject.SimpleMessage

In the UVC log:

|2012-10-19 12:01:54,985|ERROR||BackgroundWorker-84|com.orsyp.kmeleon.document.nodesettings.view.ValidateUVMSDialog|java.util.ArrayList cannot be cast to com.orsyp.reppub.common.parameterobject.SimpleMessage 
java.lang.ClassCastException: java.util.ArrayList cannot be cast to com.orsyp.reppub.common.parameterobject.SimpleMessage 
at com.orsyp.reppub.client.ReporterAPI.checkConnectionToUVMS(ReporterAPI.java:1358) 
at com.orsyp.kmeleon.business.RepBusiness.checkConnectionToUVMS(RepBusiness.java:931) 
at com.orsyp.kmeleon.document.nodesettings.view.ValidateUVMSDialog.startValidating(ValidateUVMSDialog.java:173) 
at com.orsyp.kmeleon.document.nodesettings.controller.ReporterNodeSettingsController$1.run(ReporterNodeSettingsController.java:502) 
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) 
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) 
at java.util.concurrent.FutureTask.run(Unknown Source) 
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 
at java.lang.Thread.run(Unknown Source) 

Cause

Cause type: Defect
Root Cause: The case of login with no roles was not handled correctly.

Resolution

With UVC 4.0.14, a possible workaround is to associate a Role to the Login (through the Group)

Fix Status: Released

Fix Version(s):
Component: Univiewer.Console
Version: Dollar.Universe 6.0.0