My Oracle Support Banner

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

Last updated on APRIL 02, 2021

Applies to:

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


On Oracle Healthcare Master Person Index (OHMPI) 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.presentation.handlers.EditMainEuidHandler.saveMinorObjectUnLocksSelected(
at jsp_servlet._ajaxservices.__editeuidminorobjects._jspService(
at weblogic.servlet.jsp.JspBase.service(
at weblogic.servlet.internal.StubSecurityHelper$
at weblogic.servlet.internal.StubSecurityHelper$
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(
at weblogic.servlet.internal.ServletStubImpl.execute(
at weblogic.servlet.internal.ServletStubImpl.execute(
at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(

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.


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

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