IBM Support

PI13746: IBM WEBSPHERE MQ PUBLISH FAILS WITH INVALID TAG CONTENT BUT TEST PASSES

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Attempts to publish to IBM WebSphere MQ queue using IBM Rational
    Integration Tester (RIT) fail but the test passes with no
    warning.  An invalid value
    An exception is seen in the JVM console:
    
    STEPS TO REPRODUCE:
    
    1. Create a test with an MQ publisher
    
    2. Set the tag value to be invalid using ECMAScript in a
    Function step.
        Set the last statement in the Function to be a print
    statement and store the output in a tag.
        The value will be something similar to:
    sun.org.mozilla.javascript.internal.Undefined@a231ea66
    
    3. Use the tag value for the MQ message corelId field
    
    4. Run the test
    
    EXPECTED RESULTS:
    
    The test should fail on the Publish step.
    
    
    ACTUAL RESULTS:
    
    The test passes but no message is placed on the queue.  The
    following exception is seen in the RIT JVM:
    
    [13/03/2014 10:20:55.442] java.lang.ClassCastException:
    java.lang.String incompatible with [B
    [13/03/2014 10:20:55.442] at
    com.ghc.a3.mq.message.MQHeaderProcessor.X_compileCoherence(MQHea
    derProcessor.java:132)
    [13/03/2014 10:20:55.443] at
    com.ghc.a3.mq.message.MQHeaderProcessor.compile(MQHeaderProcesso
    r.java:47)
    [13/03/2014 10:20:55.443] at
    com.ghc.a3.mq.MQTransport.X_put(MQTransport.java:2218)
    [13/03/2014 10:20:55.443] at
    com.ghc.a3.mq.MQTransport.sendRequest(MQTransport.java:1638)
    [13/03/2014 10:20:55.443] at
    com.ghc.ghTester.runtime.actions.SendRequestAction.doPublish(Sen
    dRequestAction.java:120)
    [13/03/2014 10:20:55.444] at
    com.ghc.ghTester.runtime.actions.PublishAction.X_publish(Publish
    Action.java:428)
    [13/03/2014 10:20:55.444] at
    com.ghc.ghTester.runtime.actions.PublishAction.execute(PublishAc
    tion.java:175)
    [13/03/2014 10:20:55.444] at
    com.ghc.ghTester.runtime.actions.GHTesterAction.execute(GHTester
    Action.java:98)
    [13/03/2014 10:20:55.445] at
    com.ghc.ghTester.engine.Task.executeSubTree(Task.java:543)
    [13/03/2014 10:20:55.445] at
    com.ghc.ghTester.engine.Task.executeSubTree(Task.java:513)
    [13/03/2014 10:20:55.445] at
    com.ghc.ghTester.runtime.actions.iterateaction.IterateAction.exe
    cute(IterateAction.java:488)
    [13/03/2014 10:20:55.445] at
    com.ghc.ghTester.runtime.actions.GHTesterAction.execute(GHTester
    Action.java:98)
    [13/03/2014 10:20:55.446] at
    com.ghc.ghTester.engine.Task.executeSubTree(Task.java:543)
    [13/03/2014 10:20:55.446] at
    com.ghc.ghTester.runtime.TestTask.runNode(TestTask.java:684)
    [13/03/2014 10:20:55.446] at
    com.ghc.ghTester.runtime.TestTask.executeActionTrees(TestTask.ja
    va:641)
    [13/03/2014 10:20:55.447] at
    com.ghc.ghTester.engine.Task.execute(Task.java:199)
    [13/03/2014 10:20:55.447] at
    com.ghc.ghTester.runtime.TestTask.execute(TestTask.java:364)
    [13/03/2014 10:20:55.447] at
    com.ghc.ghTester.runtime.TestTaskJobAdapter.doExecute(TestTaskJo
    bAdapter.java:68)
    [13/03/2014 10:20:55.447] at
    com.ghc.ghTester.runtime.jobs.AbstractJob.execute(AbstractJob.ja
    va:172)
    [13/03/2014 10:20:55.447] at
    com.ghc.ghTester.runtime.jobs.AbstractJob$1.run(AbstractJob.java
    :160)
    [13/03/2014 10:20:55.447] at
    java.lang.Thread.run(Thread.java:781)
    
    
    WORKAROUND:
    
    Ensure that tags used in the message header fields such as
    correlation ID are string values.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * All users of Rational Integration Tester using the IBM MQ    *
    * transport                                                    *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * If a user creates a test which publishes a message on an MQ  *
    * transport and uses a tag to set the correlation ID then, at  *
    * run-time, if the value of the tag is not a valid correlation *
    * ID then no message would be published to MQ.  However, the   *
    * test would pass and it was not clear to the user that no     *
    * publish action had been taken.                               *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    

Problem conclusion

  • This problem was resolved in version 8.6.0.1 of Rational
    Integration Tester.  If the correlation ID cannot be set (e.g.
    because the tag contains an invalid value) then the Publish
    action will fail and the test will then fail.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI13746

  • Reported component name

    RATL INTEGRA TE

  • Reported component ID

    5725G79IT

  • Reported release

    851

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2014-03-14

  • Closed date

    2014-09-01

  • Last modified date

    2014-09-01

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    RATL INTEGRA TE

  • Fixed component ID

    5725G79IT

Applicable component levels

  • R800 PSN

       UP

  • R801 PSN

       UP

  • R850 PSN

       UP

  • R851 PSN

       UP

  • R860 PSY

       UP



Document information

More support for: Rational Test Workbench

Software version: 8.5.1

Reference #: PI13746

Modified date: 01 September 2014