Migration for Bug 26809280 is Causing "java.lang.ClassCastException: Differing lengths of values"

(Doc ID 2325324.1)

Last updated on NOVEMBER 08, 2017

Applies to:

Oracle Utilities Network Management System - Version 2.3.0.1.0 and later
Oracle Network Management for Utilities - DMS - Version 2.3.0.1.0 and later
Information in this document applies to any platform.

Symptoms

On :  NMS 2.3.0.1.0 version, Web Workspace

BugDB 26809280 migration is still causing an exception.

ERROR
________________

017-11-03 10:11:57,395 [AWT-EventQueue-1] ERROR com.splwg.oms.client.util.ClientThreadPool: ContextRunnable.run caught exception
java.lang.ClassCastException: Differing lengths of values
at com.splwg.oms.jbot.ConcatenatedValues.compareTo(ConcatenatedValues.java:143)
at com.splwg.oms.jbot.SortDataStoreDecorator$BulkDataRowComparator.compareRowsByColumn(SortDataStoreDecorator.java:201)
at com.splwg.oms.jbot.SortDataStoreDecorator$BulkDataRowComparator.compare(SortDataStoreDecorator.java:223)
at java.util.TimSort.countRunAndMakeAscending(Unknown Source)
at java.util.TimSort.sort(Unknown Source)
at java.util.Arrays.sort(Unknown Source)
at java.util.ArrayList.sort(Unknown Source)
at java.util.Collections.sort(Unknown Source)
at com.splwg.oms.jbot.SortDataStoreDecorator.computeMapping(SortDataStoreDecorator.java:61)
at com.splwg.oms.jbot.AbstractDataStoreDecorator.validateMapping(AbstractDataStoreDecorator.java:795)
at com.splwg.oms.jbot.AbstractDataStoreDecorator.getNext(AbstractDataStoreDecorator.java:230)
at com.splwg.oms.jbot.AbstractDataStoreDecorator.getDataRowCount(AbstractDataStoreDecorator.java:410)
at com.splwg.oms.jbot.JBotTableModel.getRowCount(JBotTableModel.java:159)
at com.splwg.oms.jbot.adapter.JTableAdapter$A_TableModelListener.tableChanged(JTableAdapter.java:300)
at javax.swing.table.AbstractTableModel.fireTableChanged(Unknown Source)
at javax.swing.table.AbstractTableModel.fireTableDataChanged(Unknown Source)
at com.splwg.oms.jbot.JBotTableModel$1.run(JBotTableModel.java:375)
at com.splwg.oms.client.util.ClientThreadPool$ContextRunnable.run(ClientThreadPool.java:160)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at com.splwg.oms.client.util.SystemHotkeys.dispatchEvent(SystemHotkeys.java:43)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.WaitDispatchSupport$2.run(Unknown Source)
at java.awt.WaitDispatchSupport$4.run(Unknown Source)
at java.awt.WaitDispatchSupport$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.WaitDispatchSupport.enter(Unknown Source)
at java.awt.Dialog.show(Unknown Source)
at java.awt.Component.show(Unknown Source)
at java.awt.Component.setVisible(Unknown Source)
at java.awt.Window.setVisible(Unknown Source)
at java.awt.Dialog.setVisible(Unknown Source)
at com.splwg.oms.jbot.component.JBotDialog.setVisible(JBotDialog.java:84)
at com.splwg.oms.jbot.JBotToolDialog$DisplayDialog.run(JBotToolDialog.java:592)
at com.splwg.oms.jbot.JBotToolDialog.show(JBotToolDialog.java:505)
at com.splwg.oms.jbot.JBotToolDialog$3.run(JBotToolDialog.java:836)
at com.splwg.oms.jbot.JBotToolDialog.showAndWaitForDialog(JBotToolDialog.java:842)
at com.splwg.oms.client.control.OpenDeviceSwitchingCommand.execute(OpenDeviceSwitchingCommand.java:118)
at com.splwg.oms.jbot.JBotCommand.executeCommand(JBotCommand.java:374)
at com.splwg.oms.jbot.CommandProcessor.processCommand(CommandProcessor.java:163)
at com.splwg.oms.jbot.CommandProcessor.processPackage(CommandProcessor.java:284)
at com.splwg.oms.jbot.adapter.JBotAdapter$1.run(JBotAdapter.java:659)
at com.splwg.oms.jbot.adapter.JBotAdapter.processCommands(JBotAdapter.java:669)
at com.splwg.oms.jbot.command.ExecuteActionCommand.execute(ExecuteActionCommand.java:105)
at com.splwg.oms.jbot.JBotCommand.executeCommand(JBotCommand.java:374)
at com.splwg.oms.jbot.CommandProcessor.processCommand(CommandProcessor.java:163)
at com.splwg.oms.jbot.CommandProcessor.access$100(CommandProcessor.java:33)
at com.splwg.oms.jbot.CommandProcessor$ProcessCommandTask.run(CommandProcessor.java:397)
at com.splwg.oms.client.util.ClientThreadPool$ContextRunnable.run(ClientThreadPool.java:160)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at com.splwg.oms.client.util.SystemHotkeys.dispatchEvent(SystemHotkeys.java:43)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)



The issue can be reproduced at will with the following steps:

1.  There is a note, info tag and stop tag on a switch
2.  When you open the control tool, and select Switching Plan(s), you get the switch plan list -- with several lines from various switch plans (emergency, planned, miscellaneous)
3.  Click on any other column in an attempt to sort.   I get java errors about differing lengths of values.
4.  After that I start to see several other java errors that only stop when I log out and back in.

Changes

 This is related to BUG 26809280 - EXCEPTION WHILE PERFORMING SORT IN 'DEVICE TO SHEET OPERATIONS LIST' in the 2.3.0.1 service pack.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms