IBM Sterling Transformation Extender

Sterling Transformation Extender

Come for answers, stay for best practices. All we're missing is you.


#Sterling
 View Only
  • 1.  using JEXIT

    Posted Fri December 14, 2012 07:56 AM

    Originally posted by: Muk1234


    Hi All, Can anyone help me on how to use JEXIT in one of the rules in the map. I have the foll. class file

    package com.mukibm;

    public class MukCustomer {

    int id;
    String firstName,lastName;

    public MukCustomer()
    {
    this.id=100;
    firstName="Muks";
    lastName="dafsgd";

    }
    /*
    public MukCustomer(int id, String fname, String lname)
    {
    this.id=id;
    firstName=fname;
    lastName=lname;

    }*/
    public String getName()
    {
    String name="abcdefgh";
    return name;

    }
    public String getFirstName()
    {

    return firstName;
    }

    /* public static void main(String args[])
    {

    MukCustomer mCustomerobj = new MukCustomer(101,"Muks","asdfwan");

    }
    */
    }

    and I am using VALID(JEXIT("com.mukibm.MukCustomer","getName"),FAIL(LASTERRORMSG())) in a map rule.
    I have added the jar file in my dtx.ini file .
    jar1=C:\Users\mukund\Desktop\Mukjar.jar

    But the map doesnt run. It says "FAIL function aborted map" and the audit log says the foll. thing:
    <ExecutionSummary MapStatus="Error" mapreturn="30" ElapsedSec="0.0089" BurstRestartCount="0">
    <Message>FAIL function aborted map:Java exception occured</Message>
    <CommandLine>'C:\Users\mukund\IBM\wtx\workspace\RespDishonor\HpsResponse.mmc'</CommandLine>
    <ObjectsFound>12</ObjectsFound>
    <ObjectsBuilt>3</ObjectsBuilt>

    so basically it says Java exception occured.
    Can anyone help me on this.how to run a java function for a map rule?
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender
    #DataExchange


  • 2.  Re: using JEXIT

    Posted Tue December 25, 2012 08:06 PM

    Originally posted by: SystemAdmin


    To further debug this issue, you can open dtx.ini file

    JNI Layer Trace
    switch=ON
    file=c:\dtxjni.log
    ;pid=on
    ;level=30

    and save the settings and restart the design studio and run the map. This should create a log file with a detail trace about the java exception.

    Hope this helps...
    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender