OTA problem

Hello frnds,

I am trying to install my application over the air but im gettin this error anybody have the idea please help me it is very necessary ...

Thanks in advance....

ERROR:--OTA Error Code (37) - The server did not hava a resource with the correct type (code 406) or the JAD downloaded has the wrong media type. [application/octet-stream]

This error come when i enter into install application thr .html it will able to find jad file bt through jad when i am goin to jar it will givin this error.

Plz help...

[551 byte] By [anup123a] at [2007-11-27 7:47:14]
# 1
Have you set the correct mime type in the server?for JAD:text/vnd.sun.j2me.app-descriptorfor JAR:application/java-archive
PeppeMEa at 2007-7-12 19:28:17 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2
can you plz tell me where to set that MIME type i am not able to find it Plz help me?Thanks and Regards,Anup
anup123a at 2007-7-12 19:28:17 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 3

You must set it on server.

For example if you have a apache server, you can make an .htaccess file in the jad and jar directory's.

In this file you must add the syntax:

AddType text/vnd.sun.j2me.app-descriptor .jad

AddType application/java-archive .jar

OTA:

http://developers.sun.com/mobility/midp/articles/ota/

similiar problem.

http://forum.java.sun.com/thread.jspa?threadID=687837

PeppeMEa at 2007-7-12 19:28:18 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 4

Hi i m really get confused now cause i have read in the article

http://developers.sun.com/mobility/midp/ttips/wtkota/

that if you are using apache tomcat versions grter than 4 ther is no need to set the MIME type. I am using tomcat 5.5 and i have set the MIME type in the server named conf/web.xml file

My jad file is

MIDlet-1: SKFMobi, SKFMobi.png, SKFMobi

MIDlet-Jar-Size: 153667

MIDlet-Jar-URL: SKFMobi.jar

MIDlet-Name: SKFMobi

MIDlet-Vendor: Ecoaxis Systems Pvt Ltd

MIDlet-Version: 1.0

MicroEdition-Configuration: CLDC-1.1

MicroEdition-Profile: MIDP-2.0

Manifest file

MIDlet-1: SKFMobi, SKFMobi.png, SKFMobi

MIDlet-Name: SKFMobi

MIDlet-Vendor: Ecoaxis Systems Pvt Ltd

MIDlet-Version: 1.0

MicroEdition-Configuration: CLDC-1.1

MicroEdition-Profile: MIDP-2.0

still i am gettin the same error..

plz help

anup123a at 2007-7-12 19:28:18 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 5

Ok, In order to discover the problem I suggest this method.

Download an http monitor. like ethreal or tamper data fire fox extension.

