Topic
1 reply Latest Post - ‏2012-12-26T01:06:05Z by SystemAdmin
Muk1234
Muk1234
22 Posts
ACCEPTED ANSWER

Pinned topic using JEXIT

‏2012-12-14T12:56:13Z |
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?
Updated on 2012-12-26T01:06:05Z at 2012-12-26T01:06:05Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    6184 Posts
    ACCEPTED ANSWER

    Re: using JEXIT

    ‏2012-12-26T01:06:05Z  in response to Muk1234
    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...