Topic
3 replies Latest Post - ‏2013-01-30T18:14:00Z by SystemAdmin
SystemAdmin
SystemAdmin
6184 Posts
ACCEPTED ANSWER

Pinned topic why receiving JExit exception for unable to find class

‏2013-01-15T17:10:24Z |
In our WTX map (version 8.3.0.4(13)) we are using the JEXIT function and are receiving:

ERROR: JExit exception encountered: Unable to find class com.ibm.websphere.dtx.dtxpi.MDispatchFunction
*ERR: Exception occurred (-2) in JExit()

Here's an example of our map rule:

=JEXIT("com.in.edi.mapping.WtxCodeLookup", "getIHCodeFromEDICode", "entityTypeQualifier", SubmitterEntityType Submitter Element:HeaderRecord RecordTypes:Input_PIM)

This call is using a java class and method,com.in.edi.mapping.WtxCodeLookup - getIHCodeFromEDICode, that gets a text file, based on the parameters passed in-entityTypeQualifier. Once it finds the text file it returns information from there for the other parameter that was passed in - SubmitterEntityType Submitter Element:HeaderRecord RecordTypes:Input_PIM .
There are multiple jexit calls in the map that are doing basically the same thing just for different parameters.
Updated on 2013-01-30T18:14:00Z at 2013-01-30T18:14:00Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    6184 Posts
    ACCEPTED ANSWER

    Re: why receiving JExit exception for unable to find class

    ‏2013-01-24T13:55:51Z  in response to SystemAdmin
    Where are running the map, Inside Design Studio ? This looks like the map is missing to find the core WTX jar files.
    • SystemAdmin
      SystemAdmin
      6184 Posts
      ACCEPTED ANSWER

      Re: why receiving JExit exception for unable to find class

      ‏2013-01-30T18:14:00Z  in response to SystemAdmin
      We are using this with Message Broker and found after we restarted our brokers that seems to solve the problem. Thanks.
  • Purush_WTX
    Purush_WTX
    8 Posts
    ACCEPTED ANSWER

    Re: why receiving JExit exception for unable to find class

    ‏2013-01-29T20:13:46Z  in response to SystemAdmin
    Looking at your example, looks like you are trying to access a class WtxCodeLookup and method getIHCodeFromEDICode().

    So if you have JEXIT error related to this class package, you should not be seeing "com.ibm.websphere.dtx.dtxpi.MDispatchFunction"

    Rather your exception error should say "com.in.edi.mapping.WtxCodeLookup".

    So I suspect, you are missing all mandatory installation of WTX and JAR related to JEXIT method call. Contact your IBM Support partner.