IBM Support

PI26594: CLASSCASTEXCEPTION OCCURS WHEN RECEIVING A PUSH NOTIFICATION ON ANDROID HYBRID APPLICATION

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • If, after a javascript subscription, a WLClient.connect() is
    performed from native code, then the JS push notification
    receivers are replaced with Native ones.
    Then, upon reception of the push notification, a
    ClassCastException occurs as the message is not of the expected
    type.
    
    Logcat shows:
    
    09-23 17:49:13.750: E/AndroidRuntime(1578): Caused by:
    java.lang.ClassCastException:
    com.worklight.androidgap.push.GCMIntentService$Message cannot be
    cast to com.worklight.wlclient.push.GCMIntentService$Message
    09-23 17:49:13.750: E/AndroidRuntime(1578):         at
    com.worklight.wlclient.api.WLPush$5.onReceive(WLPush.java:580)
    09-23 17:49:13.750: E/AndroidRuntime(1578):         at
    android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java
    :768)
    09-23 17:49:13.750: E/AndroidRuntime(1578):         ... 9 more
    

Local fix

  • Not available
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Worklight App users.                                         *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * If Push notifications are used in a mixed application        *
    * (hybrid + native), a ClassCastException is thrown that       *
    * causes application to crash                                  *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * -                                                            *
    ****************************************************************
    

Problem conclusion

  • Fix provided.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI26594

  • Reported component name

    WORKLIGHT CONSU

  • Reported component ID

    5725I4301

  • Reported release

    610

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2014-09-27

  • Closed date

    2014-11-12

  • Last modified date

    2014-11-12

  • 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

    WORKLIGHT CONSU

  • Fixed component ID

    5725I4301

Applicable component levels

  • R610 PSY

       UP

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

Document Information

Modified date:
15 October 2021