IBM Sterling Transformation Extender

Sterling Transformation Extender

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

 View Only
  • 1.  Executing WTX From Java Program

    Posted Fri October 10, 2014 02:31 PM

    Originally posted by: Karthik_Varma


    Hi,

    I am trying to run a WTX 8.4.0.3 (32-bit) map from Eclipse IDE java program. (Not Eclipse based WTX Studio)

    I have added dtxpi.jar, m4java.jar as dependencies to my project.

    My java program looks like:

    public static void main( String[] args ) throws MException
        {
       
        MMap.initializeAPI(null); // failing at this line
        MMap map = new MMap("MyFirstMap.mmc"); //fails at this line too if i comment out above line
        MCard card = map.getInputCardObject(1);
        System.out.println(card.getAllPropertiesXML(true));
        }

    When i try to run this java program, i am seeing this error:

    Exception in thread "main" java.lang.UnsatisfiedLinkError: <WTXinstall-location>\dtxjpi.dll: The specified procedure could not be found
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1807)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1732)
    at java.lang.Runtime.loadLibrary0(Runtime.java:823)
    at java.lang.System.loadLibrary(System.java:1028)
    at com.ibm.websphere.dtx.dtxpi.MBase.<clinit>(Unknown Source)

    Steps i have done to resolve:

    1. Check the PATH variable, if it set correctly.

    2. Verified if dtxjpi.dll is present in the location.

    3. Copied dtxjpi64.dll file to check if my dll file is not correct. ( i copied this from my colleague system who have 64 bit version of WTX) 

    4. -Djava.library.path="${workspace_loc:edi-claims-modification-util}\lib;${env_var:DTX_HOME_DIR}" passed this as VM argument while executing the java program from eclipse. DTX_HOME_DIR is my WTX Install Directory.

    I am not able to resolve the problem by the above steps and any help would be aprreciated. Could anyone please let me know if i am missing anything?


    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender


  • 2.  Re: Executing WTX From Java Program

    Posted Mon October 13, 2014 12:20 PM

    Originally posted by: paul.brett


    The description of your environment leads me to believe you may be using Java 64 bit, for which you will require a full 64 bit WTX API installation (you can't just copy one of the DLLs and hope for the best).

    If I am mistaken, and you're using 32 bit Java, then perhaps you could specify what product exactly you have installed, and from where you downloaded it.

    Details of the underlying OS would also help, as I will attempt to replicate using a VM if possible.

    Thank-you.

    Paul

    Follow me on Twitter.


    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange


  • 3.  Re: Executing WTX From Java Program

    Posted Mon October 13, 2014 02:43 PM

    Originally posted by: Karthik_Varma


    Hi Paul,

     

    I have 32-bit java and WTX Application Programming needs a 64-bit java to be able to run a map from java program.

    Since i had 32-bit version it is looking for dtxjpi.dll and it is not finding required procedures.

    When i installed 64-bit version of java and run it, i think it read dtxjpi64.dll and the program is running fine.

     

    Thanks a lot for the reply. It really helped.

     


    #IBM-Websphere-Transformation-Extender
    #DataExchange
    #IBMSterlingTransformationExtender


  • 4.  Re: Executing WTX From Java Program

    Posted Mon February 06, 2017 09:25 AM

    Originally posted by: anky.1987


    Hi Paul,

     

    I am getting similar error. "no dtxjpi64 in java.library.path' while running wtx map via Java code (thru project jar). The same is working when I am running it thru Design studio.

     

    Using: Design Studio ver Version: 8.4.1.4 Build id: 7 

    Java: 1.8.0_51

    Could you advise steps needed to resolve this error. I have dtxjpi.dll present in my installation dir C:\IBM\WebSphere Transformation Extender 8.4.1

     

    Thanks.

    Ankit.


    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender


  • 5.  Re: Executing WTX From Java Program

    Posted Wed December 16, 2015 08:26 AM

    Originally posted by: IBMDEVELOPER


    Hi karthik varma,

     

    I am also working on the same concept. I to getting the same error. Exception in thread "main" java.lang.UnsatisfiedLinkError: no dtxjpi64 in java.library.path

     

    Can u elaborate the solution clearly and can you share the pi??

     

    Thank you,


    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender


  • 6.  Re: Executing WTX From Java Program

    Posted Mon February 06, 2017 09:37 AM

    Originally posted by: paul.brett


    Provide the full output of the 'java -version' command.

    Thank you.

    Paul

    Follow me on Twitter.


    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange


  • 7.  Re: Executing WTX From Java Program

    Posted Tue February 07, 2017 12:31 AM

    Originally posted by: ankit.gupta


    Hi Paul, 

    Below is the info. asked:

    Full output of java-version command:

    Below is WTX Design Studio version:


    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender


  • 8.  Re: Executing WTX From Java Program

    Posted Tue February 07, 2017 04:20 AM

    Originally posted by: paul.brett


    As per the OP, you will require a full 64 bit WTX API installation.  Your Java is 64 bit, so it will be expecting to call WTX 64 bit.

    Thank you.

    Paul

    Follow me on Twitter.


    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender
    #DataExchange