IC70100: WMQFTE V7 FTEANT.CMD FAILS TO RUN AND DISPLAYS A MESSAGE ON THE COMMAND LINE: \IBM\WMQFTE\ANT\LIB WAS UNEXPECTED AT THIS TIME

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as fixed if next.

Error description

  • When attempting to run fteAnt.cmd on a WebSphere MQ File
    Transfer Edition (WMQFTE) v7 on Windows, the following error
    is returned to the command line where the fteAnt.cmd was
    issued:
    C:\Program files (x86)\IBM\WMQFTE\bin>fteAnt.cmd -?
    \IBM\WMQFTE\ant\lib was unexpected at this time
      There is nothing in the product logs as this occurs when
    the script is parsed by MS DOS and before any part of WMQFTE
    is invoked.
      The script has a conditional statement near the end as
    follows:
    ----------------
    if defined FTE_ANT_HOME (
    set FTE_CLASSPATH=%FTE_CLASSPATH%;%FTE_ANT_HOME%\lib
    ) else (
    set FTE_CLASSPATH=%FTE_CLASSPATH%;%FTE_PROD%\ant\lib
    )
    -----------------
    The closing parenthesis, ")", in the directory name is being
    interpreted as the closing parenthesis of the ELSE statement.
    The problem is specific to Windows as it is an issue with the
    way that MS DOS parses the command line. It will show up more
    often on 64-bit systems because the default install path
    includes the parenthesis character but it can be seen on
    any Windows system with a parenthesis character in the install
    path.
    

Local fix

  • Edit C:\Program files (x86)\IBM\WMQFTE\bin\fteAnt.cmd to
    change the conditional ELSE statement as per below.
    ------------------------
    if defined FTE_ANT_HOME (
    set FTE_CLASSPATH=%FTE_CLASSPATH%;%FTE_ANT_HOME%\lib
    ) else set FTE_CLASSPATH=%FTE_CLASSPATH%;%FTE_PROD%\ant\lib
    ------------------------
    

Problem summary

  • The fteAnt.cmd script will fail on Microsoft Windows if WMQFTE
    is installed into a location that contains a ) in the directory
    path.
    This is because the ) in the directory path is treated by MS DOS
    as the close af an else statement in the .cmd script.
    
    A change has been made to the WMQFTE code so that this will no
    longer occur. This change will be included in the next release
    of WMQFTE.
    

Problem conclusion

Temporary fix

  • Can be made available on request.
    

Comments

APAR Information

  • APAR number

    IC70100

  • Reported component name

    WMQ FILE TRANSF

  • Reported component ID

    5724R1000

  • Reported release

    700

  • Status

    CLOSED FIN

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-07-22

  • Closed date

    2010-07-22

  • Last modified date

    2010-07-22

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

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

Fix information

Applicable component levels

  • R700 PSN

       UP

  • R701 PSN

       UP

  • R702 PSN

       UP



Rate this page:

(0 users)Average rating

Document information


More support for:

WebSphere MQ File Transfer Edition

Software version:

7.0

Reference #:

IC70100

Modified date:

2010-07-22

Translate my page

Machine Translation

Content navigation