then try to download your jad file from browser and another jad file (that working with your phone, for example try to download opera mini - http://www.operamini.com/download/pc/)

You can match the header send by your server and opera jad server, so you can find the differences and probaly the problem.

PeppeMEa at 2007-7-12 19:28:18 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 6
Hello dude,I am not able to get anything frm wht u hav post . Can u plz explain me the procedure to run via ota frm start to end. Cause i have tried a lot and i know ther was a some mistake but i am not able to get it . So plz explain me dude.Thanks in advance...
anup123a at 2007-7-12 19:28:18 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 7
I'm using apache server (no tomcat, I have no experience about tomcat).I upload jad and jar file in a directory in my http server.I add the correct mime type.Then I download jad file by using phone browser with jad url.Then it install midlet suite in my phone.
PeppeMEa at 2007-7-12 19:28:18 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 8

hello u have told me abt this

For example if you have a apache server, you can make an .htaccess file in the jad and jar directory's.

In this file you must add the syntax:

AddType text/vnd.sun.j2me.app-descriptor .jad

AddType application/java-archive .jar

so can u explain me abt that .htaccess file how to create that and whr to store that?

plz

thanks in advancce......

anup123a at 2007-7-12 19:28:18 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 9

Hi Anup,

Lets set the task in step by step. If u get failed in any of these steps, your process may be wrong.

Step 1. Try to install your midlet in WTK using OTA.

Step 2. Upload the jad/jar to an web server. Make it sure u have uploaded both in the same folder.

Step 3. Try to download them using the web browser. (This will ensure the mime type confusion).

Step 4. If u are at this step and still unable to install ur midlet, I'm hopeless.

Regds,

SD

find_suvro@SDNa at 2007-7-12 19:28:18 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 10

> hello u have told me abt this

>

> For example if you have a apache server, you can make

> an .htaccess file in the jad and jar directory's.

>

> In this file you must add the syntax:

> AddType text/vnd.sun.j2me.app-descriptor .jad

> AddType application/java-archive .jar

>

>

> so can u explain me abt that .htaccess file how to

> create that and whr to store that?

> plz

> thanks in advancce......

.htaccess is simply text file with the two AddType line above.

PeppeMEa at 2007-7-12 19:28:18 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 11

Hi,

I am ab;e to install the aaplication on web browser bt when i run that applicaiton through run via OTA option in wtk22 on emulator i am able to find the jad path bt whn i am goin to jar it will givin me this error. I have cheked the mime settings also they are correct

ERROR:>

OTA Error Code (38) - The server did not hava a resource with the correct type (code 406) or the JAR downloaded has the wrong media type. []

Please tell me wher do i am wrong ...

Thanks in advance...............

anup123a at 2007-7-12 19:28:18 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 12

> Hi,

> I am ab;e to install the aaplication on web

> browser bt when i run that applicaiton through run

> via OTA option in wtk22 on emulator i am able to find

> the jad path bt whn i am goin to jar it will givin me

> this error. I have cheked the mime settings also they

> are correct

>ERROR:>

> A Error Code (38) - The server did not hava a

> resource with the correct type (code 406) or the JAR

> downloaded has the wrong media type. []

>

>

So ur problem is this : http://www.ai.univ-paris8.fr/~djedi/j2me-xml/midp20-src/com/sun/midp/midletsuite/InvalidJadException.html#INVALID_JAR_TYPE

This is because of some problem with the jad file I think.

Well do something, create a fresh project under WTK then make a fresh build and package ur project. Then from Project menu, click Run via OTA. If this is done, your Jad and Jar are properly built. Next you can try again to download it from the web server after uploading.

find_suvro@SDNa at 2007-7-12 19:28:18 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 13
Thanks for ur help Suvarjit I will create a fresh copy of my project and try to do installation again. Thanks again for ur help.....I wil try and let u know.. Bye Take Care.
anup123a at 2007-7-12 19:28:18 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 14
Hi ,Yes it works by creating a new copy of my project i will be able to install it . Thaks once again . But tell me why i have to create new copy again ? Is thr any reason?
anup123a at 2007-7-12 19:28:18 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 15

Well the error (an exception actually) u were getting because there was some problem with your jad file. Creating a new copy of the project creates a new jad and hopefully error free one. So it is rather encouraging to create a new project than to investigate the existing jad file to find out the error with it. Thats it.

And if I have solved this can I request the dukes promised ?

See I haven't earned much yet... :-)

find_suvro@SDNa at 2007-7-21 22:21:37 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 16
Hi ,Really thanks for ur help... And Enjoy the dukes man..
anup123a at 2007-7-21 22:21:37 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 17

Hello,

Now i am able to install my applicaiton on emulator through web server. But when i am tryin to install it on actual mobile(Nokia 2865) It was givin me error saying operation failed . I am really not gettin now where the mistake is. CAn u please help me out....

I am gettin this error whn i entered the url i wil go to my (i.e.appl.html)

it wil displayin (appl.jad) hyperlink. When i press on that link it will givin me error sayon OPERATION FAILED.

Plz solve it

Thanks in advance...

anup123a at 2007-7-21 22:21:37 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 18
Can u post the download link here if u don't have any problem.
find_suvro@SDNa at 2007-7-21 22:21:37 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 19
Hi, This is the download linkmobile.ecoaxisindia.com/skf/ota/SKFMobi.htmlThanks and regards,Anup
anup123a at 2007-7-21 22:21:37 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 20
well I really donno buddy why it is happening so with u. cuz now I have that app in my mobile downloaded and running in my n72. try it on some other phone or m8 be some carrier problem.
find_suvro@SDNa at 2007-7-21 22:21:37 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 21

Hi,

Thanks for u r help buddy actually i have also told one of my friend to install it on his n70 it install and run fine. But my client want the application on this mobile only NOKIA 2865 ..

If u get any idea because of wht it is happenin plz let me know ..

Thnaks for ur help dude take care.....

anup123a at 2007-7-21 22:21:37 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 22
Do something, try to build it as a JTWI or MSA Subset if u have build it as MSA. I donno if it work but no harm to give it a try i think.
find_suvro@SDNa at 2007-7-21 22:21:37 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 23
Hi ,Now i am gettin HTTP error 403 forbidden error .Plz tell me abt this error . I have find many links for that bt not able to solve the problem.Thanks in advance...
anup123a at 2007-7-21 22:21:37 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 24
Content-Typeapplication/java-archiveObviously, you did not set the correct mime types! Check the IIS 6 configuration about how to do that!
deepspacea at 2007-7-21 22:21:37 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 25
Hi, I have set the content type i am able to download it on the emulator but whn try to download through mobile it will givin me this eror HTTTP ERROR 403 forbidden Plz help Thanks in advance
anup123a at 2007-7-21 22:21:37 > top of Java-index,Java Mobility Forums,Java ME Technologies...