L
Lindsay Pallickal
Hey All,
I have written a J2ME Midlet, built it, and run it in KToolbar. The emulator
runs it great, but when I try and load the jad and jar files into my phone, a
Sanyo VM4500/SCP-5500, the messaage "Data Error 906 - Invalid Descriptor"
flashes, and then the phone simply states "Install Error.". I have tried
searching the newsgroups and web to no avail, so I will outline the details of
how I've tried this, perhaps someone can tell me what I'm doing wrong.
First I packaged the program using KToolbar, and then copied the jad/jar combo
to a folder on my apache web serer. Here is a dump of what the header the web
server returns when a browser requests the jad file:
PurpleCivic:/var/www/midi# lynx -head -dump
http://localhost/midi/MobileWinampController.jad
HTTP/1.1 200 OK
Date: Sun, 22 Feb 2004 02:20:37 GMT
Server: Apache/1.3.26 (Unix) Debian GNU/Linux
Last-Modified: Sun, 22 Feb 2004 02:10:21 GMT
ETag: "6374b-12f-40380f8d"
Accept-Ranges: bytes
Content-Length: 303
Connection: close
Content-Type: text/vnd.sun.j2me.app-descriptor; charset=utf-8
As you can see the content type is set correctly, and I have even forced UTF-8
according to Sun documentation. Here is a dump of the actual jad file:
PurpleCivic:/var/www/midi# lynx -dump
http://localhost/midi/MobileWinampController.jad
MIDlet-1: MobileWinampController, MobileWinampController.png,
MobileWinampControllerMIDlet
MIDlet-Jar-Size: 3156
MIDlet-Jar-URL: MobileWinampController.jar
MIDlet-Name: MobileWinampController
MIDlet-Vendor: Unknown
MIDlet-Version: 1.0
MicroEdition-Configuration: CLDC-1.0
MicroEdition-Profile: MIDP-2.0
Now if I check my web server access log I can see that the phone downloaded the
..jad file, but didn't bother to try and get the .jar file after it determined
the .jad file had an "Invalid descriptor." But what could be wrong with the .jad
file KToolbar created?
I have also tried to get some of the free midlets from
http://www.spruce.jp/freemidlets/ and get the same error. Can someone give me a
hand here? I am new to this whole midlet thing, but it can't be that hard to
load one.
Lindsay
I have written a J2ME Midlet, built it, and run it in KToolbar. The emulator
runs it great, but when I try and load the jad and jar files into my phone, a
Sanyo VM4500/SCP-5500, the messaage "Data Error 906 - Invalid Descriptor"
flashes, and then the phone simply states "Install Error.". I have tried
searching the newsgroups and web to no avail, so I will outline the details of
how I've tried this, perhaps someone can tell me what I'm doing wrong.
First I packaged the program using KToolbar, and then copied the jad/jar combo
to a folder on my apache web serer. Here is a dump of what the header the web
server returns when a browser requests the jad file:
PurpleCivic:/var/www/midi# lynx -head -dump
http://localhost/midi/MobileWinampController.jad
HTTP/1.1 200 OK
Date: Sun, 22 Feb 2004 02:20:37 GMT
Server: Apache/1.3.26 (Unix) Debian GNU/Linux
Last-Modified: Sun, 22 Feb 2004 02:10:21 GMT
ETag: "6374b-12f-40380f8d"
Accept-Ranges: bytes
Content-Length: 303
Connection: close
Content-Type: text/vnd.sun.j2me.app-descriptor; charset=utf-8
As you can see the content type is set correctly, and I have even forced UTF-8
according to Sun documentation. Here is a dump of the actual jad file:
PurpleCivic:/var/www/midi# lynx -dump
http://localhost/midi/MobileWinampController.jad
MIDlet-1: MobileWinampController, MobileWinampController.png,
MobileWinampControllerMIDlet
MIDlet-Jar-Size: 3156
MIDlet-Jar-URL: MobileWinampController.jar
MIDlet-Name: MobileWinampController
MIDlet-Vendor: Unknown
MIDlet-Version: 1.0
MicroEdition-Configuration: CLDC-1.0
MicroEdition-Profile: MIDP-2.0
Now if I check my web server access log I can see that the phone downloaded the
..jad file, but didn't bother to try and get the .jar file after it determined
the .jad file had an "Invalid descriptor." But what could be wrong with the .jad
file KToolbar created?
I have also tried to get some of the free midlets from
http://www.spruce.jp/freemidlets/ and get the same error. Can someone give me a
hand here? I am new to this whole midlet thing, but it can't be that hard to
load one.
Lindsay