My Oracle Support Banner

OHMPI GUI Typecast Error When Unlocking A Child Object (Doc ID 2673090.1)

Last updated on AUGUST 19, 2020

Applies to:

Oracle Healthcare Master Person Index - Version 4.0.2.2 and later
Information in this document applies to any platform.

Symptoms

On Oracle Healthcare Master Person Index (OHMPI) 4.0.2.4 version, Master Index Main Component

When unlocking a child object that has an integer as the key, sometimes a typecast error is reported: java.lang.Integer cannot be cast to java.lang.String

Error Codes
---------------------------------------------------
MDM-MI-EME046: Exception has occurred :java.lang.Integer cannot be cast to java.lang.String


Server log reports the following stacktrace:

Tue May 12 07:56:03 AEST 2020 - MDM-MI-EME046: Exception has occurred :java.lang.Integer cannot be cast to java.lang.String
java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
at com.sun.mdm.index.edm.services.masterController.MasterControllerService.removeLocksForChildren(MasterControllerService.java:1884)
at com.sun.mdm.index.edm.presentation.handlers.EditMainEuidHandler.saveMinorObjectUnLocksSelected(EditMainEuidHandler.java:1937)
at jsp_servlet._ajaxservices.__editeuidminorobjects._jspService(__editeuidminorobjects.java:4732)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:35)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:286)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:260)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:137)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:350)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:247)
at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:630)


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

1) Add an object node-VCField
    - VCChildFld Key
    - VCChildFld2

2) Created EUDID : 0000000004
    VCFirst2 VCLast2
    Enter the following for VCField
    106 Samp
    107 Try

3) Lock one of the child objects - 107

4) Use the GUI to edit the other child object (106) in the SBR and save the child object change.

5) Save the Enterprise Object.

6) Try to unlock the child object. The error is reported.

Got the following error:

java.lang.Integer cannot be cast to java.lang.String


Another scenario that leads to same error in the Server log:


1) Using the data from above, go to the source system object and edit one of the child objects.

2) From Record Details, Search for EUID: 0000000004
    Record is Displayed
    Click Edit
    Go across the Source System Record
    Expand VCField
    Click Edit Icon on the 1st  Record (106-Samp)
    Changed it to (201 -SampChange) Save

   The object listing disappear.

    And the Server log will contain similar error as above.

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.