Join Our 3 MILLION+ Members Today! Register Here | Login
Go Back   BlackBerry Forums at CrackBerry.com > BlackBerry Professionals > App Developers

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
    Thread Author   #1  
Old 07-05-2011, 11:15 AM
CrackBerry Newbie
 
Join Date: Jul 2011
Posts: 6
Likes Received: 0
Thanked 0 Times in 0 Posts
Default 907 invalid COD HTTP Error 406 not acceptable

I'm getting the 907 invalid COD, HTTP Error 406 not acceptable error when trying to download my app OTA. It's working fine on my 9800 simulator, but not on my real device (9800, v6.0.0.246)

I've created my app in Eclipse using the Blackberry Java Plug-in, and have code signed the files, and have the files from the deliverables\Web\6.0.0 folder

I've updated the MIME types on the webserver and restarted it (which obviously worked as before this I could not download it on the simulator)
Added the full URL path in the JAD, tried changing the JAR file size in the JAD to 0, rebuild/packaged the application many times, deleted the cache on my blackberry browser, and even created a new website & folder to my application files.
But I am still getting the same error.

I tried going directly to my COD files, and these downloaded fine.
Tried downloading the JAR file and got 907 error missing MIDlet-1 description (which I checked, and it wasnt)

So I'm now pretty lost as to what else it could be, and have wasted the whole day trying to figure it out.
Can anyone help me? Have I missed something obvious?


Below is the code from my JAD file:

Manifest-Version: 1.0
MIDlet-Version: 1.0.0
MIDlet-Jar-Size: 166899
MicroEdition-Configuration: CLDC-1.1
MIDlet-Jar-URL: http.....myTest.jar[/url]
RIM-COD-Module-Dependencies: net_rim_cldc,net_rim_xml_org,net_rim_networkapi,ne t_rim_xml
RIM-COD-URL-1: http.....myTest-1.cod
RIM-COD-SHA1-1: 54 a3 45 f9 0d 7f 17 82 89 bd d2 05 6b 37 3f d7 75 3e 14 9e
RIM-MIDlet-Flags-1: 0
RIM-COD-Size-1: 27508
RIM-COD-Module-Name: myTest
MIDlet-Name: myTest
RIM-COD-Size: 59692
RIM-COD-Creation-Time: 1309875004
MIDlet-1: myTest,img/icon.png,
RIM-COD-URL: http.....myTest.cod
RIM-COD-SHA1: 3d a9 0b 03 c0 3a a2 94 1a b8 1c 0b df a3 23 d2 74 4c 24 a4
MicroEdition-Profile: MIDP-2.0
MIDlet-Vendor: xxxx
Reply With Quote Tip this Post
    Thread Author   #2  
Old 07-05-2011, 11:49 AM
CrackBerry Newbie
 
Join Date: Jul 2011
Posts: 6
Likes Received: 0
Thanked 0 Times in 0 Posts
Default

Update: I've managed to install the application on my phone by renaming the jad to a cod - downloading all the files from the webserver, and then renaming it back to a jad and running it :-s

Which is fine for testing, but I can't expect clients to be doing this!

Any ideas what is going on?!!
Reply With Quote Tip this Post
  #3  
Old 07-05-2011, 07:09 PM
CrackBerry Genius of Geniuses
Device(s): 9900
Carrier: Tmobile
 
Join Date: Sep 2008
Posts: 14,977
Likes Received: 406
Thanked 334 Times in 268 Posts
Default

Let me guess, you are building a single .cod file as a result from eclipse?

Do this:
1 - Open the .cod file with winrar (or some other archive software).
2 - Extract all the .cod files to a new directory.
3 - Use a tool like BBSAK to manually create the .jad (add all the extracted .cod files) over again

Now use that .jad + all the extracted .cod files, it will work. The single .cod format is basically a compressed version of the multiple .cods that is meant to be used with .alx installation, not OTA.
__________________
My website http://papped.webatu.com
Reply With Quote Tip this Post
    Thread Author   #4  
Old 07-06-2011, 03:26 AM
CrackBerry Newbie
 
Join Date: Jul 2011
Posts: 6
Likes Received: 0
Thanked 0 Times in 0 Posts
Default

Nope - tried that. Eclipse created one cod file in the standard deliverable folder which I tried both as one file, and also extracted the seperate cod files from. and I also tried the using two cod files created by eclipse in the web folder - all of which were signed.
Reply With Quote Tip this Post
  #5  
Old 07-06-2011, 03:07 PM
CrackBerry Genius of Geniuses
Device(s): 9900
Carrier: Tmobile
 
Join Date: Sep 2008
Posts: 14,977
Likes Received: 406
Thanked 334 Times in 268 Posts
Default

Did you try recreating the .jad using bbsak from the multiple.cod files?

If you copy the .jad and .cod files to the memory card can you open the jad in file explorer and install locally?
__________________
My website http://papped.webatu.com
Reply With Quote Tip this Post
    Thread Author   #6  
Old 07-07-2011, 05:25 AM
CrackBerry Newbie
 
Join Date: Jul 2011
Posts: 6
Likes Received: 0
Thanked 0 Times in 0 Posts
Default

bbsak didn't work for me - couldnt even add a file to it.

and yes - the JAD installed fine when I copied the files across via the usb.

Any chance the code signing isnt working correctly? Am I doing it worng??
I'm using the blackberry plug-in for eclipse, right-clicking the project, going the the blackberry option - selecting package project, and then selecting sign with signature key - which goes to signature tool and shows the top two cods being signed, and the rest (which the same name) as not required. (says code files does not require a signature, when i select one of them)
I even tried adding the cod files manaually to the list - but they just came out as signed
Reply With Quote Tip this Post
  #7  
Old 07-07-2011, 02:05 PM
CrackBerry Genius of Geniuses
Device(s): 9900
Carrier: Tmobile
 
Join Date: Sep 2008
Posts: 14,977
Likes Received: 406
Thanked 334 Times in 268 Posts
Default

If the code signing didn't work you would be unable to install on an actual device at all (assuming you are using some signed apis).

If a local install works but the web install does not that kinda seems like it might be a server configuration issue... What does your htaccess file look like for the mime types?

If you want I could try uploading it to my web server temporarily and you can see if it installs. That's up to you though.
__________________
My website http://papped.webatu.com
Reply With Quote Tip this Post
    Thread Author   #8  
Old 07-08-2011, 03:59 AM
CrackBerry Newbie
 
Join Date: Jul 2011
Posts: 6
Likes Received: 0
Thanked 0 Times in 0 Posts
Default

got it working - IT manager checked the server again and discovered there were two mime types for the .cod! So he removed one, and now it works.
Reply With Quote Tip this Post
Reply
BlackBerry Forums at CrackBerry.com > > BlackBerry Professionals > App Developers   907 invalid COD HTTP Error 406 not acceptable

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes