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
PhilipPearl
Posts: 62
Registered: ‎05-29-2009
My Device: Not Specified

907 invalid COD, 5.0, Desktop Manager and OTA

Hi All

 

First I apologize for mentioning 907.

 

On a 9700 if I install my app via the Desktop Manager, then later attempt an OTA upgrade of the app the download fails instantly with "907 invalid COD".   The .jad and the cods can be installed OK if I remove the version installed via the Desktop Manager first.

 

In the event log I see the browser hit an IllegalArgumentExceptiopn in CodeModuleGroup <init> called from the browser ApplicationDownloadManager.

 

I don't see this on a 9550.  It installs just fine.

 

My instinct is an OS bug, but does anyone have any ideas?

 

Regards

 

Phil.

Developer
Posts: 1,474
Registered: ‎04-14-2009
My Device: Not Specified

Re: 907 invalid COD, 5.0, Desktop Manager and OTA

Just double-checking, does the JAD file reference multiple sibling CODs (e.g., myapp, myapp-1, myapp-2) or just the one big composite COD file (e.g., myapp.cod which is actually a ZIP archive)?

Developer
Posts: 1,474
Registered: ‎04-14-2009
My Device: Not Specified

Re: 907 invalid COD, 5.0, Desktop Manager and OTA

P.S. What's the application name as specified in the  JAD file (MIDlet-Name) and as specified in the ALX file (application.id attribute and application/name element)? The CodeModuleGroup constructor takes a group name as an only argument, and the group name is based on the application name.

 

P.P.S. Would you please post the full stack trace?

Developer
PhilipPearl
Posts: 62
Registered: ‎05-29-2009
My Device: Not Specified

Re: 907 invalid COD, 5.0, Desktop Manager and OTA

Hello

 

Yes, it is multiple sibling cods, and they are broken out on the web site, not a single .cod-that-is-actually-a-zip.  The web download works fine on other phones, and on this phone if I don't first install via the alx

 

In the ALX file the id and the name are both PPVM, and in the .jad the MIDlet name is PPVM

 

Here's the stack trace

 

guid:0x1A77581FBCC4EC23 time: Fri Mar 26 09:34:40 2010  severity:0 type:2 app:net.rim.browser data:Brtd 3094 2548
guid:0x9C3CD62E3320B498 time: Fri Mar 26 09:34:41 2010  severity:1 type:3 app:Java Exception data:
    IllegalArgumentException
    No detail message
    net_rim_cldc-7(4B1190C7)
     CodeModuleGroup
     <init>
     0x3426
    net_rim_bb_browser_lib-1(4B119A4C)
     ApplicationDownloadManager
     run
     0x6B3
    net_rim_cldc-2(4B1190C7)
     Thread
     run
     0xAC10
guid:0x1A77581FBCC4EC23 time: Fri Mar 26 09:34:41 2010  severity:0 type:2 app:net.rim.browser data:JAD 907

 

Thanks very much for taking an interest

 

Phil

Developer
Posts: 1,474
Registered: ‎04-14-2009
My Device: Not Specified

Re: 907 invalid COD, 5.0, Desktop Manager and OTA

Would  you please post the full contents of your ALX and JAD files?

Developer
PhilipPearl
Posts: 62
Registered: ‎05-29-2009
My Device: Not Specified

Re: 907 invalid COD, 5.0, Desktop Manager and OTA

<loader version="1.0">
   <application id="PPVM">
      <name>PPVM</name>
      <description/>
      <version>1.003</version>
      <vendor>MetaSwitch</vendor>
      <copyright>Copyright Phil 2010</copyright>
      <fileset Java="1.0" _blackberryVersion="[4.5.0,4.7.0)">
         <directory>4.5.0</directory>
         <files>
PPVM.cod
</files>
      </fileset>
      <fileset Java="1.0" _blackberryVersion="[4.7.0,)">
         <directory>4.7.0</directory>
         <files>
PPVM.cod
</files>
      </fileset>
   </application>
</loader>

 

And .jad file (for the 4.7.0 and above version)

 

