IBM Support

PI56876: ERROR USING MobileFirst Platform 7.1 COMMAND LINE CORDOVA OPTIONS

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • mfp cordova create temp -p android
    cd temp
    mfp cordova run
    Select your platform from the list (only be 1
    option available)
    Errors occur.
    
    
    1. The user created a new cordova project called temp with one
    platform (in this case Android)
    2. The user changed into the new project directory (called temp)
    3. The user ran mfp cordova run against that project.  Important
    note here is that since the user did not explicitly state the
    platform (using -p android) they will be taken into interactive
    mode.
    4. mfp errors out
    
    The work around would be run in direct mode by typing:
    
      mfp cordova run -p android
    
    which will bypass the interactive mode defect.
    

Local fix

  • Add "-p android" to the "mfp cordova run" command, i.e. "mfp
    cordova run -p Android"
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Users of CLI mfp cordova run command                         *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * After selecting the native platform to run on from the "mfp  *
    * cordova run" command, the following error will occur:        *
    * TypeError: Cannot read property 'length' of null             *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * -                                                            *
    ****************************************************************
    

Problem conclusion

  • The problem was related to the parsing of output coming from one
    of the cordova commands cordova list.  Since this command relies
    on the users configuration of the android adb tool it is
    possible that updating this tool is what caused the issue.  The
    logic for the mfp cordova run command has now been updated to
    avoid this issue.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI56876

  • Reported component name

    WL/MFPF ENTERPR

  • Reported component ID

    5725I4300

  • Reported release

    710

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-02-09

  • Closed date

    2016-03-05

  • Last modified date

    2016-03-05

  • 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

    WL/MFPF ENTERPR

  • Fixed component ID

    5725I4300

Applicable component levels

  • R710 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSZH4A","label":"IBM Worklight"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"710","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
17 October 2021