IBM Support

PI54421: APPLICATIONS AND ADAPTERS CALL RETURNS HTTP 500 ERROR( JAVA.LONG.CLASSCASTEXCEPTION)

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Problem with latest GA build of CLI, the problem doesn't show up
    in Studio
    $ mfp -v
    7.1.0.00.20151130-1653
    
    Steps to recreate:
    mfp create TestPrj
    cd TestPrj
    mfp start
    mfp add hybrid
    cd apps/myhybrid
    Edit code add WL.Client.connect() inide wlCommon() in main.js
    mfp push
    mfp preview
    
    Check the logs, you willl see HTTP 500 error
    and an excelption back from the Server
    
    Same with Cordova Apps
    mfp cordova create TestApp -p android
    cd TestApp
    mfp push
    mfp preview
    
    Problem only happens on Browser, running on Simulator or Device
    is fine.
    
    Doing adapter calls Errors out also
    mfp adapter add
    mfp adapter call
    
    *The studio server works for this. The fix may be to look into
    the build that puts the server into the CLI and see what
    changed.*
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * MobileFirst Command Line Interface developer using Command   *
    * Line Interface 7.1 try to preview an application or call an  *
    * adapter                                                      *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * When user try to preview an application or call an adapter   *
    * through web browser,  user willl see HTTP 500 error and an   *
    * excelption back from the Server                              *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * -                                                            *
    ****************************************************************
    

Problem conclusion

  • This issue due to the liberty server of MobileFirst Command Line
    Interface 7.1 was changed to use common library instead of
    private library in recent builds. This change has been reverted
    to fix this issue.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI54421

  • Reported component name

    MFPF/WORKLIGHT

  • Reported component ID

    5725I4301

  • Reported release

    710

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2015-12-17

  • Closed date

    2015-12-23

  • Last modified date

    2016-01-25

  • 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

    MFPF/WORKLIGHT

  • Fixed component ID

    5725I4301

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