RIM-TouchCompatibilityMode-UserChangeable: true
RIM-COD-SHA1-4: 9e d6 9e 68 47 84 d6 3d b9 ba 78 70 8d e3 89 4d c8 95 ea 50
RIM-COD-SHA1-3: 2c 27 53 7a 1d db c5 39 30 aa 60 55 12 bb ea 92 47 2f 34 c7
RIM-COD-SHA1-2: b8 43 d7 9d 50 c6 02 2b a4 5e b2 ac dd bb fd ad 7b 20 32 99
RIM-COD-SHA1-1: 37 ee b1 fe 6c d6 5c 58 9b 95 3f 6b a1 b3 70 ec 4f 86 2a 48
RIM-MIDlet-Flags-1: 1
MIDlet-Jar-Size: 952374
MIDlet-Name: PPVM
MIDlet-Jar-URL: PPVM.jar
MicroEdition-Configuration: CLDC-1.1
RIM-COD-URL-8: PPVM-8.cod
RIM-COD-URL-7: PPVM-7.cod
RIM-MIDlet-Position-1: 1000
RIM-COD-URL-6: PPVM-6.cod
RIM-COD-Module-Dependencies: net_rim_cldc,net_rim_bbapi_browser,net_rim_pdap,net_rim_bbapi_invoke,net_rim_bbapi_phone,net_rim_bbapi_mailv2,net_rim_os,net_rim_bluetooth,net_rim_bbapi_options
RIM-COD-URL-5: PPVM-5.cod
RIM-COD-URL-4: PPVM-4.cod
RIM-COD-URL-3: PPVM-3.cod
RIM-COD-URL-2: PPVM-2.cod
RIM-COD-URL-1: PPVM-1.cod
RIM-TouchCompatibilityMode: false
RIM-COD-Size-8: 63836
RIM-COD-Size-7: 54596
RIM-COD-Size-6: 55400
RIM-COD-Size-5: 57504
RIM-COD-Size-4: 53392
RIM-COD-Size-3: 56176
RIM-COD-Module-Name: PPVM
RIM-COD-Size-2: 36776
RIM-COD-Size-1: 79252
RIM-MIDlet-Icon-Count-1: 1
RIM-COD-SHA1: 6a 65 63 58 2c 5e e9 c1 62 04 89 db c5 48 b3 de 04 30 2b c9
RIM-COD-Size: 83148
MicroEdition-Profile: MIDP-2.0
RIM-MIDlet-Icon-1-1: ../processed/VVMBrandX/com/metaswitch/vvm/brand/launcherIconstar.png,focused
MIDlet-Vendor: MetaSwitch
MIDlet-1: PPVM,../processed/VVMBrandX/com/metaswitch/vvm/brand/launcherIcon.png,
RIM-COD-URL: PPVM.cod
RIM-MIDlet-NameResourceId-1: 9
Manifest-Version: 1.0
MIDlet-Version: 1.004
RIM-COD-SHA1-8: 20 5a 16 5e 11 5d 12 70 d3 9e 34 f3 ae 29 40 35 d2 f9 d4 da
RIM-COD-SHA1-7: 9b 67 27 e3 bc 25 f3 3d c1 a2 40 dd d6 1c 17 64 04 93 5f 56
RIM-MIDlet-NameResourceBundle-1: com.metaswitch.vvm.VVMBrandPP.brand.vvmBrand
RIM-COD-SHA1-6: 0f a7 11 02 0d 34 3a 0a f1 03 18 58 4f 7a d3 17 f3 8f 23 0b
RIM-COD-Creation-Time: 1268394011
RIM-COD-SHA1-5: 40 8c 35 c4 fe 2a 96 ca ec 54 cb 7d 6f e8 64 ac 93 15 17 5f

Developer
PhilipPearl
Posts: 62
Registered: ‎05-29-2009
My Device: Not Specified

Re: 907 invalid COD, 5.0, Desktop Manager and OTA

Oh, I get the same problem with a very simple single COD test app built directly from Eclipse.  I'm betting this is a bug in the OS.  I'll raise a JIRA.  I'd still be greatful (and a little surprised) if anyone can offer a work-around.

New Developer
ftraian
Posts: 10
Registered: ‎10-30-2008
My Device: Not Specified

Re: 907 invalid COD, 5.0, Desktop Manager and OTA

did you find a solution to this problem?

I'm having exactly the same problem, asked on the forum but didn't got to any solution.