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
New Developer
ashihs_k
Posts: 31
Registered: ‎09-24-2008
My Device: Not Specified

907 invalid code http 406 error

Hi friends,

 

i got the error 907 invalid code http 406. while downloading my app through OTA.

 

i used simulator to download my app.

any one tell me why it given a error. 

Please use plain text.
Administrator
MSohm
Posts: 14,296
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: 907 invalid code http 406 error

Please see this link.

 

Support - 907 Invalid Jar Error when installing an application wirelessly
Article Number: DB-00432

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800708/800646/Support...

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
Developer
hasdy
Posts: 21
Registered: ‎08-12-2008
My Device: Not Specified

Re: 907 invalid code http 406 error

I am also getting this error (907 invalid cod)

I've referenced the article Mark had linked and addressed all the issues.

 

Here is my procedure and hopefully someone can point something wrong with my process.

 

I have 3 projects (2 applications and 1 library)..... my goal is to install all 3 in a single OTA download

 

Note:  The only cod that has siblings is the library (I'll reference as project C).

 

I put the cod, jad and jar files into a single directory, while ensuring that I extracted the contents of C.cod.  So the contents are as such:

A.cod

A.jar

A.jad

B.cod

B.jad

B.jar

C.cod

C-1.cod

C-2.cod

C.jad

C.jar

 

2.  I ran the following commands:

updateJad.exe A.jad B.jad

updateJad.exe A.jad C.jad

 

I've verified that the the new entries have been added in A.jad

 

3.  I put all files onto the web server.

 

4.  Using the Blackberry browser I hit A.jad and it looked like it downloaded all the way but at the end I get the error message "907 invalid cod"

 

Any help would be appreciated.

 

Thanks!!

Please use plain text.
Administrator
MSohm
Posts: 14,296
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: 907 invalid code http 406 error

Please verify that you are using a version of BlackBerry JDE that is supported by the target BlackBerry handheld.

 

What Is - Appropriate version of the BlackBerry JDE
Article Number: DB-00537

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800901/What_Is_-_Appr...

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
Developer
hasdy
Posts: 21
Registered: ‎08-12-2008
My Device: Not Specified

Re: 907 invalid code http 406 error

I am using the Blackberry JDE eclipse plugin but using the JDE 4.3 updateJad.exe.

I am deploying to the Curve 8330.

 

When I install it manually via the Desktop manager the application works fine..... although I am installing the raw cod files (without the updateJad.exe manipulation).

 

Is the process I laid out in the prior posting valid? 

 

Thanks!

Please use plain text.
Administrator
MSohm
Posts: 14,296
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: 907 invalid code http 406 error

The steps you listed sound valid. 

 

What version of the BlackBerry library and rapc is Eclipse pointing to?  You can see this by going to the Window menu, selecting Preferences, expanding BlackBerry JDE and clicking on Installed Components.

 

What version of BlackBerry handheld software are you testing with?  Do you have a public link to your JAD file you could share?

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
New Developer
nedumaran
Posts: 8
Registered: ‎11-09-2008
My Device: Not Specified

Re: 907 invalid code http 406 error

I'm hitting 907 invalid code and can't figure why.

 

Here are the steps I took:

 

1. Built the MIDlet using Netbeans.  

2. Ran the following command:

 

rapc import="c:\Program Files\Research in Motion\Blackberry JDE 4.0.2\lib\net_rim_api.jar" codename=MyApp -midlet jad=MyApp.jad MyApp.jar

3. This gave me MyApp.cod and updated MyApp.jad

4. Renamed MyApp.cod to MyApp.zip and extracted MyApp.cod and MyApp-1.cod

5. Uploaded the extracted .cod files and the .jad file to server for OTA downloads

 

I am able to successfully download the MIDlet with a BlackBerry9000.  It works flawlessly.

 

However, I get the 907 Invalid code error when the same is downloaded with a BlackBerry8707.  I checked the About box on the 8707 and it gave me v4.0.xxx (Platform 3.8....).  

 

Questions:

 

a. Are the steps above valid for 8707 and similar devices?

b. Should I be using an older version of the JDE for this?  Where do I find versions prior to 4.0?  Can't find them in the downloads page.

c. Which number should I take as the version to compare against the JDE version: v4.0 or Platform 3.8 ? 

 

Still new to the BB environment.  Appreciate pointers.

 

~ MUTHU

 

 

 

Please use plain text.
Developer
RexDoug
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: 907 invalid code http 406 error

In you original post you mentioned an HTTP 406 error. This error means "unnacceptable content".

 

Have you set up your MIME types for the JAD and COD file types on your web server? If not, this might be your problem.

 

See this KB article:

 

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800708/800646/What_Is...

 

Please use plain text.
New Developer
nedumaran
Posts: 8
Registered: ‎11-09-2008
My Device: Not Specified

Re: 907 invalid code http 406 error

Perhaps I posted in the wrong thread.  I am not getting a 406 error.  Mime types are set.

 

I am able to download the MIDlet with my BB9000 without any errors at all.

 

I get the "907 invalid code" error, only when I try downloading with the 8707.  I suspect the same error will be seen on other similar models.

 

 

 

 

Please use plain text.
Developer
RexDoug
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: 907 invalid code http 406 error

Sorry, I'm looking at the original post that says:

 

i got the error 907 invalid code http 406. while downloading my app through OTA.

Please use plain text.