Model Management Need Better Error Message for Build Map on Empty String or Error with Map

(Doc ID 2372500.1)

Last updated on MARCH 12, 2018

Applies to:

Oracle Utilities Network Management System - Version 2.3.0.0.0 to 2.3.0.1.0 [Release 2.3]
Oracle Network Management for Utilities - DMS - Version 2.3.0.0.0 to 2.3.0.1.0 [Release 2.3]
Information in this document applies to any platform.

Symptoms

Model Management - Need Better Error Message for Build Map on Empty String or error with map

The Model Management tool does not provide feedback on these failures to build a map, There is no error message displayed when users didn't enter a map or wrong map entered in Build Map dialog. When no map is entered it displayed a java exception. User expects to have proper message displayed when user did not enter any map in the text box or entered map doesn't exist.
1. Map is not entered in the Map names text field
2. Specified map does not exist
3. Map encountered failed preprocessing

ERROR
Scenario 1:

2018-02-27 13:58:51,753 ERROR com.splwg.oms.jbot.adapter.JBotAdapter: java.lang.NullPointerException
java.lang.NullPointerException: null
at com.splwg.oms.client.modelmanagement.BuildPatchCommand.execute(BuildPatchCommand.java:82) ~[nms_client.jar:?]
at com.splwg.oms.jbot.JBotCommand.executeCommand(JBotCommand.java:366) ~[nms_client.jar:?]
at com.splwg.oms.jbot.CommandProcessor.processCommand(CommandProcessor.java:163) ~[nms_client.jar:?]
at com.splwg.oms.jbot.CommandProcessor.processPackage(CommandProcessor.java:284) ~[nms_client.jar:?]
at com.splwg.oms.jbot.adapter.JBotAdapter$1.run(JBotAdapter.java:659) [nms_client.jar:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_111]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_111]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.



STEPS
Scenario 1:
1. On Model Management -> Actions -> Build Map
Build Map dialog appears
2. Click on the OK button without entering any thing in the Map name text fields
it display java exception, its expected to display proper message to user, like "Enter valid map name"

Scenario 2:
1. On Model Management -> Actions -> Build Map
Build Map dialog appears
2. Enter some name in the Map Names text box
3. Click on the OK button
No feedback to user, dialog closes, its better to have some feedback displayed to user like map does not exist or enter valid map name

Scenario 3:
1. Enter the name of the map in the Build Map dialog (Actions-> Build Map…) (one that failed at pre-processing.)
2. The map name is removed from the Pending Maps list.
3. Preprocessor fails
4. The map name is now not visible on the Pending Maps list or the Patches list (because it didn’t become a .mb file)

Changes

 

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