IBM Sterling Transformation Extender

Sterling Transformation Extender

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


#Sterling
 View Only
  • 1.  JExit Return Error

    Posted Tue April 12, 2016 04:22 AM

    Originally posted by: johnxp


    Hi, I am having below the error when call java class in JExit.

    <2852-3748-04/12/16 16:17:15>:    ===== WebSphere Transformation Extender Java Programming Interface Library =====
    <2852-3748-04/12/16 16:17:15>:    Version: 8.3.0.6(3)
    <2852-3748-04/12/16 16:17:15>:    Install Directory: C:\Apps\WTX8.3\
    <2852-3748-04/12/16 16:17:15>:    CLASSPATH: C:\Program Files (x86)\IBM\WebSphere MQ\java\lib\com.ibm.mqjms.jar;C:\Program Files (x86)\IBM\WebSphere MQ\java\lib\com.ibm.mq.jar
    <2852-3748-04/12/16 16:17:15>:    Loading JVM...
    <2852-3748-04/12/16 16:17:15>:    JVM already loaded. Path: C:\Apps\WTX8.3\java\bin\j9vm\jvm.dll
    <2852-3748-04/12/16 16:17:15>:    Loading JVM symbols...
    <2852-3748-04/12/16 16:17:15>:    JVM symbols loaded successfully.
    <2852-3748-04/12/16 16:17:15>:    JVM exists with ptr = 0031A398, count = 1
    <2852-3748-04/12/16 16:17:15>:    Message Broker Environment not detected based on environment variable, MQSI_VERSION.
    <2852-3748-04/12/16 16:17:15>:    *ERR: java.lang.Exception: java.lang.Exception: java.lang.reflect.InvocationTargetException
    <2852-3748-04/12/16 16:17:15>:    ERROR: JExit exception encountered: 
    <2852-3748-04/12/16 16:17:15>:    *ERR: Java exception occured (-305) in MjpiCheckJavaException()

    Any one can help me? Thanks.

     

     


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


  • 2.  Re: JExit Return Error

    Posted Tue April 12, 2016 08:22 AM

    Originally posted by: Tim Rabbitt


    Hello John:

     

    Try copying the jar file you created for use with the JEXIT function to the directory denoted byt %MQSI_WORKPATH%\shared-classes and restart the broker.

     

    Regards,

    Tim Rabbitt


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


  • 3.  Re: JExit Return Error

    Posted Tue April 12, 2016 09:57 PM

    Originally posted by: johnxp


    Where I can check the %MQSI_WORKPATH%\shared-classes ? I not able to find it in the system Environment Variables. 

    I tried to add the jar file to  $CLASSPATH, still no luck.

    Below are the JNI trace log:

    <3796-3112-04/13/16 09:46:34>:    ===== WebSphere Transformation Extender Java Programming Interface Library =====
    <3796-3112-04/13/16 09:46:34>:    Version: 8.3.0.6(3)
    <3796-3112-04/13/16 09:46:34>:    Install Directory: C:\Apps\WTX8.3\
    <3796-3112-04/13/16 09:46:34>:    CLASSPATH: C:\Program Files (x86)\IBM\WebSphere MQ\java\lib\com.ibm.mqjms.jar;C:\Program Files (x86)\IBM\WebSphere MQ\java\lib\com.ibm.mq.jar;C:\Test\Java\MyJHelper.jar
    <3796-3112-04/13/16 09:46:34>:    Loading JVM...
    <3796-3112-04/13/16 09:46:34>:    JVM already loaded. Path: C:\Apps\WTX8.3\java\bin\j9vm\jvm.dll
    <3796-3112-04/13/16 09:46:34>:    Loading JVM symbols...
    <3796-3112-04/13/16 09:46:34>:    JVM symbols loaded successfully.
    <3796-3112-04/13/16 09:46:34>:    JVM exists with ptr = 005BB370, count = 1
    <3796-3112-04/13/16 09:46:34>:    Message Broker Environment not detected based on environment variable, MQSI_VERSION.
    <3796-3112-04/13/16 09:46:36>:    *ERR: java.lang.Exception: java.lang.Exception: java.lang.reflect.InvocationTargetException
    <3796-3112-04/13/16 09:46:36>:    ERROR: JExit exception encountered: 
    <3796-3112-04/13/16 09:46:36>:    *ERR: Java exception occured (-305) in MjpiCheckJavaException()

    Looks like JEXIT is most difficult function to use in WTX, I am referring the setup issue.

     


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


  • 4.  Re: JExit Return Error

    Posted Wed April 13, 2016 07:37 AM

    Originally posted by: Tim Rabbitt


    Hello John:

     

    %MQSI_WORKPATH% is the environment variable. You can check what it's value is by starting the Message Broker Command Console window.  Once this window comes you should see it in this window.  If you don't see it, type: echo %MQSI_WORKPATH% and it will display it's value.  The shared-classes directory is a subdirectory of %MQSI_WORKPATH%

     

    Based on the error you're getting, it doesn't appear you broker environment is defined either as I'm seeing the error about MQSI_VERSION so maybe we need to backup  a step.  How are you invoking this WTX map?  If you're not using the broker to invoke it, then my next suggestion would be to ensure the jar file is added to your CLASSPATH environment variable and to edit the dtx.ini file and go to the [External Jar Files] section and a reference to your jar file in the format of:

    jarX=<path>/<jar file>

    where X is a sequential number starting with 1.  If you already have a jar1=, then make the new entry, jar2=

     

    Make sure there is no leading semicolon

     

    Regards,

    Tim

     


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


  • 5.  Re: JExit Return Error

    Posted Wed April 13, 2016 09:56 PM

    Originally posted by: johnxp


    Hi Tim,

    Thanks for your response.

    I am not using Message Broker, just purely WTX design studio and Launcher.

    I have fully followed the instruction in WTX Help, still not working.

    What I have done:

    1. Add Jar path in dtx.ini.

    2. Add Jar file in CLASSPATH

    3. Enable JNI trace log in dtx.

    What else I can do to make it work?

    Anyone can help please!!!

     

     


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


  • 6.  Re: JExit Return Error