If you are using Internet Explorer, please remove blackberry.com from your compatibility view settings.

Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

BlackBerry Push Development

Reply
New Developer
tisun
Posts: 14
Registered: ‎07-30-2009
My Device: BB 8820 - BB Bold 9700
Accepted Solution

java.lang.IllegalArgumentException: Application is not instanceof PushApplication

[ Edited ]

When I tried to perform 'register' on real BB device, I got this exception message in logs:

 

Command 'register' failed with error: java.lang.

IllegalArgumentException: Application is not instanceof PushApplication. It couldn't be started.



My device is running OS 5.0 now. It used to worked on another 5.0 device.
Any advises are welcome :-)!
--
pKt
Please use plain text.
BlackBerry Development Advisor (Retired)
dalim
Posts: 48
Registered: ‎12-15-2008
My Device: Not Specified

Re: java.lang.IllegalArgumentException: Application is not instanceof PushApplication

Has your app implemented the "PushApplication" interface?

If not, please take a look at the sample client application bundled together with the Push SDK.

Best Regards,
David Lim(林玮)


BlackBerry App World:
http://www.blackberry.com/appworld

BlackBerry Developer Zone:
http://www.blackberry.com/developers
Please use plain text.
Contributor
hari_seenivasan
Posts: 14
Registered: ‎12-02-2010
My Device: All
My Carrier: Software Engineer (R&D)

Re: java.lang.IllegalArgumentException: Application is not instanceof PushApplication

Yes I have implemented the PushApplication in the class and still the error comes when I tried to register the application.

 

 

Please use plain text.
New Contributor
sumit_rspl
Posts: 4
Registered: ‎02-04-2011
My Device: Not Specified

Re: java.lang.IllegalArgumentException: Application is not instanceof PushApplication

Hi,

 

Just wanted to know if I do not implement the PushApplication interface can i not regsiter my device. Basically I wanted to know how can I register my device in a javascript extension.

 

Thanks,

Please use plain text.
Developer
rajeshkparmar
Posts: 104
Registered: ‎08-03-2010
My Device: Blackberry Z10
My Carrier: Idea

Re: java.lang.IllegalArgumentException: Application is not instanceof PushApplication

hey anyone solved it..

i am getting the same error.

i have implement the PUahAppliaction but it still give me same error..

 

any solution ..any comments..


Please mark posts as solved if you found a solution.
Feel free to press the kudos button to thank the user that helped you
Please use plain text.
Contributor
latha_vee
Posts: 21
Registered: ‎04-21-2011
My Device: Developer
My Carrier: ----

Re: java.lang.IllegalArgumentException: Application is not instanceof PushApplication

Hi all,

 

  I had the similar  problem .. By trial and error  I  found that its not just enough to implement the Push Application.

   The class where the  push application registry is performed should be the one which contains the main class.

  See if this helps. Its working for me this way.

Please use plain text.