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

Java Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Highlighted
Developer
Posts: 39
Registered: ‎05-26-2009
My Device: BlackBerry Storm 9550

Deploying without rebooting simulator causes cross application communication error (Eclipse Plugin 1.1)

[ Edited ]

Hi there,

 

I just discovered today that the newly released Eclipse plugin version 1.1 allows us to deploy modified versions of the app to the simulator without having to wait for the damned thing to reboot.

 

Ecstatic that I would no longer have to wait 2 minutes to test minor changes, I went ahead and tried it out. Surely enough, I can deploy without it telling me "only one instance of the simulator can be running" and something happens on the device since a garbage collection occurs, but when I try to open the Downloads app folder I get three or four IllegalArgumentExceptions (from the OS, not my app apparently). Then upon clicking my app icon I get an error stating "Application Mango was terminated: denied permission 'Cross Application Communication'."

 

After that I can't get the app running again unless I reboot the simulator. Smiley Sad

 

Any ideas? I would really love to get this working! Smiley Happy

 

EDIT: Follow up, I tried to go to Options >> Applications >> MyApp >> Edit Permissions >> Set all to "Allow". After doing this I am able to start the app without the permissions error. However, after modifying the app and redeploying again these permissions are reset and I have to change them again, even if I go and set the default permissions.

 

 

EDIT 2: Oddly, I found a way around this. Before I was always closing the app before re-deploying. However if the app is open when I re-deploy it launches without any problems. That will suffice for me. Smiley Happy

Developer
Posts: 1,746
Registered: ‎04-08-2010
My Device: Passport Silver, PRIV
My Carrier: Telekom.de, O2, Vodafone

Re: Deploying without rebooting simulator causes cross application communication error (Eclipse Plugin 1.1)

I run into the same problem - am developing 3 applications and also testing.

 

all apps using PersistentStore fail with "Cross Application Communication Error" if packaging new.

(only exception - as you mentioned - is the currently opened application in simulator)

 

so now I always have to restart the simulator if deploying an app which isn't currently opened in simulator

 

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development native Mobile Business Apps
BlackBerry 10 | Qt Mobile (Android, iOS)
Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org
mobile-development: http://appbus.org Twitter: @ekkescorner
Developer
Posts: 17,025
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Deploying without rebooting simulator causes cross application communication error (Eclipse Plugin 1.1)

i would suggest to check the application permissions prior to launching the real application

----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Developer
Posts: 53
Registered: ‎12-23-2009
My Device: Not Specified

Re: Deploying without rebooting simulator causes cross application communication error (Eclipse Plugin 1.1)

I'll suggest to use RecordStore instead of PersistentStore while developing.

You should decide if the time spent on making RecordStore implementation will cover time spent on restarting the simulator.

 

Developer
Posts: 135
Registered: ‎11-14-2010
My Device: BlackBerry Z10 (White)
My Carrier: Vodafone

Re: Deploying without rebooting simulator causes cross application communication error (Eclipse Plugin 1.1)

Thanks Andiamo, was having the exact same problem and your fix with leaving the app running works great. Although it's really strange that it works because before if I tried re-deploying the app when it was running then I would have to wait ~3mins for the simulator to re-load!