IBM Sterling Transformation Extender

Sterling Transformation Extender

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


#Sterling
 View Only
  • 1.  Error when using JExit-function in Command Server (Linux)

    Posted Tue May 10, 2016 09:35 AM

    Originally posted by: Ole Haavard Haug-Larsen


    Hi.

    We want to use at jexit-modul (to get UUID), but get error when we run the map in command server at Linux.

    Jar-file have been created in windows, and the mapping runs successfully in Design Studio. Mapping-file and Jar-file have been uploaded to the Linux-server as normal. BUT when we run the mapping we get the message 'Exit called failed', and the mapping return the error-message 'Adapter not found'.

     

    We have tried a various of actions:

    - Put jar-file in /opt/IBM/wsdtx/libs-folder (which are include in the LD_LIBRARY_PATH-variable)
    - Put jar-file in /opt/IBM/wsdtx/config-folder (where dtx.ini are located)
    - Put jar-file in /tmp/wtx_UUID-folder (AND have included this folder in the LD_LIBRARY_PATH-variable)
    - Updated dtx.ini-file with jar-path in 'External Jar-files'
    - Updated dtx.ini-folder with jar-path in 'Eternal Jar Directories'

     

    What can be wrong? Any suggestions are appreciated!


     


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


  • 2.  Re: Error when using JExit-function in Command Server (Linux)

    Posted Tue May 10, 2016 10:07 AM

    Originally posted by: Ejay


    Hi

    You should try to add the CLASSPATH variable pointing to your jar file .

    Hope this help

    EJay


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


  • 3.  Re: Error when using JExit-function in Command Server (Linux)

    Posted Thu May 12, 2016 05:53 AM

    Originally posted by: Ole Haavard Haug-Larsen


    I have tried to update CLASSPATH and LD_LIBRARY - but with no luck...


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


  • 4.  Re: Error when using JExit-function in Command Server (Linux)

    Posted Thu May 12, 2016 06:12 AM

    Originally posted by: Ejay


    Hi ,

    Please check  the file /opt/IBM/wsdtx/libs/libdtxjpi.so exist on your system .

    Did you execute ". ./setup" from /opt/IBM/wsdtx/ prior running your testing ?

    Can you show us your "env" command result ?

    Ejay

     

     


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


  • 5.  Re: Error when using JExit-function in Command Server (Linux)

    Posted Tue May 10, 2016 10:07 AM

    Originally posted by: paul.brett


    Perhaps you could activate the JNI Layer trace ni the dtx.ini file, and let us kow what that tells you when you run the map?

    [JNI Layer Trace]
    switch=on
    file=/tmp/jni_layer_trace.txt
    pid=on
    level=100
    

    Thanks.

    Paul.

    Follow me on Twitter     <--- go on, you know you really want to!


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


  • 6.  Re: Error when using JExit-function in Command Server (Linux)

    Posted Thu May 12, 2016 05:31 AM

    Originally posted by: Ole Haavard Haug-Larsen


    I activated the JNI-Trace, but I did not get any output in the jni_layer_trace.txt-file..
     

    I checked the dtxconn.log, and here I found these messages:

    DTXLN1133D - Thu May 12 11:25:53 2016 - tid:-981522624 inst:     1 - I/O TRACE : Open type=1  Map=/tmp/wtx_UUID/jexit_getUUID_method.lnx Name=/tmp/wtx_UUID/jexit_getUUID_method.lnx Handle=2 (mercio.c:2313)
    DTXLN1133D - Thu May 12 11:25:53 2016 - tid:-981522624 inst:     1 - I/O TRACE : Close Map=/tmp/wtx_UUID/jexit_getUUID_method.lnx Handle=1 (mercio.c:4711)
    DTXLN1133D - Thu May 12 11:25:53 2016 - tid:-981522624 inst:     1 - I/O TRACE : Open type=0  Map=/tmp/wtx_UUID/jexit_getUUID_method.lnx Name=/tmp/wtx_UUID/Mer_jexit_getUUID_method_183891463045153_1.O1.tmp Handle=3 (mercio.c:2313)
    DTXLN1133D - Thu May 12 11:25:53 2016 - tid:-981522624 inst:     1 - I/O TRACE : Creat type=0  Map=/tmp/wtx_UUID/jexit_getUUID_method.lnx Name=/tmp/wtx_UUID/Result.txt Handle=3 (mercio.c:3226)
    DTXLN1133D - Thu May 12 11:25:53 2016 - tid:-981522624 inst:     1 - I/O TRACE : Open type=3  Map=/tmp/wtx_UUID/jexit_getUUID_method.lnx Name=/tmp/wtx_UUID/jexit_getUUID_method.mtr Handle=4 (mercio.c:2313)
    DTXLN1133D - Thu May 12 11:25:53 2016 - tid:-981522624 inst:     1 - I/O TRACE : Creat type=3  Map=/tmp/wtx_UUID/jexit_getUUID_method.lnx Name=/tmp/wtx_UUID/jexit_getUUID_method.mtr Handle=4 (mercio.c:3226)
    DTXLN1133D - Thu May 12 11:25:53 2016 - tid:-981522624 inst:     1 - I/O TRACE : CALLING EXIT=10  Map=/tmp/wtx_UUID/jexit_getUUID_method.lnx Lib/class name=Test1 Function=getUUID (mercexit.c:2366)
    DTXLN4136E - Thu May 12 11:25:53 2016 - tid:-981522624 inst:     0 - I/O ERROR : AllocExit Failed. Lib name=/opt/IBM/wsdtx/libs/libdtxjpi.so Function=JExit error=(0)libjava.so: cannot open shared object file: No such file or directory (mercexit.c:1412)
    DTXLN4136E - Thu May 12 11:25:53 2016 - tid:-981522624 inst:     1 - I/O ERROR : JEXIT Failed. Map=/tmp/wtx_UUID/jexit_getUUID_method.lnx Lib/class name=Test1 Function=getUUID (mercexit.c:2490)

     


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


  • 7.  Re: Error when using JExit-function in Command Server (Linux)

    Posted Thu May 12, 2016 06:54 AM

    Originally posted by: paul.brett


    Please run these two commands:

    $ cd $DTX_HOME_DIR
    $ find . -name libjava.so
    ./java/lib/amd64/libjava.so

    ...and paste the results into this thread.

    Thanks.

    Paul.

    Follow me on Twitter


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


  • 8.  Re: Error when using JExit-function in Command Server (Linux)

    Posted Thu May 12, 2016 07:04 AM

    Originally posted by: paul.brett


    These are my results, running the example on Linux with WTX 8.4.1.3(14)_64bit:

    $ dtxcmdsv jexit_getUUID_method.lnx -AE -OE1

    IBM WebSphere Transformation Extender(TM) Linux Command Server - version 8.4.1.3(14)_64bit
    Copyright 1998, 2015 IBM Corporation. All rights reserved.

    Map file: /nfshome/pbrett/maps/jexit/jexit_getUUID_method.lnx -AE -OE1 %lt;data;%gt;
    In #  0:               0  Out #  1:               0  Time:    0:00
    In #  0:               0  Out #  1:               0  Time:    0:00
    In #  0:               0  Out #  1:               0  Time:    0:02  Exit call failed
    In #  0:               0  Out #  1:               0  Time:    0:02
    java.lang.Exception: java.lang.Exception: java.lang.Exception: java.lang.ClassNo
    tFoundException: Test1In #  0:               0  Out #  1:               1  Time:
    In #  0:               0  Out #  1:               1  Time:    0:02

    Map completed (0):  Map completed successfully (2.491 seconds)


    $ export CLASSPATH=/nfshome/pbrett/maps/jexit/testjexit.jar
    $ dtxcmdsv jexit_getUUID_method.lnx -AE -OE1

    IBM WebSphere Transformation Extender(TM) Linux Command Server - version 8.4.1.3(14)_64bit
    Copyright 1998, 2015 IBM Corporation. All rights reserved.

    Map file: /nfshome/pbrett/maps/jexit/jexit_getUUID_method.lnx -AE -OE1 %lt;data;%gt;
    In #  0:               0  Out #  1:               0  Time:    0:00
    In #  0:               0  Out #  1:               0  Time:    0:00
    b26619ad-5a2e-4030-9fd3-675cbf9a23f1In #  0:               0  Out #  1:
    In #  0:               0  Out #  1:               1  Time:    0:02

    Map completed (0):  Map completed successfully (1.714 seconds)

    Thanks.

    Paul.

    Follow me on Twitter


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


  • 9.  Re: Error when using JExit-function in Command Server (Linux)

    Posted Thu May 12, 2016 07:12 AM

    Originally posted by: paul.brett


    I have re-created your error:

    DTXLN4136E - Thu May 12 07:02:48 2016 - tid:-1421134784 inst:     0 - I/O ERROR : AllocExit Failed. Lib name=/nfshome/pbrett/linux64/wtx8.4.1.3/libs/libdtxjpi.so Function=JExit error=(0)libjava.so: cannot open shared object file: No such file or directory (mercexit.c:1412)

    Using this method:

    login: brett1pa
    Password:
    Last login: Thu May 12 06:35:22 from sig-9-83-202-113.evts.uk.ibm.com

    $ export DTX_HOME_DIR=/nfshome/pbrett/linux64/wtx8.4.1.3
    $ export PATH=/nfshome/pbrett/linux64/wtx8.4.1.3/bin:$PATH
    $ export LD_LIBRARY_PATH=/nfshome/pbrett/linux64/wtx8.4.1.3/libs:$LD_LIBRARY_PATH
    $ export CLASSPATH=/nfshome/pbrett/maps/jexit/testjexit.jar
    $ cd maps/jexit
    $ dtxcmdsv jexit_getUUID_method.lnx -AE -OE1

    Error: DTX_HOME_DIR- Path doesn't exist or too long.
    $ dtxcmdsv jexit_getUUID_method.lnx -AE -OE1

    IBM WebSphere Transformation Extender(TM) Linux Command Server - version 8.4.1.3(14)_64bit
    Copyright 1998, 2015 IBM Corporation. All rights reserved.

    Map file: /nfshome/pbrett/maps/jexit/jexit_getUUID_method.lnx -AE -OE1 %lt;data;%gt;
    In #  0:               0  Out #  1:               0  Time:    0:00
    In #  0:               0  Out #  1:               0  Time:    0:00
    In #  0:               0  Out #  1:               0  Time:    0:00  Exit call failed
    In #  0:               0  Out #  1:               0  Time:    0:00
    Adapter not foundIn #  0:               0  Out #  1:               1  Time:    0
    In #  0:               0  Out #  1:               1  Time:    0:00

    Map completed (0):  Map completed successfully (0.008 seconds)

    Emmanuel was right, it is essential that you run the official setup script with the following syntax:

    . ./setup

    Thanks.

    Paul.

    Follow me on Twitter


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


  • 10.  Re: Error when using JExit-function in Command Server (Linux)

    Posted Thu May 12, 2016 08:17 AM

    Originally posted by: Ole Haavard Haug-Larsen


    You guys are great!!

     

    Running the official setup script was the solution!! I guess I should have known about it - but right know I'm just very happy to have solved a blocking problem!!

     

    Thanks again!


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