IBM Z and LinuxONE Software

Software

Software

In order to compete you have to be trusted. System software delivers high-performing system and database management, faster insights, secure cloud and agile DevOps, plus the reliability, flexibility and protection you expect from the mainframe.

 View Only
Expand all | Collapse all

How to check if a java class is available and suppres RuntimeExceptionContainer errors

  • 1.  How to check if a java class is available and suppres RuntimeExceptionContainer errors

    Posted Fri August 12, 2022 11:13 AM

    Hi,

    I have created a solution to check if a java class is available. In debug mode sometimes java classes are not found. So I added to following check to my code to check if a class is available in debug mode:

    In the java layer:

    public boolean checkIfClassExists(String className) {

    try {

    Class.forName(className, false, getClass().getClassLoader());

    return true;

    } catch(Exception e) {

    return false;

    }

    }

    EGL layer:

    function checkIfClassExistsInDebugMode(className String in) returns(boolean)

    DMGJavaUtilExt DMGJavaUtilExt = new DMGJavaUtilExt(){};

    return (DMGJavaUtilExt.checkIfClassExists(className) and !(sysVar.systemType IS DEBUG));

    end

    In the EGL library I keep getting an error/message:

    [EglRuiDiv EglRuiDiv EglRuiBox EglRuiEmailadresField] com.ibm.etools.egl.interpreter.parts.runtime.RuntimeExceptionContainer

    How to prevent/suppress this message.

    Regards,

    Marcel


    #SupportMigration
    #HCLRational
    #Support


  • 2.  RE: How to check if a java class is available and suppres RuntimeExceptionContainer errors

    Posted Wed August 17, 2022 02:46 PM

    Problem solved!

    A record had no data due to a error in the back-end and that triggered the error in the RichUI.


    #Support
    #SupportMigration
    #HCLRational