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

Reply
Developer
Posts: 168
Registered: ‎11-22-2009
My Device: 9000 Bold, 8300 Curve

OTA deployment isn't finding dependent COD

I'm having an issue with accessing a COD in my OTA deployment. I have two COD's (and many siblings). One is Test which is my main application, the other is Resources which is where I have my Resource files that I need to access within the main app.

 

It launches my main application ok, but once it tries to read anything from my Resource I get a NullPointerException presumably because it can't find that module.

 

I do have Resource set as a dependency in my Test project.

 

Due to the size, I ordered the Resources COD's first, does that matter?

 

Here is my jad (sorry it's VERY big):

 

 

Manifest-Version: 1.0
MIDlet-Version: 1.0.2
MIDlet-1: Test!,src/icon.png,
MicroEdition-Configuration: CLDC-1.0
MIDlet-Jar-URL: Test.jar
RIM-COD-Module-Name: Test
MIDlet-Name: Test
MIDlet-Jar-Size: 284553
RIM-COD-URL-80: Test-2.cod
RIM-COD-Module-Dependencies: net_rim_cldc,net_rim_locationapi,net_rim_xml,net_rim_xml_org,net_rim_bbapi_options,net_rim_bbapi_browser,net_rim_bbapi_maps,net_rim_bbapi_invoke,Resources
RIM-COD-SHA1-80: f2 b1 d4 08 df 04 4a f0 76 72 49 f8 21 06 7d b0 58 68 4c 28
RIM-COD-URL-79: Test-1.cod
RIM-COD-SHA1-79: ab 04 8a c2 fa aa de 69 0b 18 5f d6 78 14 23 b6 80 a6 0c 81
RIM-COD-Size-80: 17816
RIM-COD-Size-79: 63344
RIM-COD-URL-78: Test.cod
RIM-COD-Size-78: 59764
RIM-COD-SHA1-78: ac 1d 57 c6 8c 62 34 b2 3d c8 8c 22 4c 70 5f 41 dc 8c 82 04
RIM-COD-URL-77: Resources-77.cod
RIM-COD-URL-76: Resources-76.cod
RIM-COD-URL-75: Resources-75.cod
RIM-COD-URL-74: Resources-74.cod
RIM-COD-URL-73: Resources-73.cod
MicroEdition-Configuration: CLDC-1.1
RIM-COD-URL-72: Resources-72.cod
RIM-COD-URL-71: Resources-71.cod
RIM-COD-URL-70: Resources-70.cod
RIM-COD-Size-77: 55244
RIM-COD-Size-76: 57488
RIM-COD-Size-75: 52904
RIM-COD-Size: 55088
RIM-COD-Size-74: 57620
RIM-COD-URL-69: Resources-69.cod
RIM-COD-Size-73: 50976
RIM-COD-URL-68: Resources-68.cod
RIM-COD-Size-72: 50976
RIM-COD-URL-67: Resources-67.cod
RIM-COD-Size-71: 53124
RIM-COD-URL-66: Resources-66.cod
RIM-COD-Size-70: 51004
RIM-COD-URL-65: Resources-65.cod
RIM-COD-URL-64: Resources-64.cod
RIM-COD-URL-63: Resources-63.cod
RIM-COD-URL-62: Resources-62.cod
RIM-COD-URL-61: Resources-61.cod
RIM-COD-URL-60: Resources-60.cod
RIM-COD-Size-69: 51000
RIM-COD-Size-68: 51000
RIM-COD-Size-67: 55760
RIM-COD-Size-66: 50976
RIM-COD-Size-65: 54528
RIM-COD-Size-64: 53232
RIM-COD-URL-59: Resources-59.cod
RIM-COD-Size-63: 51000
RIM-COD-URL-58: Resources-58.cod
RIM-COD-Size-62: 51000
RIM-COD-URL-57: Resources-57.cod
RIM-COD-Size-61: 51000
RIM-COD-URL-56: Resources-56.cod
RIM-COD-Size-60: 52452
RIM-COD-URL-55: Resources-55.cod
RIM-COD-URL-54: Resources-54.cod
RIM-COD-URL-53: Resources-53.cod
RIM-COD-URL-52: Resources-52.cod
RIM-COD-URL-51: Resources-51.cod
RIM-COD-URL-50: Resources-50.cod
RIM-COD-Size-59: 57136
RIM-COD-Size-58: 50976
RIM-COD-Size-57: 50972
RIM-COD-Size-56: 57148
RIM-COD-URL-9: Resources-9.cod
RIM-COD-Size-55: 58420
RIM-COD-URL-8: Resources-8.cod
RIM-COD-Size-54: 58060
RIM-COD-URL-49: Resources-49.cod
RIM-COD-URL-7: Resources-7.cod
RIM-COD-Size-53: 51000
RIM-COD-URL-48: Resources-48.cod
RIM-COD-URL-6: Resources-6.cod
MicroEdition-Profile: MIDP-2.0
RIM-COD-Size-52: 52160
RIM-COD-URL-47: Resources-47.cod
RIM-COD-URL-5: Resources-5.cod
RIM-COD-Size-51: 51024
RIM-COD-URL-46: Resources-46.cod
RIM-COD-URL-4: Resources-4.cod
RIM-COD-Size-50: 51024
RIM-COD-URL-45: Resources-45.cod
RIM-COD-URL-3: Resources-3.cod
RIM-COD-URL-44: Resources-44.cod
RIM-COD-URL-2: Resources-2.cod
RIM-COD-URL-1: Resources-1.cod
RIM-COD-URL-43: Resources-43.cod
RIM-COD-URL-42: Resources-42.cod
RIM-COD-URL-41: Resources-41.cod
RIM-COD-Size-9: 58480
RIM-COD-URL-40: Resources-40.cod
RIM-COD-Size-8: 58088
RIM-COD-Size-7: 40956
RIM-COD-Size-6: 56656
RIM-COD-Size-5: 58572
RIM-COD-Size-4: 57896
RIM-COD-Size-3: 42492
RIM-COD-Size-2: 56896
RIM-COD-Size-1: 48176
RIM-COD-Size-49: 51088
RIM-COD-Size-48: 50976
RIM-COD-Size-47: 50976
RIM-COD-Size-46: 50976
RIM-COD-Size-45: 54752
RIM-COD-Size-44: 51000
RIM-COD-URL-39: Resources-39.cod
RIM-COD-Size-43: 57804
RIM-COD-URL-38: Resources-38.cod
RIM-COD-URL-37: Resources-37.cod
RIM-COD-Size-42: 51000
RIM-COD-URL-36: Resources-36.cod
RIM-COD-Size-41: 57088
RIM-COD-URL-35: Resources-35.cod
RIM-COD-Size-40: 50976
RIM-COD-URL-34: Resources-34.cod
RIM-COD-URL-33: Resources-33.cod
RIM-COD-URL-32: Resources-32.cod
RIM-COD-URL-31: Resources-31.cod
RIM-COD-URL-30: Resources-30.cod
RIM-COD-Size-39: 50976
RIM-COD-Size-38: 53160
RIM-COD-Size-37: 50976
RIM-COD-Size-36: 50972
RIM-COD-Size-35: 58312
RIM-COD-URL-29: Resources-29.cod
RIM-COD-Size-34: 51284
RIM-COD-URL-28: Resources-28.cod
RIM-COD-Size-33: 51028
RIM-COD-URL-27: Resources-27.cod
RIM-COD-Size-32: 61732
RIM-COD-URL-26: Resources-26.cod
RIM-COD-Size-31: 51028
RIM-COD-URL-25: Resources-25.cod
RIM-COD-Size-30: 51028
RIM-COD-URL-24: Resources-24.cod
RIM-COD-URL-23: Resources-23.cod
RIM-COD-URL-22: Resources-22.cod
RIM-COD-URL-21: Resources-21.cod
RIM-COD-URL-20: Resources-20.cod
RIM-COD-SHA1-77: 2c 0f 4b b4 b6 36 73 1e 35 77 fc 2f 1b 0e 4b 21 90 b1 c3 a4
RIM-COD-SHA1-76: 89 1c d9 63 9e 53 81 1a f1 cb da 4e 05 6e 09 a3 02 7a bc ed
RIM-COD-SHA1-75: f2 64 8b 6d 7c f5 0e b5 08 d0 17 5c d3 31 6f 1c 4f 79 d0 3d
RIM-COD-SHA1-74: e0 52 af 23 ef c7 d8 32 bf 5d 5d 13 19 7d 17 79 cc a7 4c ca
RIM-COD-SHA1-73: 65 38 b1 7b cc 6b 9f 06 8e 2c 67 3c 91 c2 b9 3b b0 5c 03 33
RIM-COD-URL: Resources.cod
RIM-COD-SHA1-72: d9 67 32 41 52 53 c0 53 a6 6d 3e d3 b3 af 42 33 1a 34 30 46
RIM-COD-SHA1-71: 14 ca 32 71 71 0a df 8a da 7e bc cf 8a 3b c5 79 6c 39 e9 9d
RIM-COD-SHA1-70: 9a 1b 14 af 39 ef 19 62 33 bf 92 b4 03 48 12 aa 02 7d 28 dc
RIM-COD-Size-29: 51028
RIM-COD-Size-28: 51028
RIM-COD-Size-27: 51024
RIM-COD-Size-26: 51024
RIM-COD-Size-25: 54872
RIM-COD-URL-19: Resources-19.cod
RIM-COD-Size-24: 40704
RIM-COD-URL-18: Resources-18.cod
RIM-COD-Size-23: 57988
RIM-COD-URL-17: Resources-17.cod
RIM-COD-Size-22: 55464
RIM-COD-URL-16: Resources-16.cod
RIM-COD-Size-21: 56816
RIM-COD-URL-15: Resources-15.cod
RIM-COD-Size-20: 58540
RIM-COD-URL-14: Resources-14.cod
RIM-COD-URL-13: Resources-13.cod
RIM-COD-URL-12: Resources-12.cod
RIM-COD-URL-11: Resources-11.cod
RIM-COD-SHA1-69: 5a de 06 58 a6 a5 6d 57 92 30 9e 82 81 f2 5d 11 e8 73 02 ae
RIM-COD-URL-10: Resources-10.cod
RIM-COD-SHA1-68: f0 2d 65 63 5e 5c 51 8c a0 db 4f b7 7f 2e 49 cc af 87 ce 00
RIM-COD-SHA1-67: 30 ff 17 91 51 90 88 60 f9 25 b9 a2 c1 48 f4 b7 2d 21 89 5f
RIM-COD-SHA1-66: 57 c9 e7 2d c8 cd 20 70 1b f8 44 4c 66 0f 82 10 fe d9 4f 6c
RIM-COD-SHA1-65: 32 dd 15 8f 44 13 d8 5c 4f 32 c0 e8 fd ff 16 dc a8 7b 15 bf
RIM-COD-SHA1-64: 6d 1c ca b6 d2 e0 0f cf a0 8e b3 3b 69 7a 32 cf 21 fe 54 fd
RIM-COD-SHA1-63: 81 c8 c4 c7 c3 07 1f 6c 82 cd d2 cc 11 1e ef d7 a4 15 cb f5
RIM-COD-SHA1-62: e8 5b 33 fb 1c 63 0d 4d 35 a0 32 26 38 51 d1 1c fd 21 0e 24
RIM-COD-SHA1-61: 3f 9f 84 be d5 3d 12 56 55 d6 86 32 ef 45 57 b3 a3 c9 47 90
RIM-COD-SHA1-60: ba b7 52 6e b6 2b c0 bf 60 8f 8c 6d 84 e9 d3 16 3f 92 65 ca
RIM-COD-Size-19: 56452
RIM-COD-Size-18: 51524
RIM-COD-Size-17: 43736
RIM-COD-Size-16: 48900
RIM-COD-Size-15: 55308
RIM-COD-Size-14: 57324
RIM-COD-Size-13: 47376
RIM-COD-Size-12: 46672
RIM-COD-Size-11: 57352
RIM-COD-Size-10: 56036
RIM-COD-SHA1-59: 82 8f f1 4a e6 ff 53 55 d1 65 7a 90 ae cf 76 ad f4 e7 55 17
RIM-COD-SHA1-58: d4 12 ef 88 d8 68 b4 89 69 ef 5d d2 a6 8c 39 31 2b 4b 49 a7
RIM-COD-SHA1-57: 12 aa 1f e1 62 a4 56 ed a7 2b 4f a0 8e 1d 61 16 23 25 6c 33
RIM-COD-SHA1-56: da e3 96 50 89 ad be e1 85 65 dc 1b 96 71 88 51 e8 a9 5a 3f
RIM-COD-SHA1-55: 38 1d db d7 bf da 3e 4f 7f 95 49 ac 56 b8 78 79 fa 38 39 38
RIM-COD-SHA1-54: c2 4c 9b 31 74 e5 c6 80 5d 21 5d 7a e2 3c 7a 59 e1 6a fc ca
RIM-COD-SHA1-53: 39 81 d3 ff ab 80 46 17 b4 f9 a5 26 9e a8 bd 21 d3 46 ab b9
MIDlet-1: ,,
RIM-COD-SHA1-52: ff 03 8f 1e fd c2 41 15 6a 9b f3 c4 ca 11 1d 16 42 6d 7b 61
RIM-COD-SHA1-51: 31 03 46 92 9d 5a 68 af b4 26 a9 f3 2c 93 2a 5a 22 08 74 5e
RIM-COD-SHA1-50: 83 6f 72 7a 1c e8 03 d6 e6 d1 f0 68 e1 33 2a f3 8c 8f c4 7a
RIM-COD-SHA1: 79 5c 97 fb be 81 e2 22 c7 d9 4e 76 cd b7 11 1d 78 e9 c3 3f
RIM-COD-SHA1-49: 5b 35 c5 89 47 e2 46 5f 0a d0 fd 87 1f 51 18 45 f5 17 05 ed
RIM-COD-SHA1-48: 89 eb cd 50 df a8 bb 99 59 ad 30 9a 61 86 0a 16 9c 3e b2 41
RIM-COD-SHA1-47: 1b 72 b7 06 82 61 26 00 b4 08 f2 b1 bb 67 04 df 0d 5d a0 7c
RIM-COD-SHA1-46: fa b3 cc 09 73 84 32 2d f4 ed 80 02 1c 1f 1b 07 09 9f 91 42
RIM-COD-SHA1-45: a0 57 3a 18 d1 71 43 f6 25 65 10 d5 ba 43 fa c3 6f 8b 39 76
RIM-COD-SHA1-44: b2 2d 78 65 9f 45 63 aa 01 de 50 b2 7b ae 5a 69 d7 b5 61 41
RIM-COD-SHA1-43: 86 56 d9 ba 51 89 e4 63 05 2c 11 19 e1 95 c3 f7 17 2f b1 2e
RIM-COD-SHA1-42: a2 3e 9d 30 1e dc 97 57 b2 ad d2 2a ea cb 99 82 4c 2e d4 bc
RIM-COD-SHA1-41: ec 7a 77 5b 61 ac 05 24 78 69 88 ac ae d9 e7 b6 46 b2 a3 e1
RIM-COD-SHA1-40: db c4 e1 80 52 a7 68 e6 4c aa 5d c6 55 7f 93 8a cd dc 02 0a
RIM-COD-SHA1-39: 02 18 00 b9 53 60 50 60 0f c9 32 ac 1e cd 01 51 ee 8e a7 ea
RIM-COD-SHA1-38: 3f 19 a8 71 19 ed e9 05 89 22 29 dd 6d 08 a8 fb 87 7f 27 1b
RIM-COD-SHA1-37: 98 d8 be 3f ae 16 3e b2 3c c9 cd e4 20 ac 7c 5e da 07 f4 98
RIM-COD-SHA1-36: 61 d6 38 50 1e c9 4e 07 0a 60 35 44 c6 6d 22 e3 6c 30 0d 47
RIM-COD-SHA1-35: 19 49 b7 e7 30 34 4f 74 ed 31 f4 1e 33 ad c2 b7 ab 9a 15 22
RIM-COD-SHA1-34: ce b7 1b 39 74 c3 34 d9 68 42 49 e0 96 fb b1 61 7f 54 57 51
RIM-COD-SHA1-33: 42 3f 69 88 fb 62 b5 27 0e 1d a7 97 0d 2b ba bb d4 88 ac a4
RIM-COD-SHA1-32: 2a 45 7d b6 7c 67 9d 03 37 d0 f0 ab 27 43 28 d4 a0 08 9f 11
RIM-COD-SHA1-31: 67 b5 00 42 d3 ba 02 1d ab 4a 42 90 62 71 fd a3 22 02 c6 ee
RIM-COD-SHA1-30: cb b3 e0 17 86 32 2e a8 8b 53 e5 30 e5 c0 cf c6 37 d7 a4 5e
RIM-COD-SHA1-9: f8 6a 7e a7 ed 88 94 3b 4e 41 4a 7f 7d 35 2f d2 fd a0 10 16
RIM-COD-SHA1-8: 1b ed 4f 33 99 82 b0 7e 44 1d 1d 18 96 f3 26 a9 06 19 9e 19
RIM-COD-SHA1-7: 18 40 a8 b8 be 9a 2e 40 57 fe 03 70 dd 0a ef 26 58 ca fd 15
RIM-COD-SHA1-6: 59 46 ab 04 3b ec 34 6b 39 35 7b 5c ce 80 26 37 6f a4 0c 3e
RIM-COD-SHA1-5: c4 36 ed 18 a0 58 44 97 53 1d 85 1c 9a db 47 6a 71 34 78 2f
RIM-COD-SHA1-4: 39 cf a8 73 76 f1 ff b9 78 7f 85 30 51 f3 3a 8a eb 19 54 16
RIM-COD-SHA1-3: bc a4 78 95 62 ac 8e 57 2a f6 a1 cd f5 b8 5f 80 24 c3 a8 dd
RIM-COD-SHA1-2: e2 c0 c0 49 ab 6f bd 21 96 47 99 b8 5b e9 19 57 d0 24 69 af
RIM-COD-SHA1-1: 74 41 b5 f8 2a d0 52 0d 2d 56 b9 b9 79 7a fb c5 87 1b b5 e5
RIM-COD-SHA1-29: 45 01 02 71 d1 1a 34 8c d3 31 b9 8d b8 e1 2f c6 86 eb 7f a1
RIM-COD-SHA1-28: 01 27 1e 86 7a 6e 17 b3 ce 74 7d 65 ea f5 12 4a d2 a6 8d b0
RIM-COD-SHA1-27: 86 cd cc 1e 43 f7 d5 1f 6d 3f e8 02 f8 2d 0e b7 a6 b6 8c dc
RIM-COD-SHA1-26: 04 7c a6 c1 04 88 ef 5e 0d 28 45 2a 18 c1 7b a1 60 36 17 4b
RIM-COD-SHA1-25: 58 46 73 16 0c 17 c4 dd 68 f5 6e e1 19 8b 30 63 44 ee b5 02
RIM-COD-SHA1-24: a9 7a dc d1 3c dc 45 04 0a a3 e4 fb 78 ad b8 8c 4b 04 55 e9
RIM-COD-SHA1-23: ea 2a 75 11 de d5 71 9b 81 23 54 e4 8f 31 26 df f1 1c 07 44
RIM-COD-SHA1-22: f5 11 ed 37 a5 8c a5 5c b7 c3 58 1c 03 a2 83 cb 0b 99 1a d1
RIM-COD-SHA1-21: a3 34 0e c8 41 91 8f a6 6b f0 9c 58 e0 b0 f9 b7 12 bd 81 f2
RIM-COD-SHA1-20: c7 96 97 85 d3 95 86 91 5b a9 3a 10 47 e2 4e ba ae ec 59 ce
RIM-COD-Creation-Time: 1271967770
RIM-COD-SHA1-19: 46 ec 20 d8 dc 27 b6 bb e0 f7 7d 78 2c d6 46 94 b5 b4 e3 79
RIM-COD-SHA1-18: 7a 75 53 eb be b0 f0 5a 97 6c 70 4d 16 0c 41 d2 37 3a 60 d2
RIM-COD-SHA1-17: 32 b1 10 c2 99 c6 65 bc 5f 31 e6 39 b6 ee 7d 80 e8 55 63 df
RIM-COD-SHA1-16: 4f 5c ea 79 79 0f d0 25 70 47 d1 66 38 bc fd 64 c0 b0 2f ee
RIM-COD-SHA1-15: 68 ba 57 43 68 7e 09 f3 94 7e 7c 7a 8b 49 98 47 80 88 68 a4
RIM-COD-SHA1-14: 3e a1 b1 a6 4e 23 5c 15 c2 c4 22 07 2b 05 cc d6 c8 4d df d6
RIM-COD-SHA1-13: 02 a1 30 af 0c 58 74 9f 2c 62 d2 1f 6d ce 87 a2 97 d2 a2 fe
RIM-COD-SHA1-12: 60 4c ae 4e cf 8c 06 f2 22 01 16 83 e0 9b 18 2c 80 11 86 99
RIM-COD-SHA1-11: 7e bf fd c7 f9 ea e6 6d af 36 2f a3 0e f9 33 fd f3 ac 73 9c
RIM-COD-SHA1-10: 91 5c e0 f3 c2 d0 46 37 b9 4d 7e d6 cc 0a 7a 13 3b e7 86 bc
MicroEdition-Profile: MIDP-1.0
MIDlet-Vendor: My Company

 Anyone have any ideas?

 

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: OTA deployment isn't finding dependent COD

Can you confirm that you are loading that OTA.  I thought there was a limit of 12 cods file sin a JAD, and it appears you have easily blown that!

Developer
Posts: 168
Registered: ‎11-22-2009
My Device: 9000 Bold, 8300 Curve

Re: OTA deployment isn't finding dependent COD

[ Edited ]

I completely deleted the app from my device before loading it OTA. It also is loading code that wasn't in my previous version, so yes I can confirm it's the version from OTA.

 

I'm running v4.6 on my device if that helps.

 

I have a side question though.. let's say I just load my main app OTA and then download the Resources COD the very first time the app starts up. Is that a viable alternative? Meaning, can I reference a COD that is not yet loaded by my jad and then download it once I start my app?

Developer
Developer
Posts: 1,123
Registered: ‎02-10-2009
My Device: 8130 / 8350 / 9530 / 9550 / 9850 / PlayBook
My Carrier: Verizon

Re: OTA deployment isn't finding dependent COD

[ Edited ]

No, if the COD file is listed as a dependency, then it will not let you install until all the dependencies have been met. But if you do not declare it as a dependency and just download and reference it later, that should work.

 

@peter

The limit of cod files is more than 12. I have an app with 23 and it loads fine on every device so far.

Developer
Posts: 168
Registered: ‎11-22-2009
My Device: 9000 Bold, 8300 Curve

Re: OTA deployment isn't finding dependent COD

[ Edited ]

I've just modified my main app with exception handling such that it provides a default image in case it is unable to retrieve one from my resource. Everything with my program works with the exception of being able to retrieve images that I have stored in the Resources COD. It seems that everything is set right as far as dependencies go but it's still not working. I can't seem to think of anything else to prove or disprove that my main app can "see" the dependent COD.

 

In case this helps, here is the code where I access the second COD (it works in the simulator):

 

 

inputStream = (InputStream) Connector.openInputStream(
                "cod://Resources/" + bitmapName);

 

 

On another sidenote, I can't load my jad in from a simulator. About halfway through the download it dies with a connection error. Presumably due to the size of my CODs?

 

Update: I checked the applications list under Options->Advanced Options->Applications and both modules are listed.

Developer
Posts: 168
Registered: ‎11-22-2009
My Device: 9000 Bold, 8300 Curve

Re: OTA deployment isn't finding dependent COD

The good news and bad news is that I discovered an error something like "missing signing key 0x33".  This is a key only RIM has access to. I thought we were allowed to call into another cod in the way I am but I guess I'm mistaken.

 

I suppose I will have to put it all in one COD unless someone has a better suggestion?

Highlighted
Developer
Developer
Posts: 1,123
Registered: ‎02-10-2009
My Device: 8130 / 8350 / 9530 / 9550 / 9850 / PlayBook
My Carrier: Verizon

Re: OTA deployment isn't finding dependent COD

Another user suggested in another thread that he has a function that resturns a stream to the desired resource in his resource cod, and that how he access his needed files. you could try that.