IBM Support

PI37350: MJC THROWS EXCEPTION IF EXPAND OPERATION OF CONDITIONAL STEP FAILED

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • MJC throws java exception if server expand operation of
    conditional step failed MJC examines server expand operation and
    runs true-part or Else-part according to result of the expand OS
    command. However, MJC throws java exception if expand command
    returns 1(rc=1) rather than take it as "false" and performn
    Else-Part.
    
    Reproduce step:
    
    1. create a simple command for Windows agent
    2. add a conditional step
    3. Give below command for condition
        `IF EXIST "\\svr_name\shared_folder\exists" (exit 0) else
    (exit 1)`
    4.  True-Part
         echo The folder exists.
    5.  Else-Part
         echo The folder does not exist!
    
    Test Cases-1. "\svr_name\shared_folder\exists" exists
         It runs True-Part without problem
    
    Test Cases-2. "\svr_name\shared_folder\exists" Not exists
         MJC throws exception and runs Else-Part
    
    91	19/03/2015 15:24		ERROR	Exception creating ServerProvider
    92	19/03/2015
    15:24		ERROR	com.ibm.jas.mjc.api.model.ServerException$ServerOpe
    rationFailedException: Server expand operation failed: rc=1
    93	19/03/2015 15:24		ERROR		at
    com.ibm.jas.mjc.server.impl.AgentServerProvider.finish(AgentServ
    erProvider.java:209)
    94	19/03/2015 15:24		ERROR		at
    com.ibm.jas.mjc.server.impl.AgentServerProvider.finishExpand(Age
    ntServerProvider.java:416)
    95	19/03/2015 15:24		ERROR		at
    com.ibm.jas.mjc.server.impl.AgentServerProvider.expand(AgentServ
    erProvider.java:382)
    96	19/03/2015 15:24		ERROR		at
    com.ibm.jas.mjc.api.step.VariableExpander.expandCommandReturnCod
    e(VariableExpander.java:238)
    97	19/03/2015 15:24		ERROR		at
    com.ibm.jas.mjc.step.AbstractStepProviderFiberAction.evaluateCon
    dition(AbstractStepProviderFiberAction.java:187)
    98	19/03/2015 15:24		ERROR		at
    com.ibm.jas.mjc.step.ConditionalStepProviderFiberAction.action(C
    onditionalStepProviderFiberAction.java:62)
    99	19/03/2015 15:24		ERROR		at
    com.ibm.jas.fiber.FiberAction.call(FiberAction.java:202)
    100	19/03/2015 15:24		ERROR		at
    com.ibm.jas.mjc.step.SelectingStepProviderFiberAction.action(Sel
    ectingStepProviderFiberAction.java:137)
    101	19/03/2015 15:24		ERROR		at
    com.ibm.jas.fiber.FiberAction.call(FiberAction.java:202)
    102	19/03/2015 15:24		ERROR		at
    com.ibm.jas.fiber.action.flow.Block.action(Block.java:100)
    103	19/03/2015 15:24		ERROR		at
    com.ibm.jas.fiber.FiberAction.call(FiberAction.java:202)
    104	19/03/2015 15:24		ERROR		at
    com.ibm.jas.fiber.Fiber.runFiber(Fiber.java:786)
    105	19/03/2015 15:24		ERROR		at
    com.ibm.jas.fiber.FiberThread.runFibers(FiberThread.java:263)
    106	19/03/2015 15:24		ERROR		at
    com.ibm.jas.fiber.FiberThread.run(FiberThread.java:250)
    107	19/03/2015 15:24		ERROR		at
    com.ibm.jas.mjc.ProcessThread.run(ProcessThread.java:92)
    
    Perl engine work expected. MJC should throws exception only when
    expand command itself fails because it can not termine
    true/false condition.
    

Local fix

  • na
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * MJC THROWS EXCEPTION IF EXPAND OPERATION OF CONDITIONAL STEP *
    * FAILED                                                       *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    

Problem conclusion

  • The issue was fixed in Build Forge 8.0.0.3 release
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI37350

  • Reported component name

    RATIONAL BUILDF

  • Reported component ID

    5724S2700

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2015-03-19

  • Closed date

    2016-02-22

  • Last modified date

    2016-02-22

  • 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

    RATIONAL BUILDF

  • Fixed component ID

    5724S2700

Applicable component levels

  • R800 PSN

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSB2MV","label":"Rational Build Forge"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
04 May 2022