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

Adobe AIR Development

Reply
Contributor
Posts: 23
Registered: ‎12-17-2010
My Device: Not Specified
My Carrier: Software Engineer
Accepted Solution

IndexOutOfBoundsException

Hi all,

 

I am working on a playbook application.

My application requires images as icons and background of application.

Now I hav 17 images in my src/images folder and working well in both Simulator and Flash Builder.

But when  add a new image to the src/images folder, I can't run the application in Simulator. I'm getting the following error:

 

Using icon: D:\xampp\htdocs\MyNomadesk-debug\images\blackberry-tablet-icon.png
The bar manifest file is valid.
Package created: C:\Users\aswathy\Adobe Flash Builder 4\MyNomadesk/MyNomadesk.bar
java.lang.IndexOutOfBoundsException
    at java.io.ByteArrayOutputStream.write(Unknown Source)
    at com.qnx.bbt.deploy.Deploy.readPackage(Deploy.java:173)
    at com.qnx.bbt.deploy.Deploy.verifyPackageId(Deploy.java:138)
    at com.qnx.bbt.deploy.Deploy.sendRequest(Deploy.java:124)
    at com.qnx.bbt.deploy.Deploy.run(Deploy.java:100)
    at com.qnx.bbt.deploy.Deploy.main(Deploy.java:73)
Error: null
Deployment failed: 1

 

When I go through the forum I found some people got the same issue and solved when the removed unwanted images. But all my 17 images are necessarry for my application.

And It works well in Flash Builder when I run as a desktop application( Without any exception).

 

Anyone have a solution for this problem?

 

Thanks

Aswathy

Developer
Posts: 229
Registered: ‎08-14-2009
My Device: Bold 9900, DevAlpha A
My Carrier: Vodafone DE

Re: IndexOutOfBoundsException

Did you try a Project-> Clean. This sometimes resolves weird issus for me.
Willy R.
-
If my post solved your problem, make it easier for others to find by Accepting it as a solution or provide a Kudo if it was helpful for you. Thanks.
Contributor
Posts: 23
Registered: ‎12-17-2010
My Device: Not Specified
My Carrier: Software Engineer

Re: IndexOutOfBoundsException

Yes, I tried Project->Clean option so many times. But still the error exist

 

It won't take more than 17 images!!!

Developer
Posts: 229
Registered: ‎08-14-2009
My Device: Bold 9900, DevAlpha A
My Carrier: Vodafone DE

Re: IndexOutOfBoundsException

[ Edited ]

My game has more than 30 images and it works well without any problems. How do you use your images? Do you embed them?

 

Also the other thread says this issue has been resolved with the 0.9.1 of the sdk. Which version are you using? 

Willy R.
-
If my post solved your problem, make it easier for others to find by Accepting it as a solution or provide a Kudo if it was helpful for you. Thanks.
Contributor
Posts: 23
Registered: ‎12-17-2010
My Device: Not Specified
My Carrier: Software Engineer

Re: IndexOutOfBoundsException

Thanks a lot.....My issues solved with sdk 0.9.1.

 

Now it works well in Simulator.

 

Thanks for your  graet helpSmiley Very Happy